COPASI API  4.40.278
CCopasiTree< _Node >::const_iterator Class Reference

#include <CCopasiTree.h>

Inheritance diagram for CCopasiTree< _Node >::const_iterator:
[legend]

Public Member Functions

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

Private Attributes

const _Node * mCurrent
 

Detailed Description

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

A const forward iterator used to traverse the tree.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

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)

◆ const_iterator() [2/2]

template<class _Node >
CCopasiTree< _Node >::const_iterator::const_iterator ( const const_iterator src)
inline

Copy constructor

Parameters
constiterator & src

◆ ~const_iterator()

template<class _Node >
CCopasiTree< _Node >::const_iterator::~const_iterator ( )
inline

Destructor

Member Function Documentation

◆ operator!=()

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

Comparison operator !=

Parameters
constiterator &rhs
Returns
bool not-equal

References CCopasiTree< _Node >::const_iterator::mCurrent.

◆ operator*()

template<class _Node >
const _Node& CCopasiTree< _Node >::const_iterator::operator* ( ) const
inline

Dereference operator * returns the node the iterator points to.

Returns
Node &

References CCopasiTree< _Node >::const_iterator::mCurrent.

◆ operator++()

template<class _Node >
const_iterator& CCopasiTree< _Node >::const_iterator::operator++ ( )
inline

Prefix increment operator ++

Returns
iterator &

References CCopasiTree< _Node >::const_iterator::mCurrent.

◆ operator->()

template<class _Node >
const _Node* CCopasiTree< _Node >::const_iterator::operator-> ( ) const
inline

Dereference operator * returns the node the iterator points to.

Returns
Node &

References CCopasiTree< _Node >::const_iterator::mCurrent.

◆ operator=()

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 &

References CCopasiTree< _Node >::const_iterator::mCurrent.

Member Data Documentation

◆ mCurrent


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