#include <Structure.h>
Collaboration diagram for Arxx::Structure::Relation::const_iterator:
This iterator class encapsules the internal form of Reference storage in a Relation. By using this iterator class, which is what you have to do, you are safe from changes in implementation detail as the container used to store Reference objects. Additionally it is the prefered way to make a visit to each Reference in a Relation.
Public Member Functions | |
const_iterator (std::multimap< Arxx::u4byte, Arxx::Reference >::const_iterator iReference) | |
The constructor of a const Reference iterator. | |
const_iterator (Arxx::Structure::Relation::iterator iIterator) | |
The constructor of a const Reference iterator from a non-const iterator. | |
~const_iterator (void) | |
The destructor of a const Reference iterator. | |
const_iterator & | operator++ (void) |
Advances the iterator. | |
const Arxx::Reference & | operator * (void) const |
This will return the Arxx::Reference that this iterator points to. | |
const Arxx::Reference * | operator-> (void) |
The Reference accessor. | |
bool | operator== (const Arxx::Structure::Relation::const_iterator &iReference) const |
Tests two iterators for equality. | |
bool | operator!= (const Arxx::Structure::Relation::const_iterator &iReference) const |
Tests two iterators for inequality. | |
Private Attributes | |
std::multimap< Arxx::u4byte, Arxx::Reference >::const_iterator | m_iReference |
The internal STL iterator. | |
Friends | |
class | Arxx::Structure::Relation::iterator |
Arxx::Structure::Relation::const_iterator::const_iterator | ( | std::multimap< Arxx::u4byte, Arxx::Reference >::const_iterator | iReference | ) |
Arxx::Structure::Relation::const_iterator::const_iterator | ( | Arxx::Structure::Relation::iterator | iIterator | ) |
Arxx::Structure::Relation::const_iterator::~const_iterator | ( | void | ) |
The destructor of a const Reference iterator.
const Arxx::Reference & Arxx::Structure::Relation::const_iterator::operator * | ( | void | ) | const |
This will return the Arxx::Reference that this iterator points to.
This is the const version of the operator*() thus the returned Reference is const as well.
bool Arxx::Structure::Relation::const_iterator::operator!= | ( | const Arxx::Structure::Relation::const_iterator & | iReference | ) | const |
Tests two iterators for inequality.
iReference | The iterator to check against. |
Arxx::Structure::Relation::const_iterator & Arxx::Structure::Relation::const_iterator::operator++ | ( | void | ) |
const Arxx::Reference * Arxx::Structure::Relation::const_iterator::operator-> | ( | void | ) |
The Reference accessor.
bool Arxx::Structure::Relation::const_iterator::operator== | ( | const Arxx::Structure::Relation::const_iterator & | iReference | ) | const |
Tests two iterators for equality.
iReference | The iterator to check against. |
friend class Arxx::Structure::Relation::iterator [friend] |
std::multimap< Arxx::u4byte, Arxx::Reference >::const_iterator Arxx::Structure::Relation::const_iterator::m_iReference [private] |
The internal STL iterator.
This is an iterator into a Relation's internal Reference map.