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>

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

Constructor & Destructor Documentation

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

Constructor.

Definition at line 4715 of file utils.h.

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

Copy constructor.

Definition at line 4718 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 4756 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 4721 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 4728 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 4732 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 4741 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 4745 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 4724 of file utils.h.

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

Comparison operator.

Definition at line 4753 of file utils.h.


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