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

#include <CCopasiTree.h>

List of all members.

Public Member Functions

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

Detailed Description

template<class _Node>
class CCopasiTree< _Node >::const_iterator

A const forward iterator used to traverse the tree.


Constructor & Destructor Documentation

template<class _Node>
CCopasiTree< _Node >::const_iterator::const_iterator ( const _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 >::const_iterator::const_iterator ( const const_iterator src) [inline]

Copy constructor

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

Destructor


Member Function Documentation

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

Comparison operator !=

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

Dereference operator * returns the node the iterator points to.

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

Prefix increment operator ++

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

Dereference operator * returns the node the iterator points to.

Returns:
Node &
template<class _Node>
const_iterator& CCopasiTree< _Node >::const_iterator::operator= ( const _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