Qore Programming Language Reference Manual  0.9.4.3
Pseudo_QC_List.dox.h
1 
3 namespace Qore {
5 /***/
6 class <list> : public <value> {
7 
8 public:
10 
25 bool complexType();
26 
27 public:
29 
45 bool contains(auto arg);
46 
47 public:
49 
61 bool empty();
62 
63 public:
65 
79 auto first();
80 
81 public:
83 
96 
97 public:
99 
119 string join(string str);
120 
121 public:
123 
137 auto last();
138 
139 public:
141 
156 int lsize();
157 
158 public:
160 
176 
177 public:
179 
191 int size();
192 
193 public:
195 
204 bool sizep();
205 
206 public:
208 
222 int typeCode();
223 
224 public:
226 
242 bool val();
243 };
244 }
<list>::first
auto first()
Returns the first entry in the list.
<list>::complexType
bool complexType()
returns True if the list has a Hash With Declared Value Type, False if not
<list>::lsize
int lsize()
Returns the number of elements in the list.
<list>::rangeIterator
AbstractIterator rangeIterator(auto val)
Returns a RangeIterator object for the list elements.
<list>::last
auto last()
Returns the last entry in the list.
<list>::contains
bool contains(auto arg)
Returns True if the list contains arg, False if it does not.
<list>::join
string join(string str)
Creates a string from the list and a separator string given as an argument.
<list>::size
int size()
Returns the number of elements in the list.
<list>::val
bool val()
Returns False if the list is empty (size = 0), True if not.
<list>::typeCode
int typeCode()
Returns Qore::NT_LIST.
<list>::sizep
bool sizep()
Returns True since lists can return a non-zero size.
<value>
Methods in this pseudo-class are available to be executed on any value type (even NOTHING); this is t...
Definition: Pseudo_QC_All.dox.h:6
<list>::empty
bool empty()
Returns True if the list is empty (size = 0), False if not.
<list>
Methods in this pseudo-class can be executed on lists.
Definition: Pseudo_QC_List.dox.h:6
Qore::AbstractIterator
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
<list>::iterator
AbstractIterator iterator()
Returns a ListIterator object for the list.