COPASI API  4.40.278
CTotalNumberReference Class Reference

#include <CMoiety.h>

Inheritance diagram for CTotalNumberReference:
[legend]

Public Member Functions

 CTotalNumberReference (const CTotalNumberReference &src, const CDataContainer *pParent)
 
 CTotalNumberReference (const std::string &name, const CDataContainer *pParent, C_FLOAT64 &reference)
 
virtual bool isPrerequisiteForContext (const CObjectInterface *pObject, const CCore::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const
 
 ~CTotalNumberReference ()
 
- Public Member Functions inherited from CDataObjectReference< C_FLOAT64 >
 CDataObjectReference (const CDataObjectReference< referenceType > &src, const CDataContainer *pParent)
 
 CDataObjectReference (const std::string &name, const CDataContainer *pParent, referenceType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None)
 
virtual std::string getObjectDisplayName () const override
 
virtual const CDataObjectgetValueObject () const override
 
virtual void * getValuePointer () const override
 
virtual void print (std::ostream *ostream) const override
 
void setReference (referenceType &reference)
 
virtual ~CDataObjectReference ()
 
- Public Member Functions inherited from CDataObject
void addIssue (const CIssue &issue)
 
void addReference (const CDataContainer *pReference)
 
virtual bool applyData (const CData &data, CUndoData::CChangeSet &changes) override
 
virtual void calculateValue () override
 
 CDataObject (const CDataObject &src, const CDataContainer *pParent=NULL)
 
virtual void createUndoData (CUndoData &undoData, const CUndoData::Type &type, const CData &oldData=CData(), const CCore::Framework &framework=CCore::Framework::ParticleNumbers) const override
 
virtual void destruct () override
 
virtual CCommonName getCN () const override
 
virtual const CDataObjectgetDataObject () const override
 
virtual const std::string & getKey () const
 
virtual const CObjectInterfacegetObject (const CCommonName &cn) const override
 
CDataContainergetObjectAncestor (const std::string &type) const
 
CDataModelgetObjectDataModel () const
 
const CObjectInterfacegetObjectFromCN (const CCommonName &cn) const
 
const std::string & getObjectName () const
 
CDataContainergetObjectParent () const
 
const std::string & getObjectType () const
 
virtual const CObjectInterface::ObjectSetgetPrerequisites () const override
 
virtual const std::string getUnits () const
 
virtual const CValiditygetValidity () const override
 
bool hasFlag (const Flag &flag) const
 
bool prerequisitsContains (const DataObjectSet &objects) const
 
void removeIssue (const CIssue &issue)
 
void removeReference (const CDataContainer *pReference)
 
bool setObjectName (const std::string &name)
 
virtual bool setObjectParent (const CDataContainer *pParent)
 
virtual CData toData () const override
 
void validityChanged (const CValidity &changedValidity) override
 
void validityRemoved (const CValidity &changedValidity)
 
virtual ~CDataObject ()
 
- Public Member Functions inherited from CObjectInterface
 CObjectInterface ()
 
 CObjectInterface (const CObjectInterface &src)
 
virtual ~CObjectInterface ()
 
- Public Member Functions inherited from CUndoObjectInterface
 CUndoObjectInterface ()
 
 CUndoObjectInterface (const CUndoObjectInterface &src)
 
bool generateUuid ()
 
const xg::Guid & getUuid () const
 
virtual CUndoObjectInterfaceinsert (const CData &data)
 
bool setUuid (const std::string &uuid)
 
bool setUuid (const xg::Guid &uuid)
 
virtual void updateIndex (const size_t &index, const CUndoObjectInterface *pUndoObject)
 
virtual ~CUndoObjectInterface ()
 

Private Member Functions

 CTotalNumberReference ()
 

Additional Inherited Members

- Public Types inherited from CDataObjectReference< C_FLOAT64 >
typedef C_FLOAT64 referenceType
 
- Public Types inherited from CDataObject
typedef std::set< const CDataObject * > DataObjectSet
 
enum  Flag {
  Container , Vector , Matrix , NameVector ,
  Reference , ValueBool , ValueInt , ValueInt64 ,
  ValueDbl , NonUniqueName , StaticString , ValueString ,
  Separator , DisplayName , ModelEntity , Array ,
  DataModel , Root , Gui , __SIZE
}
 
- Public Types inherited from CObjectInterface
typedef std::vector< const CDataContainer * > ContainerList
 
typedef std::set< const CObjectInterface * > ObjectSet
 
- Static Public Member Functions inherited from CDataObject
static CDataObjectfromData (const CData &data, CUndoObjectInterface *pParent)
 
static void sanitizeObjectName (std::string &name)
 
- Static Public Member Functions inherited from CObjectInterface
static const CDataObjectDataObject (const CObjectInterface *pInterface)
 
static CObjectInterfaceGetObjectFromCN (const ContainerList &listOfContainer, const CCommonName &objName)
 
- Static Public Member Functions inherited from CUndoObjectInterface
template<class CType >
static CType * fromData (const CData &, CUndoObjectInterface *)
 
- Protected Member Functions inherited from CDataObject
 CDataObject ()
 
 CDataObject (const std::string &name, const CDataContainer *pParent=static_cast< CDataContainer * >((void *) 0), const std::string &type="CN", const CFlags< Flag > &flag=CFlags< Flag >::None)
 
- Protected Attributes inherited from CDataObject
ObjectSet mPrerequisits
 
std::set< CDataContainer * > mReferences
 
- Protected Attributes inherited from CObjectInterface
CValidity mValidity
 

Constructor & Destructor Documentation

◆ CTotalNumberReference() [1/3]

CTotalNumberReference::CTotalNumberReference ( )
private

Hidden default constructor

◆ CTotalNumberReference() [2/3]

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

Specific constructor

Parameters
conststd::string & name
constCDataContainer * pParent,
C_FLOAT64& reference,

◆ CTotalNumberReference() [3/3]

CTotalNumberReference::CTotalNumberReference ( const CTotalNumberReference src,
const CDataContainer pParent 
)

Copy constructor

Parameters
constCTotalNumberReference & src
constCDataContainer * pParent,

◆ ~CTotalNumberReference()

CTotalNumberReference::~CTotalNumberReference ( )

Destructor

Member Function Documentation

◆ isPrerequisiteForContext()

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

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

Parameters
constCObjectInterface * pObject
constCCore::SimulationContextFlag & context
constCObjectInterface::ObjectSet & changedObjects
Returns
bool isPrerequisiteForContext

Reimplemented from CDataObject.

References CFlags< Enum >::isSet(), and CCore::UpdateMoieties.


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