COPASI API  4.16.103
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CCopasiMatrixReference< CType > Class Template Reference

#include <CCopasiObject.h>

Inheritance diagram for CCopasiMatrixReference< CType >:
Inheritance graph
Collaboration diagram for CCopasiMatrixReference< CType >:
Collaboration graph

Public Types

typedef CType 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 * > 

Public Member Functions

 CCopasiMatrixReference (const std::string &name, const CCopasiContainer *pParent, referenceType &reference, const unsigned C_INT32 &flag=0)
 CCopasiMatrixReference (const CCopasiMatrixReference< referenceType > &src, const CCopasiContainer *pParent)
virtual CCopasiObjectgetObject (const CCopasiObjectName &cn)
virtual const CCopasiObjectgetValueObject () const
virtual voidgetValuePointer () const
virtual ~CCopasiMatrixReference ()
- 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
virtual std::string getObjectDisplayName (bool regular=true, bool richtext=false) 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
virtual bool isPrerequisiteForContext (const CObjectInterface *pObject, const CMath::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) 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
virtual void print (std::ostream *ostream) 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

 CCopasiMatrixReference ()

Private Attributes

CType & mReference

Additional Inherited Members

- 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

template<class CType>
class CCopasiMatrixReference< CType >

Definition at line 45 of file CCopasiObject.h.

Member Typedef Documentation

template<class CType>
typedef CType CCopasiMatrixReference< CType >::referenceType

Definition at line 231 of file CCopasiObjectReference.h.

Constructor & Destructor Documentation

template<class CType>
CCopasiMatrixReference< CType >::CCopasiMatrixReference ( )

Definition at line 239 of file CCopasiObjectReference.h.

239  :
240  mReference(CType())
241  {};
template<class CType>
CCopasiMatrixReference< CType >::CCopasiMatrixReference ( const std::string &  name,
const CCopasiContainer pParent,
referenceType reference,
const unsigned C_INT32 flag = 0 

Definition at line 244 of file CCopasiObjectReference.h.

247  :
248  CCopasiObject(name, pParent, "Reference",
251  flag),
252  mReference(reference)
253  {assert(pParent != NULL);}
long int flag
Definition: f2c.h:52
template<class CType>
CCopasiMatrixReference< CType >::CCopasiMatrixReference ( const CCopasiMatrixReference< referenceType > &  src,
const CCopasiContainer pParent 

Definition at line 255 of file CCopasiObjectReference.h.

256  :
257  CCopasiObject(src, pParent),
259  {}
template<class CType>
virtual CCopasiMatrixReference< CType >::~CCopasiMatrixReference ( )

Definition at line 261 of file CCopasiObjectReference.h.

261 {}

Member Function Documentation

template<class CType>
virtual CCopasiObject* CCopasiMatrixReference< CType >::getObject ( const CCopasiObjectName cn)

Definition at line 263 of file CCopasiObjectReference.h.

References CCopasiObject::getObjectName(), CCopasiObject::getObjectParent(), CCopasiObject::isValueBool(), CCopasiObject::isValueDbl(), CCopasiObject::isValueInt(), CCopasiMatrixReference< CType >::mReference, CCopasiObject::ValueBool, CCopasiObject::ValueDbl, and CCopasiObject::ValueInt.

264  {
265 #ifdef WIN32
267 #else
269 #endif
270  (getObjectName() + cn,
271  getObjectParent(),
272  mReference(cn.getElementIndex(),
273  cn.getElementIndex(1)),
277  }
bool isValueInt() const
const std::string & getObjectName() const
bool isValueBool() const
bool isValueDbl() const
CCopasiContainer * getObjectParent() const
template<class CType>
virtual const CCopasiObject* CCopasiMatrixReference< CType >::getValueObject ( ) const

Reimplemented from CCopasiObject.

Definition at line 280 of file CCopasiObjectReference.h.

280 {return this;}
template<class CType>
virtual void* CCopasiMatrixReference< CType >::getValuePointer ( ) const

Retrieve a pointer to the value of the object

Reimplemented from CCopasiObject.

Definition at line 279 of file CCopasiObjectReference.h.

References CCopasiMatrixReference< CType >::mReference.

279 {return &mReference;}

Member Data Documentation

template<class CType>
CType& CCopasiMatrixReference< CType >::mReference

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