Loading...
Searching...
No Matches
Pseudo_QC_List.dox.h
namespace Qore {
/***/
class <list> : public <value> {
public:
bool complexType();
public:
bool contains(auto arg);
public:
bool empty();
public:
auto first();
public:
AbstractIterator iterator();
public:
string join(string str);
public:
auto last();
public:
int lsize();
public:
AbstractIterator rangeIterator(auto val);
public:
int size();
public:
bool sizep();
public:
int typeCode();
public:
bool val();
};
}
Qore::AbstractIterator
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
<list>
Methods in this pseudo-class can be executed on lists.
Definition: Pseudo_QC_List.dox.h:6
<list>::contains
bool contains(auto arg)
Returns True if the list contains arg, False if it does not.
<list>::val
bool val()
Returns False if the list is empty (size = 0), True if not.
<list>::rangeIterator
AbstractIterator rangeIterator(auto val)
Returns a RangeIterator object for the list elements.
<list>::join
string join(string str)
Creates a string from the list and a separator string given as an argument.
<list>::lsize
int lsize()
Returns the number of elements in the list.
<list>::typeCode
int typeCode()
Returns Qore::NT_LIST.
<list>::first
auto first()
Returns the first entry in the list.
<list>::last
auto last()
Returns the last entry in the list.
<list>::sizep
bool sizep()
Returns True since lists can return a non-zero size.
<list>::complexType
bool complexType()
returns True if the list has a Hash With Declared Value Type, False if not
<list>::iterator
AbstractIterator iterator()
Returns a ListIterator object for the list.
<list>::size
int size()
Returns the number of elements in the list.
<list>::empty
bool empty()
Returns True if the list is empty (size = 0), False if not.
<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
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3