frepple::utils::HasHierarchy< T >::memberIterator Class Reference

This class models an STL-like iterator that allows us to iterate over the members. More...

#include <utils.h>

List of all members.

Public Member Functions

 memberIterator (const HasHierarchy< T > *x)
 memberIterator ()
 memberIterator (const typename HasName< T >::iterator &it)
 memberIterator (const memberIterator &it)
bool operator!= (const memberIterator &y) const
bool operator!= (const typename HasName< T >::iterator &y) const
T & operator* () const
memberIteratoroperator++ ()
memberIterator operator++ (int)
T * operator-> () const
bool operator== (const memberIterator &y) const
bool operator== (const typename HasName< T >::iterator &y) const

Detailed Description

template<class T>
class frepple::utils::HasHierarchy< T >::memberIterator

This class models an STL-like iterator that allows us to iterate over the members.

Objects of this class are created by the beginMember() method.

Definition at line 4914 of file utils.h.


Constructor & Destructor Documentation

template<class T>
frepple::utils::HasHierarchy< T >::memberIterator::memberIterator ( const HasHierarchy< T > *  x)
inline

Constructor to iterate over member entities.

Definition at line 4918 of file utils.h.

template<class T>
frepple::utils::HasHierarchy< T >::memberIterator::memberIterator ( )
inline

Constructor to iterate over all entities.

Definition at line 4922 of file utils.h.

template<class T>
frepple::utils::HasHierarchy< T >::memberIterator::memberIterator ( const typename HasName< T >::iterator it)
inline

Constructor.

Definition at line 4925 of file utils.h.

template<class T>
frepple::utils::HasHierarchy< T >::memberIterator::memberIterator ( const memberIterator it)
inline

Copy constructor.

Definition at line 4928 of file utils.h.


Member Function Documentation

template<class T>
bool frepple::utils::HasHierarchy< T >::memberIterator::operator!= ( const memberIterator y) const
inline

Inequality operator.

Definition at line 4966 of file utils.h.

template<class T>
bool frepple::utils::HasHierarchy< T >::memberIterator::operator!= ( const typename HasName< T >::iterator y) const
inline

Inequality operator.

Definition at line 4974 of file utils.h.

template<class T>
T& frepple::utils::HasHierarchy< T >::memberIterator::operator* ( ) const
inline

Return the content of the current node.

Definition at line 4935 of file utils.h.

template<class T>
memberIterator& frepple::utils::HasHierarchy< T >::memberIterator::operator++ ( )
inline

Pre-increment operator which moves the pointer to the next member.

Definition at line 4941 of file utils.h.

template<class T>
memberIterator frepple::utils::HasHierarchy< T >::memberIterator::operator++ ( int  )
inline

Post-increment operator which moves the pointer to the next member.

Definition at line 4951 of file utils.h.

template<class T>
T* frepple::utils::HasHierarchy< T >::memberIterator::operator-> ( ) const
inline

Return the content of the current node.

Definition at line 4938 of file utils.h.

template<class T>
bool frepple::utils::HasHierarchy< T >::memberIterator::operator== ( const memberIterator y) const
inline

Comparison operator.

Definition at line 4962 of file utils.h.

template<class T>
bool frepple::utils::HasHierarchy< T >::memberIterator::operator== ( const typename HasName< T >::iterator y) const
inline

Comparison operator.

Definition at line 4970 of file utils.h.


The documentation for this class was generated from the following file: