copasi API
0.1
|
#include <CCopasiNode.h>
Public Types | |
typedef _Data | Data |
Public Member Functions | |
CCopasiNode (CCopasiNode< Data > *pParent=NULL) | |
CCopasiNode (const CCopasiNode< Data > &src) | |
CCopasiNode (const Data &data, CCopasiNode< Data > *pParent=NULL) | |
virtual | ~CCopasiNode () |
virtual const Data & | getData () const |
virtual bool | setData (const Data &data) |
CCopasiNode< Data > * | getParent () |
const CCopasiNode< Data > * | getParent () const |
virtual bool | addChild (CCopasiNode< Data > *pChild, CCopasiNode< Data > *pAfter=NULL) |
virtual bool | removeChild (CCopasiNode< Data > *pChild) |
CCopasiNode< Data > * | getChild () |
const CCopasiNode< Data > * | getChild () const |
CCopasiNode< Data > * | getSibling () |
const CCopasiNode< Data > * | getSibling () const |
CCopasiNode< Data > * | getNext () |
const CCopasiNode< Data > * | getNext () const |
CCopasiNode< Data > * | getNextNonChild () |
const CCopasiNode< Data > * | getNextNonChild () const |
Protected Member Functions | |
bool | setParent (CCopasiNode< Data > *pParent) |
bool | setChild (CCopasiNode< Data > *pChild) |
bool | setSibling (CCopasiNode< Data > *pSibling) |
bool | deleteChildren () |
Protected Attributes | |
Data | mData |
CCopasiNode class. The class CCopasiNode is describes a node of the CCopasiTree.
Created for COPASI by Stefan Hoops 2003 The class CCopasiNode is the interface used by the template class CCopasiTree< class Node> to manage the nodes of a tree. Actual implementation of nodes must be derived from CCopasiNode for the tree to operate properly.
typedef _Data CCopasiNode< _Data >::Data |
CCopasiNode< _Data >::CCopasiNode | ( | CCopasiNode< Data > * | pParent = NULL | ) | [inline] |
Default constructor.
CCopasiNode< | Data > * pParent (default: NULL) |
CCopasiNode< _Data >::CCopasiNode | ( | const CCopasiNode< Data > & | src | ) | [inline] |
Copy constructor.
const | CCopasiNode< Data > & src |
CCopasiNode< _Data >::CCopasiNode | ( | const Data & | data, |
CCopasiNode< Data > * | pParent = NULL |
||
) | [inline] |
Specific constructor.
const | Data & data |
CCopasiNode< | Data > * pParent (default: NULL) |
virtual CCopasiNode< _Data >::~CCopasiNode | ( | ) | [inline, virtual] |
Destructor. Note: Within a tree the parent of this node has to be corrected.
virtual bool CCopasiNode< _Data >::addChild | ( | CCopasiNode< Data > * | pChild, |
CCopasiNode< Data > * | pAfter = NULL |
||
) | [inline, virtual] |
Add a child to a node. If pAfter == this the child will be inserted at the front of the list of children.
CCopasiNode< | Data > * pChild |
CCopasiNode< | Data > * pAfter (default: NULL appended to the list of children) |
Reimplemented in CEvaluationNodeCall, and CEvaluationNodeVector.
bool CCopasiNode< _Data >::deleteChildren | ( | ) | [inline, protected] |
CCopasiNode< Data >* CCopasiNode< _Data >::getChild | ( | ) | [inline] |
Retrieve the child of a node.
const CCopasiNode< Data >* CCopasiNode< _Data >::getChild | ( | ) | const [inline] |
Retrieve the child of a node.
virtual const Data& CCopasiNode< _Data >::getData | ( | ) | const [inline, virtual] |
CCopasiNode< Data >* CCopasiNode< _Data >::getNext | ( | ) | [inline] |
Retrieve a pointer to the next node, which is either a child, a sibling, or an ancestor. The nodes are evaluated in that order and the first non NULL pointer is returned. If all evaluate to NULL, NULL will be returned.
const CCopasiNode< Data >* CCopasiNode< _Data >::getNext | ( | ) | const [inline] |
Retrieve a pointer to the next node, which is either a child, a sibling, or an ancestor. The nodes are evaluated in that order and the first non NULL pointer is returned. If all evaluate to NULL, NULL will be returned.
CCopasiNode< Data >* CCopasiNode< _Data >::getNextNonChild | ( | ) | [inline] |
Retrieve a pointer to the next node, which is not a child node This is either a sibling or an ancestor. The nodes are evaluated in that order and the first non NULL pointer is returned. If all evaluate to NULL, NULL will be returned.
const CCopasiNode< Data >* CCopasiNode< _Data >::getNextNonChild | ( | ) | const [inline] |
Retrieve a pointer to the next node, which is not a child node This is either a sibling or an ancestor. The nodes are evaluated in that order and the first non NULL pointer is returned. If all evaluate to NULL, NULL will be returned.
CCopasiNode< Data >* CCopasiNode< _Data >::getParent | ( | ) | [inline] |
Retrieve the parent of a Node.
const CCopasiNode< Data >* CCopasiNode< _Data >::getParent | ( | ) | const [inline] |
Retrieve the parent of a Node.
CCopasiNode< Data >* CCopasiNode< _Data >::getSibling | ( | ) | [inline] |
Retrieve the sibling of a node.
const CCopasiNode< Data >* CCopasiNode< _Data >::getSibling | ( | ) | const [inline] |
Retrieve the sibling of a node.
virtual bool CCopasiNode< _Data >::removeChild | ( | CCopasiNode< Data > * | pChild | ) | [inline, virtual] |
Remove a child from a node.
CCopasiNode< | Data > * pChild |
Reimplemented in CEvaluationNodeCall.
bool CCopasiNode< _Data >::setChild | ( | CCopasiNode< Data > * | pChild | ) | [inline, protected] |
Set the child of a node.
CCopasiNode< | Data > * pChild |
virtual bool CCopasiNode< _Data >::setData | ( | const Data & | data | ) | [inline, virtual] |
Set the data of the Node.
const | Data & data |
Reimplemented in CEvaluationNodeObject.
bool CCopasiNode< _Data >::setParent | ( | CCopasiNode< Data > * | pParent | ) | [inline, protected] |
Set the parent of a Node.
CCopasiNode< | Data > * pParent |
bool CCopasiNode< _Data >::setSibling | ( | CCopasiNode< Data > * | pSibling | ) | [inline, protected] |
Set the sibling of a node.
CCopasiNode< | Data > * pSibling |
Data CCopasiNode< _Data >::mData [protected] |
The data content of the node;