COPASI API  4.16.103
Public Member Functions | Private Member Functions | List of all members
CTotalNumberReference Class Reference

#include <CMoiety.h>

Inheritance diagram for CTotalNumberReference:
Inheritance graph
Collaboration diagram for CTotalNumberReference:
Collaboration graph

Public Member Functions

 CTotalNumberReference (const std::string &name, const CCopasiContainer *pParent, C_FLOAT64 &reference)
 CTotalNumberReference (const CTotalNumberReference &src, const CCopasiContainer *pParent)
virtual bool isPrerequisiteForContext (const CObjectInterface *pObject, const CMath::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const
 ~CTotalNumberReference ()
- Public Member Functions inherited from CCopasiObjectReference< C_FLOAT64 >
 CCopasiObjectReference (const std::string &name, const CCopasiContainer *pParent, referenceType &reference, const unsigned C_INT32 &flag=0)
 CCopasiObjectReference (const CCopasiObjectReference< referenceType > &src, const CCopasiContainer *pParent)
virtual std::string getObjectDisplayName (bool regular=true, bool richtext=false) const
virtual const CCopasiObjectgetValueObject () const
virtual voidgetValuePointer () const
virtual void print (std::ostream *ostream) const
virtual void setReference (referenceType &reference)
virtual ~CCopasiObjectReference ()
- Public Member Functions inherited from CCopasiObject
void addDirectDependency (const CCopasiObject *pObject)
 CCopasiObject (const CCopasiObject &src, const CCopasiContainer *pParent=NULL)
void clearDirectDependencies ()
void clearRefresh ()
bool dependsOn (DataObjectSet candidates, const DataObjectSet &context=DataObjectSet()) const
void getAllDependencies (DataObjectSet &dependencies, const DataObjectSet &context) const
virtual CCopasiObjectName getCN () const
virtual const DataObjectSetgetDirectDependencies (const DataObjectSet &context=DataObjectSet()) const
virtual const std::string & getKey () const
virtual const CObjectInterfacegetObject (const CCopasiObjectName &cn) const
CCopasiContainergetObjectAncestor (const std::string &type) const
CCopasiDataModelgetObjectDataModel ()
const CCopasiDataModelgetObjectDataModel () const
const std::string & getObjectName () const
CCopasiContainergetObjectParent () const
const std::string & getObjectType () const
virtual const
getPrerequisites () const
virtual RefreshgetRefresh () const
virtual std::string getUnits () const
UpdateMethodgetUpdateMethod () const
bool hasCircularDependencies (DataObjectSet &candidates, DataObjectSet &verified, const DataObjectSet &context) const
bool hasUpdateMethod () const
bool isArray () const
bool isContainer () const
bool isDataModel () const
bool isMatrix () const
bool isNameVector () const
bool isNonUniqueName () const
bool isReference () const
bool isRoot () const
bool isSeparator () const
bool isStaticString () const
bool isValueBool () const
bool isValueDbl () const
bool isValueInt () const
bool isValueInt64 () const
bool isValueString () const
bool isVector () const
virtual bool mustBeDeleted (const DataObjectSet &deletedObjects) const
void removeDirectDependency (const CCopasiObject *pObject)
void setDirectDependencies (const DataObjectSet &directDependencies)
bool setObjectName (const std::string &name)
virtual bool setObjectParent (const CCopasiContainer *pParent)
void setObjectValue (const C_FLOAT64 &value)
void setObjectValue (const C_INT32 &value)
void setObjectValue (const bool &value)
template<class CType >
void setRefresh (CType *pType, void(CType::*method)(void))
template<class CType >
void setUpdateMethod (CType *pType, void(CType::*method)(const C_FLOAT64 &))
template<class CType >
void setUpdateMethod (CType *pType, void(CType::*method)(const C_INT32 &))
template<class CType >
void setUpdateMethod (CType *pType, void(CType::*method)(const bool &))
virtual ~CCopasiObject ()
- Public Member Functions inherited from CObjectInterface
 CObjectInterface ()
virtual ~CObjectInterface ()

Private Member Functions

 CTotalNumberReference ()

Additional Inherited Members

- Public Types inherited from CCopasiObjectReference< C_FLOAT64 >
typedef C_FLOAT64 referenceType
- Public Types inherited from CCopasiObject
typedef std::set< const
CCopasiObject * > 
typedef std::vector< Refresh * > DataUpdateSequence
- Public Types inherited from CObjectInterface
typedef std::set< const
CObjectInterface * > 
typedef std::vector
< CObjectInterface * > 
- Static Public Member Functions inherited from CCopasiObject
static std::vector< Refresh * > buildUpdateSequence (const DataObjectSet &objects, const DataObjectSet &uptoDateObjects, const DataObjectSet &context=DataObjectSet())
static void setRenameHandler (CRenameHandler *rh)
- Protected Types inherited from CCopasiObject
enum  Flag {
  Container = 0x1, Vector = 0x2, Matrix = 0x4, NameVector = 0x8,
  Reference = 0x10, ValueBool = 0x20, ValueInt = 0x40, ValueInt64 = 0x80,
  ValueDbl = 0x100, NonUniqueName = 0x200, StaticString = 0x400, ValueString = 0x800,
  Separator = 0x1000, ModelEntity = 0x2000, Array = 0x4000, DataModel = 0x8000,
  Root = 0x10000, Gui = 0x20000
- Protected Member Functions inherited from CCopasiObject
 CCopasiObject ()
 CCopasiObject (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &type="CN", const unsigned C_INT32 &flag=0)
- Static Protected Attributes inherited from CCopasiObject
static CRenameHandlersmpRenameHandler = NULL

Detailed Description

Definition at line 33 of file CMoiety.h.

Constructor & Destructor Documentation

CTotalNumberReference::CTotalNumberReference ( )

Hidden default constructor

CTotalNumberReference::CTotalNumberReference ( const std::string &  name,
const CCopasiContainer pParent,
C_FLOAT64 reference 

Specific constructor

conststd::string & name
constCCopasiContainer * pParent,
C_FLOAT64& reference,

Definition at line 286 of file CMoiety.cpp.

288  :
289  CCopasiObjectReference< C_FLOAT64 >(name, pParent, reference)
290 {}
CTotalNumberReference::CTotalNumberReference ( const CTotalNumberReference src,
const CCopasiContainer pParent 

Copy constructor

constCTotalNumberReference & src
constCCopasiContainer * pParent,

Definition at line 292 of file CMoiety.cpp.

CTotalNumberReference::~CTotalNumberReference ( )


Definition at line 297 of file CMoiety.cpp.

298 {}

Member Function Documentation

bool CTotalNumberReference::isPrerequisiteForContext ( const CObjectInterface pObject,
const CMath::SimulationContextFlag context,
const CObjectInterface::ObjectSet changedObjects 
) const

Check whether a given object is a prerequisite for a context.

constCObjectInterface * pObject
constCMath::SimulationContextFlag & context
constCObjectInterface::ObjectSet & changedObjects
bool isPrerequisiteForContext

Reimplemented from CCopasiObject.

Definition at line 301 of file CMoiety.cpp.

References CMath::UpdateMoieties.

304 {
305  return (context & CMath::UpdateMoieties);
306 }

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