copasi API  0.1
Public Member Functions
CCopasiTree< _Node >::iterator Class Reference

#include <CCopasiTree.h>

List of all members.

Public Member Functions

 iterator (_Node *begin=NULL)
 iterator (const iterator &src)
 ~iterator ()
_Node & operator* () const
_Node * operator-> () const
bool operator!= (const iterator &rhs)
iteratoroperator= (_Node *pNode)
iteratoroperator++ ()

Detailed Description

template<class _Node>
class CCopasiTree< _Node >::iterator

A forward iterator used to traverse the tree.


Constructor & Destructor Documentation

template<class _Node>
CCopasiTree< _Node >::iterator::iterator ( _Node *  begin = NULL) [inline]

Default constructor. Note: When no argument is given the iterator points to the end of the tree.

Parameters:
Node* begin (default NULL)
template<class _Node>
CCopasiTree< _Node >::iterator::iterator ( const iterator src) [inline]

Copy constructor

Parameters:
constiterator & src
template<class _Node>
CCopasiTree< _Node >::iterator::~iterator ( ) [inline]

Destructor


Member Function Documentation

template<class _Node>
bool CCopasiTree< _Node >::iterator::operator!= ( const iterator rhs) [inline]

Comparison operator !=

Parameters:
constiterator &rhs
Returns:
bool not-equal
template<class _Node>
_Node& CCopasiTree< _Node >::iterator::operator* ( ) const [inline]

Dereference operator * returns the node the iterator points to.

Returns:
Node &
template<class _Node>
iterator& CCopasiTree< _Node >::iterator::operator++ ( ) [inline]

Prefix increment operator ++

Returns:
iterator &
template<class _Node>
_Node* CCopasiTree< _Node >::iterator::operator-> ( ) const [inline]

Dereference operator * returns the node the iterator points to.

Returns:
Node &
template<class _Node>
iterator& CCopasiTree< _Node >::iterator::operator= ( _Node *  pNode) [inline]

Assignment operator from a node to an iterator

Parameters:
Node* pNode
Returns:
iterator &

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines