The MapIndex allows linear access into a MapTable, that otherwise could have its elements being retrieved only by key.
More...
#include <object.h>
Collaboration diagram for MapIndex:
Public Member Functions
Creates an empty map index (pointing to nothing).
More...
Creates a map index pointing to a specific map object.
More...
Creates a copy of a given map index.
More...
Dereference operator: the pointed object it is returned as void * for easy re-cast.
More...
Assignment operator to avoid implicit cast.
More...
Prefix increment operator, to be used in loops and such.
More...
Postfix increment operator, to be used in loops and such.
More...
Private Attributes
Detailed Description
Constructor & Destructor Documentation
MapIndex::MapIndex
(
)
inline
Creates an empty map index (pointing to nothing).
Definition at line 481 of file object.h.
Creates a map index pointing to a specific map object.
- Parameters
-
the indexed object
Definition at line 489 of file object.h.
MapIndex::MapIndex
(
const
MapIndex &
theIndex )
inline
Creates a copy of a given map index.
- Parameters
-
the source index object
Definition at line 497 of file object.h.
Member Function Documentation
bool MapIndex::operator!=
(
const
MapIndex &
theIndex )
const
inline
bool MapIndex::operator!=
(
const
MapObject *
theObject )
const
inline
void* MapIndex::operator*
(
)
const
inline
Dereference operator: the pointed object it is returned as void * for easy re-cast.
- Returns
- pointer to indexed object.
Definition at line 506 of file object.h.
Prefix increment operator, to be used in loops and such.
- Returns
- the object itself, as changed.
Postfix increment operator, to be used in loops and such.
- Returns
- the object itself, as changed.
Definition at line 528 of file object.h.
Assignment operator to avoid implicit cast.
- Returns
- the object itself, as changed.
bool MapIndex::operator==
(
const
MapIndex &
theIndex )
const
inline
Comparison operator, between two MapIndex's.
- Returns
- the object itself, as changed.
Definition at line 536 of file object.h.
bool MapIndex::operator==
(
const
MapObject *
theObject )
const
inline
Comparison operator, between the MapIndex and a MapObject, useful to avoid casts for sake of clearness.
- Returns
- the object itself, as changed.
Definition at line 548 of file object.h.
Field Documentation
The documentation for this class was generated from the following file: