#include <Iterator.hpp>
I'm being lazy so the iterator is only going to support the postincrement operator.
Public Member Functions | |
Iterator () | |
Iterator (const Iterator &i) | |
Iterator (const ListIterator &i) | |
Iterator (const SetIterator &i) | |
Iterator (const MapIterator &i) | |
const Iterator & | operator= (const Iterator &i) |
const Iterator & | operator= (const ListIterator &i) |
const Iterator & | operator= (const SetIterator &i) |
const Iterator & | operator= (const MapIterator &i) |
Object * | operator * () |
Object * | operator-> () |
Iterator & | operator++ () |
Iterator | operator++ (int) |
Iterator & | operator-- () |
Iterator | operator-- (int) |
bool | operator== (const Iterator &i) |
bool | operator!= (const Iterator &i) |
Protected Types | |
typedef std::list< Object * >::iterator | ListIterator |
typedef std::set< Object * >::iterator | SetIterator |
typedef std::map< unsigned, Object * >::iterator | MapIterator |
enum | Mode { None, List, Set, Map } |
|
|
|
|
|
|
|
The Mode enum describes the current "mode" of the iterator. The mode can be one of any of the described iterators. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|