COPASI API  4.16.103
Public Member Functions | Public Attributes | List of all members
CBrowserObject Class Reference

#include <ObjectBrowserItem.h>

Collaboration diagram for CBrowserObject:
Collaboration graph
[legend]

Public Member Functions

 CBrowserObject ()
 
 ~CBrowserObject ()
 

Public Attributes

bool mChecked
 
const CCopasiObjectpCopasiObject
 
ObjectListreferenceList
 

Detailed Description

Definition at line 63 of file ObjectBrowserItem.h.

Constructor & Destructor Documentation

CBrowserObject::CBrowserObject ( )

Definition at line 43 of file ObjectBrowserItem.cpp.

References referenceList.

43  :
44  pCopasiObject(NULL),
45  mChecked(false),
46  referenceList(NULL) //keep pointer to all its referenced items for later update
47 {
48  referenceList = new ObjectList();
49 }
const CCopasiObject * pCopasiObject
ObjectList * referenceList
CBrowserObject::~CBrowserObject ( )

Definition at line 51 of file ObjectBrowserItem.cpp.

References ObjectList::getRoot(), pdelete, ObjectListItem::pItem, ObjectListItem::pNext, referenceList, and ObjectBrowserItem::setBrowserObject().

52 {
53  ObjectListItem* currentItem = referenceList->getRoot();
54 
55  for (; currentItem != NULL; currentItem = currentItem->pNext)
56  currentItem->pItem->setBrowserObject(NULL);
57 
59 }
#define pdelete(p)
Definition: copasi.h:215
ObjectListItem * pNext
ObjectList * referenceList
void setBrowserObject(CBrowserObject *updateObject)
ObjectBrowserItem * pItem
ObjectListItem * getRoot()

Member Data Documentation

bool CBrowserObject::mChecked
const CCopasiObject* CBrowserObject::pCopasiObject
ObjectList* CBrowserObject::referenceList

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