Qore Programming Language Reference Manual 1.18.0
Loading...
Searching...
No Matches
Pseudo_QC_List.dox.h
1
3namespace Qore {
5/***/
6class <list> : public <value> {
7
8public:
10
26
27public:
29
45bool contains(auto arg);
46
47public:
49
61bool empty();
62
63public:
65
79auto first();
80
81public:
83
96
97public:
99
119string join(string str);
120
121public:
123
137auto last();
138
139public:
141
156int lsize();
157
158public:
160
177
178public:
180
192int size();
193
194public:
196
205bool sizep();
206
207public:
209
224
225public:
227
243bool val();
244};
245}
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
Methods in this pseudo-class can be executed on lists.
Definition: Pseudo_QC_List.dox.h:6
bool contains(auto arg)
Returns True if the list contains arg, False if it does not.
bool val()
Returns False if the list is empty (size = 0), True if not.
AbstractIterator rangeIterator(auto val)
Returns a RangeIterator object for the list elements.
string join(string str)
Creates a string from the list and a separator string given as an argument.
int lsize()
Returns the number of elements in the list.
int typeCode()
Returns Qore::NT_LIST.
auto first()
Returns the first entry in the list.
auto last()
Returns the last entry in the list.
bool sizep()
Returns True since lists can return a non-zero size.
bool complexType()
returns True if the list has a Hash With Declared Value Type, False if not
AbstractIterator iterator()
Returns a ListIterator object for the list.
int size()
Returns the number of elements in the list.
bool empty()
Returns True if the list is empty (size = 0), False if not.
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
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2