This class implements an iterator through a Value list. More...
#include <Value.h>
Public Member Functions | |
| Iterator () | |
| The default class constructor. | |
| Iterator (Value *start) | |
| The class constructor with the start value. More... | |
| ~Iterator () | |
| The class destructor. | |
| bool | hasNext () const |
| Will return true, if another value is in the list. More... | |
| Value * | getNext () |
| Returns the next item and moves the iterator to it. More... | |
| const Iterator & | operator++ (int) |
| The post-increment operator. | |
| Iterator & | operator++ () |
| The pre-increment operator. | |
| bool | operator== (const Iterator &rhs) const |
| The compare operator. More... | |
| Value * | operator-> () const |
| The * operator. More... | |
This class implements an iterator through a Value list.
When getting a new value you need to know how to iterate through it. The Value::Iterator will help you here:
| Value::Iterator::Iterator | ( | Value * | start | ) |
The class constructor with the start value.
| start | [in] The first value for iteration, |
| Value* Value::Iterator::getNext | ( | ) |
Returns the next item and moves the iterator to it.
| bool Value::Iterator::hasNext | ( | ) | const |
Will return true, if another value is in the list.
| Value* Value::Iterator::operator-> | ( | ) | const |
The * operator.
| bool Value::Iterator::operator== | ( | const Iterator & | rhs | ) | const |
The compare operator.
| rhs | [in] The instance to compare. |
1.8.8