30 #ifndef COPASI_CCopasiNode
31 #define COPASI_CCopasiNode
159 if (!pChild)
return false;
168 return mpChild->addSibling(pChild, pAfter);
183 if (!pChild)
return false;
186 return mpChild->removeSibling(pChild);
229 while (count < index && pChild != NULL)
249 while (count < index && pChild != NULL)
268 while (pChild != NULL)
289 if (!pSibling)
return false;
304 if (pTmp == pAfter || pAfter == NULL)
318 if (!pSibling)
return false;
320 if (
this == pSibling)
331 while (pTmpSibling != pSibling && pTmpSibling != NULL)
456 #endif // COPASI_CCopasiNode
CCopasiNode< Data > * getSibling()
const CCopasiNode< Data > * getNextNonChild() const
virtual bool setData(const Data &data)
CCopasiNode(const CCopasiNode< Data > &src)
const CCopasiNode< Data > * getChild(const size_t &index) const
bool removeSibling(CCopasiNode< Data > *pSibling)
const CCopasiNode< Data > * getParent() const
bool setParent(CCopasiNode< Data > *pParent)
const CCopasiNode< Data > * getNext() const
bool addSibling(CCopasiNode< Data > *pSibling, CCopasiNode< Data > *pAfter=NULL)
virtual bool addChild(CCopasiNode< Data > *pChild, CCopasiNode< Data > *pAfter=NULL)
bool setSibling(CCopasiNode< Data > *pSibling)
const CCopasiNode< Data > * getSibling() const
CCopasiNode< Data > * mpParent
bool setChild(CCopasiNode< Data > *pChild)
size_t getNumChildren() const
CCopasiNode(const Data &data, CCopasiNode< Data > *pParent=NULL)
CCopasiNode< Data > * getParent()
const CCopasiNode< Data > * getChild() const
CCopasiNode< Data > * mpChild
CCopasiNode< Data > * getNext()
virtual bool removeChild(CCopasiNode< Data > *pChild)
virtual const Data & getData() const
CCopasiNode< Data > * mpSibling
CCopasiNode(CCopasiNode< Data > *pParent=NULL)
CCopasiNode< Data > * getChild()
CCopasiNode< Data > * getNextNonChild()
CCopasiNode< Data > * getChild(const size_t &index)