#include <QueryNode.hpp>
Public Member Functions | |
QnList () | |
~QnList () | |
void | startIteration () |
initialize for iteration. | |
bool | hasMore () |
are there any more elements in the list. | |
QueryNode * | nextNode () |
return the next element from the list. | |
const QueryNode * | getNode (int j) const |
return the i'th element of the list. | |
int | size () const |
return the number of elements in the list. | |
void | push_back (QueryNode *qn) |
Add a new element to the back of the list. | |
QueryNode * | popNode () |
remove an elt and return it (allows moving from list to list). | |
Private Attributes | |
int | i |
index counter for iteration. | |
vector< QueryNode * > | qnList |
the actual vector of QueryNodes. |
Provides iteration and random access of individual list elements by index.
|
|
|
|
|
return the i'th element of the list.
|
|
are there any more elements in the list.
|
|
return the next element from the list.
|
|
remove an elt and return it (allows moving from list to list).
|
|
Add a new element to the back of the list.
|
|
return the number of elements in the list.
|
|
initialize for iteration.
|
|
index counter for iteration.
|
|
the actual vector of QueryNodes.
|