|
Open Model Railroad Network (OpenMRN)
|
This mimics an std::Iterator. More...
#include <LinearMap.hxx>
Public Member Functions | |
| Iterator () | |
| Default constructor. | |
| Iterator (const Iterator &it) | |
| Copy constructor. | |
| Iterator (LinearMap *context, size_t index) | |
| Constructor. | |
| ~Iterator () | |
| Destructor. | |
| Pair & | operator* () const |
| Overloaded reference operator. | |
| Pair * | operator-> () const |
| Overloaded pointer operator. | |
| Iterator & | operator++ () |
| Overloaded pre-increement operator. | |
| bool | operator!= (const Iterator &it) |
| Overloaded not equals operator. | |
| bool | operator== (const Iterator &it) |
| Overloaded equals operator. | |
Private Attributes | |
| size_t | index |
| index this iteration is currently indexed to | |
| LinearMap * | m |
| Context this iteration lives in. | |
Friends | |
| class | LinearMap |
| Allow access to index member. | |
This mimics an std::Iterator.
Definition at line 102 of file LinearMap.hxx.
|
inline |
Default constructor.
The iterator must not be used until a valid iterator is assigned to it.
Definition at line 107 of file LinearMap.hxx.
|
inline |
Copy constructor.
Definition at line 113 of file LinearMap.hxx.
|
inline |
Constructor.
| context | context passed in at instantiation |
| index | index to initialize this iteration with |
Definition at line 123 of file LinearMap.hxx.
|
inline |
Destructor.
Definition at line 130 of file LinearMap.hxx.
|
inline |
Overloaded not equals operator.
| it | other oterator to compare. |
Definition at line 160 of file LinearMap.hxx.
|
inline |
Overloaded reference operator.
Definition at line 136 of file LinearMap.hxx.
|
inline |
Overloaded pointer operator.
Definition at line 143 of file LinearMap.hxx.
|
inline |
Overloaded equals operator.
| it | other iterator to compare. |
Definition at line 167 of file LinearMap.hxx.
|
friend |
Allow access to index member.
Definition at line 180 of file LinearMap.hxx.
|
private |
index this iteration is currently indexed to
Definition at line 174 of file LinearMap.hxx.
Context this iteration lives in.
Definition at line 177 of file LinearMap.hxx.