Public Member Functions

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


Constructor & Destructor Documentation

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

Constructor.

Definition at line 4348 of file utils.h.

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

Copy constructor.

Definition at line 4351 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 4389 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 4354 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 4365 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 4361 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 4374 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 4378 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 4357 of file utils.h.

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

Comparison operator.

Definition at line 4386 of file utils.h.


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