The MapIndex allows linear access into a MapTable, that otherwise could have its elements being retrieved only by key.
#include <object.h>
MapIndex ()
Creates an empty map index (pointing to nothing).
MapIndex (MapObject *theObject)
Creates a map index pointing to a specific map object.
MapIndex (const MapIndex &theIndex)
Creates a copy of a given map index.
void * operator* () const
Dereference operator: the pointed object it is returned as void * for easy re-cast.
MapIndex & operator= (MapObject *theObject)
Assignment operator to avoid implicit cast.
MapIndex & operator++ ()
Prefix increment operator, to be used in loops and such.
MapIndex operator++ (int)
Postfix increment operator, to be used in loops and such.
bool operator== (const MapIndex &theIndex) const
Comparison operator, between two MapIndex's.
bool operator!= (const MapIndex &theIndex) const
bool operator== (const MapObject *theObject) const
Comparison operator, between the MapIndex and a MapObject, useful to avoid casts for sake of clearness.
bool operator!= (const MapObject *theObject) const
The MapIndex allows linear access into a MapTable, that otherwise could have its elements being retrieved only by key.
It can be increased, checked and dereferenced like a pointer, by means of suitable operators.
Author:
Creates an empty map index (pointing to nothing).
Creates a map index pointing to a specific map object. Parameters:
Creates a copy of a given map index. Parameters:
Dereference operator: the pointed object it is returned as void * for easy re-cast. Returns:
Postfix increment operator, to be used in loops and such. Returns:
References operator++().
Prefix increment operator, to be used in loops and such. Returns:
Assignment operator to avoid implicit cast. Returns:
Comparison operator, between the MapIndex and a MapObject, useful to avoid casts for sake of clearness. Returns:
Comparison operator, between two MapIndex's. Returns:
Generated automatically by Doxygen for GNU CommonC++ from the source code.