Qore Programming Language Reference Manual  0.9.4.1
Pseudo_QC_List.dox.h
1 namespace Qore {
4 /***/
5 class <list> : public <value> {
6 
7 public:
9 
24 bool complexType();
25 
26 public:
28 
44 bool contains(auto arg);
45 
46 public:
48 
60 bool empty();
61 
62 public:
64 
78 auto first();
79 
80 public:
82 
95 
96 public:
98 
118 string join(string str);
119 
120 public:
122 
136 auto last();
137 
138 public:
140 
155 int lsize();
156 
157 public:
159 
175 
176 public:
178 
190 int size();
191 
192 public:
194 
203 bool sizep();
204 
205 public:
207 
221 int typeCode();
222 
223 public:
225 
241 bool val();
242 };
243 };
<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:5
<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:5
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:2
<list>::iterator
AbstractIterator iterator()
Returns a ListIterator object for the list.