#include <cqueue.h>
◆ Iterator()
Constructor. Iterator will walk on the queue passed as argument. The iterator can be initialized for forward (front-to-back, using ++
) or reverse (back-to-front, using –
) iteration.
◆ init()
void init |
( |
const cQueue & |
q, |
|
|
bool |
reverse = false |
|
) |
| |
|
inline |
Reinitializes the iterator object.
◆ operator*()
Returns the current object.
◆ operator()()
_OPPDEPRECATED cObject* operator() |
( |
| ) |
const |
|
inline |
DEPRECATED. Use the * operator to access the object the iterator is at.
◆ end()
Returns true if the iterator has reached either end of the queue.
◆ operator++() [1/2]
Prefix increment operator (++it). Moves the iterator to the next object in the queue. It has no effect if the iterator has reached either end of the queue.
◆ operator++() [2/2]
Postfix increment operator (it++). Moves the iterator to the next object in the queue, and returns the iterator's previous state. It has no effect if the iterator has reached either end of the queue.
◆ operator--() [1/2]
Prefix decrement operator (–it). Moves the iterator to the previous object in the queue. It has no effect if the iterator has reached either end of the queue.
◆ operator--() [2/2]
Postfix decrement operator (it–). Moves the iterator to the previous object in the queue, and returns the iterator's previous state. It has no effect if the iterator has reached either end of the queue.
The documentation for this class was generated from the following file: