#include <cqueue.h>
Public Methods | |
cQueueIterator (const cQueue &q, int athead=1) | |
void | init (const cQueue &q, int athead=1) |
cObject& | operator[] (int) |
cObject* | operator() () |
bool | end () const |
cObject* | operator++ (int) |
cObject* | operator-- (int) |
NOTE: not a cObject descendant.
|
Constructor. cQueueIterator will walk on the queue passed as argument. The current object will be the first (if a==1) or the last (a==0) object in the queue. |
|
Returns true if the iterator has reached either end of the queue. |
|
Reinitializes the iterator object. |
|
Returns the current object. |
|
Returns the current object, then moves the iterator to the next item. If the iterator has reached either end of the queue, nothing happens; you have to call init() again to restart iterating. |
|
Returns the current object, then moves the iterator to the previous item. If the iterator has reached either end of the queue, nothing happens; you have to call init() again to restart iterating. |
|
OBSOLETE. Use operator() instead. |