COPASI API  4.40.278
CNodeContextIterator< Node, Context >::CStackElement Class Reference

Public Member Functions

 CStackElement ()
 
 CStackElement (const CStackElement &src)
 
 CStackElement (Node *pNode, Context *pParentContext=NULL)
 
 ~CStackElement ()
 

Public Attributes

size_t mChildCount
 
Context mContext
 
size_t mNextChildIndex
 
Node * mpNode
 
Context * mpParentContext
 

Detailed Description

template<class Node, class Context>
class CNodeContextIterator< Node, Context >::CStackElement

Internal class handling the traversal of the tree. For each nested level in the tree an element is pushed onto the stack

Constructor & Destructor Documentation

◆ CStackElement() [1/3]

template<class Node , class Context >
CNodeContextIterator< Node, Context >::CStackElement::CStackElement ( )
inline

Default Constructor

◆ CStackElement() [2/3]

template<class Node , class Context >
CNodeContextIterator< Node, Context >::CStackElement::CStackElement ( const CStackElement src)
inline

Copy constructor

Parameters
constCStackElement & src

◆ CStackElement() [3/3]

template<class Node , class Context >
CNodeContextIterator< Node, Context >::CStackElement::CStackElement ( Node *  pNode,
Context *  pParentContext = NULL 
)
inline

Constructor

Parameters
Node* pNode
Context* pParentContext (default: NULL)

References CNodeContextIterator< Node, Context >::CStackElement::mChildCount.

◆ ~CStackElement()

template<class Node , class Context >
CNodeContextIterator< Node, Context >::CStackElement::~CStackElement ( )
inline

Destructor

Member Data Documentation

◆ mChildCount

template<class Node , class Context >
size_t CNodeContextIterator< Node, Context >::CStackElement::mChildCount

◆ mContext

template<class Node , class Context >
Context CNodeContextIterator< Node, Context >::CStackElement::mContext

The context of the current node.

Referenced by CNodeContextIterator< Node, Context >::increment().

◆ mNextChildIndex

template<class Node , class Context >
size_t CNodeContextIterator< Node, Context >::CStackElement::mNextChildIndex

◆ mpNode

template<class Node , class Context >
Node* CNodeContextIterator< Node, Context >::CStackElement::mpNode

Pointer to the node of the tree represented by the stack element

Referenced by CNodeContextIterator< Node, Context >::increment().

◆ mpParentContext

template<class Node , class Context >
Context* CNodeContextIterator< Node, Context >::CStackElement::mpParentContext

The pointer to the parent node's context.


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