#include <Archive.h>
Collaboration diagram for Arxx::Archive::const_iterator:
This iterator class encapsules the internal form of Item object storage in an archive. 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 Item object pointers. Additionally it is the prefered way to make a visit to each Item in an archive.
Public Member Functions | |
const_iterator (std::map< Arxx::u4byte, Arxx::Item * >::const_iterator iItem) | |
The constructor of a const Item iterator. | |
~const_iterator (void) | |
The destructor of a const Item iterator. | |
const_iterator & | operator++ (void) |
Advances the iterator. | |
const Arxx::Item & | operator * (void) const |
This will return the Arxx::Item that this iterator points to. | |
const Arxx::Item * | operator-> (void) const |
The Arxx::Item accessor. | |
bool | operator== (const Arxx::Archive::const_iterator &iItem) const |
Tests two iterators for equality. | |
bool | operator!= (const Arxx::Archive::const_iterator &iItem) const |
Tests two iterators for inequality. | |
Private Attributes | |
std::map< Arxx::u4byte, Arxx::Item * >::const_iterator | m_iItem |
The internal STL iterator. |
Arxx::Archive::const_iterator::const_iterator | ( | std::map< Arxx::u4byte, Arxx::Item * >::const_iterator | iItem | ) |
The constructor of a const Item iterator.
iItem | The STL iterator from Arxx::Archive's aggregated Item object container. The internal representation of the iterator. |
Arxx::Archive::const_iterator::~const_iterator | ( | void | ) |
The destructor of a const Item iterator.
const Arxx::Item & Arxx::Archive::const_iterator::operator * | ( | void | ) | const |
This will return the Arxx::Item that this iterator points to.
This is the const version of the operator*() thus the returned Item reference is const as well.
bool Arxx::Archive::const_iterator::operator!= | ( | const Arxx::Archive::const_iterator & | iItem | ) | const |
Tests two iterators for inequality.
iItem | The iterator to check against. |
Arxx::Archive::const_iterator & Arxx::Archive::const_iterator::operator++ | ( | void | ) |
Advances the iterator.
Advances the Item iterator. It is not defined which will be the next Arxx::Item the iterator points to. It is only assured that every Item will be passed once.
const Arxx::Item * Arxx::Archive::const_iterator::operator-> | ( | void | ) | const |
The Arxx::Item accessor.
bool Arxx::Archive::const_iterator::operator== | ( | const Arxx::Archive::const_iterator & | iItem | ) | const |
Tests two iterators for equality.
iItem | The iterator to check against. |
std::map< Arxx::u4byte, Arxx::Item * >::const_iterator Arxx::Archive::const_iterator::m_iItem [private] |
The internal STL iterator.
This is an iterator into Arxx::Archive's internal Item map Arxx::Archive::m_Items.