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 4806 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 4810 of file utils.h.

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

Constructor to iterate over all entities.

Definition at line 4814 of file utils.h.

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

Constructor.

Definition at line 4817 of file utils.h.

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

Copy constructor.

Definition at line 4820 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 4858 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 4866 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 4827 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 4833 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 4843 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 4830 of file utils.h.

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

Comparison operator.

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


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

Documentation generated for frePPLe by  doxygen