frepple::utils::HasName< T >::iterator Class Reference

This class models a STL-like iterator that allows us to iterate over the named entities in a simple and safe way. More...

#include <utils.h>

List of all members.

Public Member Functions

 iterator (Tree::TreeNode *x)
 iterator (const iterator &it)
bool operator!= (const iterator &y) const
T & operator* () const
iteratoroperator++ ()
iterator operator++ (int)
iteratoroperator-- ()
iterator operator-- (int)
T * operator-> () const
bool operator== (const iterator &y) const

Detailed Description

template<class T>
class frepple::utils::HasName< T >::iterator

This class models a STL-like iterator that allows us to iterate over the named entities in a simple and safe way.

Objects of this class are created by the begin() and end() functions.

Definition at line 4589 of file utils.h.


Constructor & Destructor Documentation

template<class T>
frepple::utils::HasName< T >::iterator::iterator ( Tree::TreeNode x)
inline

Constructor.

Definition at line 4593 of file utils.h.

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

Copy constructor.

Definition at line 4596 of file utils.h.


Member Function Documentation

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

Inequality operator.

Definition at line 4634 of file utils.h.

template<class T>
T& frepple::utils::HasName< T >::iterator::operator* ( ) const
inline

Return the content of the current node.

Definition at line 4599 of file utils.h.

template<class T>
iterator& frepple::utils::HasName< T >::iterator::operator++ ( )
inline

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

Definition at line 4606 of file utils.h.

template<class T>
iterator frepple::utils::HasName< T >::iterator::operator++ ( int  )
inline

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

Definition at line 4610 of file utils.h.

template<class T>
iterator& frepple::utils::HasName< T >::iterator::operator-- ( )
inline

Pre-decrement operator which moves the pointer to the previous element.

Definition at line 4619 of file utils.h.

template<class T>
iterator frepple::utils::HasName< T >::iterator::operator-- ( int  )
inline

Post-decrement operator which moves the pointer to the previous element.

Definition at line 4623 of file utils.h.

template<class T>
T* frepple::utils::HasName< T >::iterator::operator-> ( ) const
inline

Return the content of the current node.

Definition at line 4602 of file utils.h.

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

Comparison operator.

Definition at line 4631 of file utils.h.


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