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>

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 5028 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 5032 of file utils.h.

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

Constructor to iterate over all entities.

Definition at line 5036 of file utils.h.

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

Constructor.

Definition at line 5039 of file utils.h.

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

Copy constructor.

Definition at line 5042 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 5080 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 5088 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 5049 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 5055 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 5065 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 5052 of file utils.h.

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

Comparison operator.

Definition at line 5076 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 5084 of file utils.h.


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