All Classes Namespaces Functions Variables Groups Pages
QC_ListIterator.dox.h
namespace Qore {
class ListIterator : public AbstractQuantifiedBidirectionalIterator {
public:
constructor(softlist l);
public:
copy();
public:
bool empty();
public:
bool first();
public:
any getValue();
public:
int index();
public:
bool last();
public:
int max();
public:
bool next();
public:
bool prev();
public:
reset();
public:
bool set(int pos);
public:
bool valid();
};
};
Qore::ListIterator::last
bool last()
returns True if on the last element of the list
Qore::ListIterator::prev
bool prev()
Moves the current position to the previous element in the list; returns False if there are no more el...
Qore::ListIterator
This class an iterator class for lists.
Definition: QC_ListIterator.dox.h:28
Qore::ListIterator::empty
bool empty()
returns True if the list is empty; False if not
Qore::ListIterator::next
bool next()
Moves the current position to the next element in the list; returns False if there are no more elemen...
Qore::ListIterator::max
int max()
returns the number of elements in the list
Qore::AbstractQuantifiedBidirectionalIterator
This class defines an abstract interface for bidirectional iterators where the size of the object is ...
Definition: QC_AbstractQuantifiedBidirectionalIterator.dox.h:6
Qore::ListIterator::constructor
constructor(softlist l)
Creates the list iterator object.
Qore::ListIterator::first
bool first()
returns True if on the first element of the list
Qore::ListIterator::getValue
any getValue()
returns the current value or throws an INVALID-ITERATOR exception if the iterator is invalid ...
Qore::ListIterator::valid
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not ...
Qore::ListIterator::index
int index()
returns the current iterator position in the list or -1 if not pointing at a valid element ...
Qore::ListIterator::set
bool set(int pos)
sets the new position in the list; if the position is invalid then the method returns False...
Qore::ListIterator::copy
copy()
Creates a copy of the ListIterator object, iterating the same object as the original and in the same ...
Qore::ListIterator::reset
reset()
Reset the iterator instance to its initial state.