BaseMapIter Class Reference#include <BaseMapIter.h>
List of all members.
|
Public Member Functions |
| | BaseMapIter (const BaseMap &map) |
| | Constructor -- note: The iterator does not contain a copy of the map -- it just contains some pointers into it, therefore the map may not have items deleted or inserted during the lifetime of this iterator.
|
| void | reset () |
| | Start over from the beginning of the iteration space.
|
| void | operator++ () |
| | Increment to point to next element.
|
| Listable * | current_data () const |
| | Return data of current element.
|
| BMKey & | current_key () const |
| | Return key of current element.
|
| int | valid () const |
| | Return 1 if the current element is valid.
|
| int | end () const |
| | Return 1 if there are no more elements to iterate (equivalent to !valid()).
|
Protected Attributes |
| BaseMap * | _map |
| | pointer to underlying map
|
| BMNode * | _curr_node |
| | pointer to current node
|
Constructor & Destructor Documentation
| BaseMapIter::BaseMapIter |
( |
const BaseMap & |
map |
) |
|
|
|
|
Constructor -- note: The iterator does not contain a copy of the map -- it just contains some pointers into it, therefore the map may not have items deleted or inserted during the lifetime of this iterator.
Definition at line 11 of file BaseMapIter.cc.
References _map, and reset(). |
Member Function Documentation
| void BaseMapIter::reset |
( |
|
) |
|
|
| void BaseMapIter::operator++ |
( |
|
) |
|
|
| Listable * BaseMapIter::current_data |
( |
|
) |
const [inline] |
|
| BMKey & BaseMapIter::current_key |
( |
|
) |
const [inline] |
|
| int BaseMapIter::valid |
( |
|
) |
const [inline] |
|
| int BaseMapIter::end |
( |
|
) |
const [inline] |
|
|
|
Return 1 if there are no more elements to iterate (equivalent to !valid()).
Definition at line 70 of file BaseMapIter.h.
References valid(). |
Member Data Documentation
The documentation for this class was generated from the following files:
|