COPASI API  4.40.278
CDataObject Class Reference

#include <CDataObject.h>

Inheritance diagram for CDataObject:
[legend]

Public Types

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
 

Public Member Functions

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
 
virtual std::string getObjectDisplayName () const override
 
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
 
virtual const CDataObjectgetValueObject () const
 
virtual void * getValuePointer () const override
 
bool hasFlag (const Flag &flag) const
 
virtual bool isPrerequisiteForContext (const CObjectInterface *pObject, const CCore::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const override
 
bool prerequisitsContains (const DataObjectSet &objects) const
 
virtual void print (std::ostream *ostream) const override
 
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 ()
 

Static Public Member Functions

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

 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

ObjectSet mPrerequisits
 
std::set< CDataContainer * > mReferences
 
- Protected Attributes inherited from CObjectInterface
CValidity mValidity
 

Private Member Functions

void refreshAggregateValidity ()
 

Private Attributes

CValidity mAggregateValidity
 
std::string mObjectDisplayName
 
CFlags< FlagmObjectFlag
 
std::string mObjectName
 
std::string mObjectType
 
CDataObjectReference< std::string > * mpObjectDisplayName
 
CDataObjectReference< std::string > * mpObjectName
 
CDataContainermpObjectParent
 
std::set< const CValidity * > mReferencedValidities
 

Friends

std::ostream & operator<< (std::ostream &os, const CDataObject &o)
 

Member Typedef Documentation

◆ DataObjectSet

typedef std::set< const CDataObject * > CDataObject::DataObjectSet

Member Enumeration Documentation

◆ Flag

Enumerator
Container 
Vector 
Matrix 
NameVector 
Reference 
ValueBool 
ValueInt 
ValueInt64 
ValueDbl 
NonUniqueName 
StaticString 
ValueString 
Separator 
DisplayName 
ModelEntity 
Array 
DataModel 
Root 
Gui 
__SIZE 

Constructor & Destructor Documentation

◆ CDataObject() [1/3]

CDataObject::CDataObject ( )
protected

Class CDataObject

This class is the base class for all global accessible objects in COPASI.

Copyright Stefan Hoops 2002

Referenced by fromData().

◆ CDataObject() [2/3]

CDataObject::CDataObject ( const std::string &  name,
const CDataContainer pParent = static_cast< CDataContainer * >((void *) 0),
const std::string &  type = "CN",
const CFlags< Flag > &  flag = CFlagsFlag >::None 
)
protected

◆ CDataObject() [3/3]

CDataObject::CDataObject ( const CDataObject src,
const CDataContainer pParent = NULL 
)

◆ ~CDataObject()

Member Function Documentation

◆ addIssue()

void CDataObject::addIssue ( const CIssue issue)

◆ addReference()

void CDataObject::addReference ( const CDataContainer pReference)

◆ applyData()

bool CDataObject::applyData ( const CData data,
CUndoData::CChangeSet changes 
)
overridevirtual

Apply the provided data to the object

Parameters
constCData & data
Returns
bool success

Implements CUndoObjectInterface.

Reimplemented in CCopasiParameter, CModelEntity, CMetab, CDataContainer, CArrayElementReference, CUnitDefinition, CSlider, CCopasiTask, CCopasiParameterGroup, CReportDefinition, CPlotSpecification, CPlotItem, CFittingPoint, CReaction, CMoiety, CModelValue, CModelParameterSet, CModel, CMetabOld, CEvent, CEventAssignment, CCompartment, CReference, CModification, CMIRIAMInfo, CCreator, CBiologicalDescription, CLReactionGlyph, CLGeneralGlyph, CLMetabReferenceGlyph, CLReferenceGlyph, CLLocalStyle, CLLocalRenderInformation, CLLineEnding, CLGraphicalObject, CLGradientStop, CLGradientBase, CLTextGlyph, CLCompartmentGlyph, CLMetabGlyph, CLGlobalStyle, CLGlobalRenderInformation, CLColorDefinition, CLayout, CFunctionParameter, CFunction, CEvaluationTree, CDataVectorN< CType >, CDataVectorN< CEventAssignment >, CDataVectorN< CCopasiTask >, CDataVectorN< CLayout >, CDataVectorN< CUnitDefinition >, CDataVectorN< CPlotSpecification >, CDataVectorN< CModelParameterSet >, CDataVectorN< CEvent >, CDataVectorN< CFunction >, CDataVectorN< CModelValue >, CDataVectorN< CReportDefinition >, CDataVector< CType >, CDataVector< CLGlobalRenderInformation >, CDataVector< CModification >, CDataVector< CLMetabGlyph >, CDataVector< CLCompartmentGlyph >, CDataVector< CSlider >, CDataVector< CLReferenceGlyph >, CDataVector< CBiologicalDescription >, CDataVector< CLGlobalStyle >, CDataVector< CReference >, CDataVector< CLGradientStop >, CDataVector< CMoiety >, CDataVector< CLMetabReferenceGlyph >, CDataVector< CDataModel >, CDataVector< CChemEqElement >, CDataVector< CEvent >, CDataVector< CLReactionGlyph >, CDataVector< CLColorDefinition >, CDataVector< CMetab >, CDataVector< CLLocalRenderInformation >, CDataVector< CLGradientBase >, CDataVector< CPlotItem >, CDataVector< CDataObject >, CDataVector< CLTextGlyph >, CDataVector< CLLineEnding >, CDataVector< CFittingPoint >, CDataVector< CLLocalStyle >, CDataVector< CCreator >, CDataVector< CLGeneralGlyph >, CDataVector< CLGraphicalObject >, and CDataModel.

References CData::addProperty(), CDataContainer::getObject(), getObjectDataModel(), CData::getProperty(), CDataContainer::insert(), CData::isSetProperty(), mpObjectParent, CData::OBJECT_INDEX, CData::OBJECT_NAME, CData::OBJECT_POINTER, CData::OBJECT_REFERENCE_CN, CData::OBJECT_REFERENCE_INDEX, CData::OBJECT_REFERENCES, CData::OBJECT_UUID, setObjectName(), CUndoObjectInterface::setUuid(), CDataValue::toDataVector(), CDataValue::toSizeT(), CDataValue::toString(), and CUndoObjectInterface::updateIndex().

Referenced by CReportDefinition::applyData(), CCopasiParameterGroup::applyData(), CArrayElementReference::applyData(), and CDataContainer::applyData().

◆ calculateValue()

void CDataObject::calculateValue ( )
overridevirtual

◆ createUndoData()

void CDataObject::createUndoData ( CUndoData undoData,
const CUndoData::Type type,
const CData oldData = CData(),
const CCore::Framework framework = CCore::Framework::ParticleNumbers 
) const
overridevirtual

Create the undo data which represents the changes recording the differences between the provided oldData and the current data.

Parameters
CUndoData& undoData
constCUndoData::Type & type
constCData & oldData (default: empty data)
constCCore::Framework & framework (default: CCore::Framework::ParticleNumbers)
Returns
CUndoData undoData

Implements CUndoObjectInterface.

Reimplemented in CCopasiParameter, CModelEntity, CMetab, CDataContainer, CUnitDefinition, CCopasiTask, CCopasiParameterGroup, CReportDefinition, CReaction, CModelValue, CModelParameterSet, CModel, CEvent, CEventAssignment, CCompartment, CReference, CModification, CMIRIAMInfo, CCreator, CBiologicalDescription, CFunction, CDataVectorN< CType >, CDataVectorN< CEventAssignment >, CDataVectorN< CCopasiTask >, CDataVectorN< CLayout >, CDataVectorN< CUnitDefinition >, CDataVectorN< CPlotSpecification >, CDataVectorN< CModelParameterSet >, CDataVectorN< CEvent >, CDataVectorN< CFunction >, CDataVectorN< CModelValue >, CDataVectorN< CReportDefinition >, CDataVector< CType >, CDataVector< CLGlobalRenderInformation >, CDataVector< CModification >, CDataVector< CLMetabGlyph >, CDataVector< CLCompartmentGlyph >, CDataVector< CSlider >, CDataVector< CLReferenceGlyph >, CDataVector< CBiologicalDescription >, CDataVector< CLGlobalStyle >, CDataVector< CReference >, CDataVector< CLGradientStop >, CDataVector< CMoiety >, CDataVector< CLMetabReferenceGlyph >, CDataVector< CDataModel >, CDataVector< CChemEqElement >, CDataVector< CEvent >, CDataVector< CLReactionGlyph >, CDataVector< CLColorDefinition >, CDataVector< CMetab >, CDataVector< CLLocalRenderInformation >, CDataVector< CLGradientBase >, CDataVector< CPlotItem >, CDataVector< CDataObject >, CDataVector< CLTextGlyph >, CDataVector< CLLineEnding >, CDataVector< CFittingPoint >, CDataVector< CLLocalStyle >, CDataVector< CCreator >, CDataVector< CLGeneralGlyph >, and CDataVector< CLGraphicalObject >.

References CUndoData::addProperty(), CData::addProperty(), C_INVALID_INDEX, CUndoData::CHANGE, getCN(), CDataContainer::getIndex(), CData::getProperty(), mObjectFlag, mObjectName, mObjectType, mpObjectParent, mReferences, CData::OBJECT_FLAG, CData::OBJECT_INDEX, CData::OBJECT_NAME, CData::OBJECT_PARENT_CN, CData::OBJECT_REFERENCE_CN, CData::OBJECT_REFERENCE_INDEX, CData::OBJECT_REFERENCES, and CData::OBJECT_TYPE.

Referenced by CReportDefinition::createUndoData(), and CDataContainer::createUndoData().

◆ destruct()

void CDataObject::destruct ( )
overridevirtual

◆ fromData()

CDataObject * CDataObject::fromData ( const CData data,
CUndoObjectInterface pParent 
)
static

Static method to create a CDataObject based on the provided data

Parameters
constCData & data
Returns
CDataObject * pDataObject

References CDataObject(), CData::getProperty(), NO_PARENT, CData::OBJECT_FLAG, CData::OBJECT_NAME, CData::OBJECT_TYPE, CUndoObjectInterface::setUuid(), and CDataValue::toString().

◆ getCN()

CCommonName CDataObject::getCN ( ) const
overridevirtual

Retrieve the CN of the object

Returns
CCommonName

Implements CObjectInterface.

Reimplemented in CCopasiParameter, CArrayElementReference, CModelParameterSet, and CMathContainer.

References C_INVALID_INDEX, DataModel, CCommonName::escape(), getCN(), CDataContainer::getIndex(), hasFlag(), mObjectName, mObjectType, mpObjectParent, NameVector, and Vector.

Referenced by CModelParameterSet::add(), SEDMLImporter::addCurveToCopasiPlot(), CCompartment::addMetabolite(), CReaction::addParameterObject(), addParticleNumberToInitialValueMap(), SEDMLImporter::addSurfaceToCopasiPlot(), CReportDefinition::addTableElement(), addToInitialValueMap(), CCompartment::applyData(), applyValueToParameterSet(), CEventAssignment::CEventAssignment(), CFixLocalReactionParameters::changeModel(), CSBMLExporter::checkForUnsupportedObjectReferences(), CModelParameterSet::CModelParameterSet(), CEvaluationNodeCall::compile(), CEvaluationNodeObject::compile(), CEventAssignment::compile(), CMathEvent::CAssignment::compile(), CModel::convert2NonReversible(), CModelAdd::copyDelayExpression(), CModelAdd::copyEventAssignmentExpression(), CModelAdd::copyExpression(), CModelAdd::copyInitialExpression(), CModelAdd::copyTriggerExpression(), SEDMLUtils::createAmountMV(), SBMLImporter::createCModelFromSBMLDocument(), SBMLImporter::createCReactionFromReaction(), COutputAssistant::createDefaultOutput(), CPlotSpecification::createDefaultPlot(), CModel::createEventsForTimeseries(), CModelParameterSet::createFromModel(), CExpression::createInitialExpression(), CSBMLExporter::createKineticExpression(), CSBMLExporter::createMassActionExpression(), COutputAssistant::createPlot(), CScanProblem::createScanItem(), CReactionInterface::createUndoData(), CCopasiTask::createUndoData(), createUndoData(), CDerive::deriveBranch(), SBMLImporter::divideByObject(), CModelExpansion::duplicateEvent(), CSEDMLExporter::exportReport(), CExpressionGenerator::generate(), CMathContainer::getCN(), CModelParameterSet::getCN(), CArrayElementReference::getCN(), getCN(), CMathObject::getCN(), CCopasiParameter::getCN(), CModelEntity::getDefaultNoiseExpression(), CReaction::getDefaultNoiseExpression(), CModelExpansion::ElementsMap::getDuplicateFromCN(), getInitialCNForSBase(), CMathContainer::getObject(), CEvent::getOriginFor(), CMetabNameInterface::getSpeciesCN(), SBMLImporter::importEvent(), SEDMLImporter::importReport(), CDataModel::loadModelParameterSets(), CReaction::loadOneRole(), CEvaluationTree::mapObjectNodes(), CModelMerging::mergeInExpression(), CSBMLExporter::multiplyByObject(), CModel::prepareElasticity(), COPASIHandler::processEnd(), AssignmentHandler::processStart(), CModelParameter::refreshFromModel(), SBMLImporter::renameMassActionParameters(), SBMLImporter::replace_time_with_initial_time(), CModelExpansion::replaceInEvent(), CModelExpansion::replaceInExpression(), CModelExpansion::replaceInMetab(), SBMLImporter::replaceObjectNames(), CSBMLExporter::replaceSpeciesReferences(), CCopasiXML::saveModel(), SBMLImporter::sbmlId2CopasiCN(), CDataArray::setAnnotation(), CMetab::setCompartment(), CDataArray::setCopasiVector(), CSEDMLExporter::setCurrentTime(), setObjectName(), setObjectParent(), CReaction::setScalingCompartment(), CReaction::setScalingFactor(), CAnalyticsProblem::setSingleObjectCN(), CCrossSectionProblem::setSingleObjectCN(), CSlider::setSliderObject(), COptProblem::setSubtaskType(), CCopasiTask::toData(), toData(), CModelExpansion::updateExpression(), CReaction::variable2object(), and CReactionInterface::writeBackToReaction().

◆ getDataObject()

const CDataObject * CDataObject::getDataObject ( ) const
overridevirtual

◆ getKey()

const std::string & CDataObject::getKey ( ) const
virtual

Reimplemented in CCopasiParameter, CModelEntity, CUnitDefinition, CSlider, CCopasiTask, CReportDefinitionVector, CReportDefinition, COutputDefinitionVector, CReaction, CMoiety, CModelParameterSet, CModel, CEvent, CEventAssignment, CReference, CModification, CMIRIAMInfo, CCreator, CBiologicalDescription, CLText, CLStyle, CLRenderInformationBase, CLRenderCurve, CLRectangle, CLPolygon, CLLineEnding, CLImage, CLGroup, CLGraphicalObject, CLGradientStop, CLGradientBase, CLEllipse, CLColorDefinition, CLayout, CFunctionParameter, and CFunction.

Referenced by addToInitialValueMap(), CModel::buildStoi(), CLayout::CLayout(), CTimeSeries::compile(), SBMLImporter::createCReactionFromReaction(), CModelExpansion::createDiffusionReaction(), SBMLImporter::doMapping(), CModelExpansion::duplicateEvent(), CODEExporter::exportExpression(), CODEExporter::exportKineticFunction(), CODEExporter::exportMetabolites(), CODEExporter::exportMetabolitesConcentrations(), CODEExporter::exportReacParamsAndFuncs(), CLayout::exportToDotFile(), getFunctionForKey(), CMIRIAMInfo::getKey(), getQuantityParameterOrValue(), SBMLImporter::importEvent(), CODEExporterC::KineticFunction2ODEmember(), CMIRIAMInfo::load(), CModelMerging::mergeInExpression(), CODEExporterC::preprocess(), COPASIHandler::processEnd(), ParameterHandler::processStart(), SliderHandler::processStart(), SBMLImporter::restoreFunctionDB(), CCopasiXML::saveModel(), CLLayoutRenderer::setDeduceSpeciesReferenceRoles(), CLLayoutRenderer::update_associations(), CSBMLExporter::updateMIRIAMAnnotation(), and CMMLOutput::writeDifferentialEquations().

◆ getObject()

const CObjectInterface * CDataObject::getObject ( const CCommonName cn) const
overridevirtual

Retrieve a descendant object by its CN.

Parameters
constCCommonName & cn
Returns
const CObjectInterface * pObject

Implements CObjectInterface.

Reimplemented in CDataVectorN< CType >, CDataVectorN< CEventAssignment >, CDataVectorN< CCopasiTask >, CDataVectorN< CLayout >, CDataVectorN< CUnitDefinition >, CDataVectorN< CPlotSpecification >, CDataVectorN< CModelParameterSet >, CDataVectorN< CEvent >, CDataVectorN< CFunction >, CDataVectorN< CModelValue >, CDataVectorN< CReportDefinition >, CDataVector< CType >, CDataVector< CLGlobalRenderInformation >, CDataVector< CModification >, CDataVector< CLMetabGlyph >, CDataVector< CLCompartmentGlyph >, CDataVector< CSlider >, CDataVector< CLReferenceGlyph >, CDataVector< CBiologicalDescription >, CDataVector< CLGlobalStyle >, CDataVector< CReference >, CDataVector< CLGradientStop >, CDataVector< CMoiety >, CDataVector< CLMetabReferenceGlyph >, CDataVector< CDataModel >, CDataVector< CChemEqElement >, CDataVector< CEvent >, CDataVector< CLReactionGlyph >, CDataVector< CLColorDefinition >, CDataVector< CMetab >, CDataVector< CLLocalRenderInformation >, CDataVector< CLGradientBase >, CDataVector< CPlotItem >, CDataVector< CDataObject >, CDataVector< CLTextGlyph >, CDataVector< CLLineEnding >, CDataVector< CFittingPoint >, CDataVector< CLLocalStyle >, CDataVector< CCreator >, CDataVector< CLGeneralGlyph >, CDataVector< CLGraphicalObject >, CDataContainer, CCopasiParameterGroup, CReaction, CMathContainer, and CDataArray.

References DisplayName, getObjectDisplayName(), mObjectDisplayName, mObjectName, mpObjectDisplayName, mpObjectName, and mpObjectParent.

Referenced by CDataArray::getObject(), CDataContainer::getObject(), CMathObject::getObject(), CDataVector< CType >::getObject(), and SEDMLUtils::resolveXPath().

◆ getObjectAncestor()

CDataContainer * CDataObject::getObjectAncestor ( const std::string &  type) const

References getObjectParent(), and getObjectType().

Referenced by CReaction::addParameterObject(), CModel::appendAllDependents(), CDataContainer::appendDeletedDependentData(), CModel::appendDirectDependents(), CBiologicalDescription::applyData(), CCreator::applyData(), CModification::applyData(), CReference::applyData(), CEventAssignment::applyData(), CEvent::applyData(), CReaction::applyData(), CExperimentSet::calculateStatistics(), CFixLocalReactionParameters::changeModel(), CReaction::compile(), CEvaluationNodeObject::compile(), CMetab::compile(), CReaction::compileFunctionParameters(), CScanItem::CScanItem(), CDerive::deriveBranch(), CBiologicalDescription::destruct(), CCreator::destruct(), CModification::destruct(), CReference::destruct(), CModelExpansion::duplicateEvent(), CFitProblem::elevateChildren(), CBiologicalDescription::fromData(), CCreator::fromData(), CModification::fromData(), CReference::fromData(), CReaction::getChildObjectUnits(), CMathDependencyGraph::getDOTNodeId(), CReaction::getKineticLawUnit(), CEvent::getObjectDisplayName(), CReaction::getObjectDisplayName(), CArrayElementReference::getObjectDisplayName(), CMetab::getObjectDisplayName(), CCopasiParameter::getObjectDisplayName(), COptProblem::getSubTask(), SEDMLUtils::getXPathForObjectAndType(), CChemEqInterface::init(), CReactionInterface::init(), CMetab::initCompartment(), CMoiety::initConversionFactor(), CFitProblem::initialize(), CModelEntity::initObjects(), CReaction::loadOneRole(), CReaction::setHasNoise(), CReaction::setNoiseExpression(), CReaction::setNoiseExpressionPtr(), CEventAssignment::setObjectParent(), CEvent::setObjectParent(), CModelParameterSet::setObjectParent(), CModelEntity::setObjectParent(), CReaction::setParameterObjects(), COptProblem::setSubtaskType(), CModelParameter::updateModel(), CReactionInterface::writeBackToReaction(), CChemEqInterface::writeToChemEq(), and CReaction::~CReaction().

◆ getObjectDataModel()

CDataModel * CDataObject::getObjectDataModel ( ) const

Returns a pointer to the CDataModel the element belongs to. If there is no instance of CDataModel in the ancestor tree, NULL is returned.

References DataModel, getObjectParent(), and hasFlag().

Referenced by CFitProblem::addFitConstraint(), CFitProblem::addFitItem(), COptProblem::addOptConstraint(), COptProblem::addOptItem(), addParticleNumberToInitialValueMap(), CDataContainer::appendDeletedDependentData(), applyData(), CExperiment::calculateStatistics(), CDataModel::changeModelParameter(), CModelEntity::compile(), CEvaluationNodeObject::compile(), CMetab::compile(), CEventAssignment::compile(), COptItem::compile(), CSlider::compile(), CModelAdd::copyDelayExpression(), CModelAdd::copyEventAssignmentExpression(), CModelAdd::copyExpression(), CModelAdd::copyInitialExpression(), CModelAdd::copyTriggerExpression(), CModel::createEventsForTimeseries(), CModelExpansion::duplicateEvent(), CFitProblem::elevateChildren(), CSBMLExporter::exportEventAssignments(), CODEExporter::exportModelValuesExpressions(), CExperimentObjectMap::CDataColumn::getDefaultScale(), CExperiment::getFileName(), CReaction::getFirstCModelOrDefault(), CMathContainer::getObject(), CLRenderResolver::getObjectDataModel(), CFittingPoint::getObjectDisplayName(), getObjectFromCN(), CMathContainer::getObjectFromCN(), CObjectInterface::GetObjectFromCN(), CReaction::getReactionScheme(), CScanProblem::getSubTask(), CSensProblem::getSubTask(), CMCAProblem::getSubTask(), CReactionInterface::getUnit(), CReactionInterface::getUnitVector(), SEDMLUtils::getXPathForObject(), SEDMLImporter::importOutputs(), CNewtonMethod::initialize(), CScanTask::initialize(), CTimeSensTask::initialize(), CTrajectoryTask::initialize(), CCopasiTask::initialize(), CSensMethod::initialize(), CLsodaMethod::initializeParameter(), CCopasiTask::initObjects(), CScanTask::initSubtask(), CSlider::isValid(), CModel::load(), CReaction::loadOneRole(), CModelMerging::mergeInExpression(), CILDMModifiedMethod::printResult(), CTSSAProblem::printResult(), CCopasiXML::saveModel(), CReaction::setReactionScheme(), CReaction::setScalingCompartmentCN(), CReaction::setScalingFactor(), CSlider::setSliderObject(), CModelEntity::setStatus(), CLNAProblem::setSteadyStateRequested(), CMCAProblem::setSteadyStateRequested(), COptProblem::setSubtaskType(), and CSlider::writeToObject().

◆ getObjectDisplayName()

std::string CDataObject::getObjectDisplayName ( ) const
overridevirtual

Retrieve the display name of the object

Parameters
boolregular (default: true)
boolrichtext (default: false)
Returns
std::string objectDisplayName

Implements CObjectInterface.

Reimplemented in CCopasiParameter, COptItem, CMetab, CDataObjectReference< CType >, CDataObjectReference< C_FLOAT64 >, CDataObjectReference< std::string >, CArrayElementReference, CFittingPoint, CReaction, CEvent, CCopasiReportSeparator, CDataString, and CDataArray.

References getObjectDisplayName(), getObjectName(), getObjectType(), hasFlag(), mpObjectParent, NameVector, Reference, and Vector.

Referenced by SEDMLImporter::addCurveToCopasiPlot(), SEDMLImporter::addSurfaceToCopasiPlot(), CTimeSeries::compile(), CExperiment::compile(), CAnalyticsTask::computeSelectedStatistics(), COutputAssistant::createDefaultOutput(), CPlotSpecification::createDefaultPlot(), CDataArray::createDisplayName(), CModel::createEventsForTimeseries(), CMMLOutput::createParameterMapping(), COutputAssistant::createPlot(), CExpressionGenerator::escapeDisplayName(), CSEDMLExporter::exportReport(), SEDMLUtils::findIdByNameAndType(), CDataModel::findObjectByDisplayName(), CEvaluationNodeObject::getDisplayString(), CMathMl::getMMLName(), getObject(), CDataArray::getObjectDisplayName(), CEvent::getObjectDisplayName(), CReaction::getObjectDisplayName(), CFittingPoint::getObjectDisplayName(), CArrayElementReference::getObjectDisplayName(), getObjectDisplayName(), CDataObjectReference< CType >::getObjectDisplayName(), CMathObject::getObjectDisplayName(), CMetab::getObjectDisplayName(), COptItem::getObjectDisplayName(), CCopasiParameter::getObjectDisplayName(), CEvent::getOriginFor(), SEDMLUtils::getXPathForObject(), CTimeSensMethod::printUpdateSeq(), CModelParameterSet::saveToStream(), CDataArray::setAnnotation(), CArrayElementReference::updateObjectName(), VariableInfo::VariableInfo(), and CMMLOutput::writeDifferentialEquations().

◆ getObjectFromCN()

◆ getObjectName()

const std::string & CDataObject::getObjectName ( ) const

References mObjectName.

Referenced by CUnitDefinitionDB::add(), CFunctionDB::addAndAdaptName(), CModelAdd::addCompartments(), CModelAdd::addEvents(), CExperimentSet::addExperiment(), CModelAdd::addMetabolites(), CModelAdd::addModelValues(), CChemEqInterface::addModifier(), addParticleNumberToInitialValueMap(), CModelAdd::addReactions(), CReportDefinition::addTableElement(), addToInitialValueMap(), CModel::appendAllDependents(), SBMLImporter::areEqualFunctions(), CSBMLExporter::assignSBMLIdsToReactions(), CModel::buildMoieties(), CFitProblem::calculateStatistics(), CEvaluationTree::calls(), CFixLocalReactionParameters::changeModel(), CDataModel::changeModelParameter(), CSBMLExporter::checkForInitialAssignments(), CSBMLExporter::checkForODESpeciesInNonfixedCompartment(), CSBMLExporter::checkForPiecewiseFunctions(), CSBMLExporter::checkForUnsupportedFunctionCalls(), CSBMLExporter::checkForUnsupportedObjectReferences(), CFunctionAnalyzer::checkKineticFunction(), CModelAnalyzer::checkReaction(), CReaction::compile(), CEventAssignment::compile(), CMathObject::compileFlux(), CReaction::compileFunctionParameters(), CEvaluationTree::compileNodes(), CChemEqInterface::completeCompartments(), CReactionInterface::connectFromScratch(), CReactionInterface::connectNonMetabolites(), CDataObjectMap::contains(), CModel::convert2NonReversible(), CLRenderFlattener::convertGlobalToLocalStyle(), CMathExpression::convertToInitialExpression(), CMathExpression::copy(), CModelAdd::copyDelayExpression(), CModelAdd::copyEventAssignmentExpression(), CModelAdd::copyExpression(), CModelAdd::copyInitialExpression(), CModelAdd::copyTriggerExpression(), SEDMLUtils::createAmountMV(), CSBMLExporter::createAvogadroIfNeeded(), SBMLImporter::createCFunctionFromFunctionDefinition(), SBMLImporter::createCMetabFromSpecies(), CSBMLExporter::createCompartment(), SBMLImporter::createCReactionFromReaction(), COutputAssistant::createDefaultOutput(), CSBMLExporter::createEvent(), SBMLImporter::createExpressionFromFunction(), CSBMLExporter::createFunctionDefinition(), CSBMLExporter::createFunctionDefinitions(), CReaction::createFunctionFromExpression(), CSBMLExporter::createInitialAssignment(), CSBMLExporter::createKineticExpression(), CSBMLExporter::createKineticLaw(), CModelExpansion::createLinearArray(), CFunction::createListOfParametersForMathML(), CSBMLExporter::createMetabolite(), CSBMLExporter::createParameter(), CMMLOutput::createParameterMapping(), CKinFunction::createParameters(), CFitProblem::createParameterSets(), CSBMLExporter::createReaction(), CModelExpansion::createRectangularArray(), CSBMLExporter::createRule(), CSBMLExporter::createSBMLDocument(), CReactionInterface::createUndoData(), CReaction::createUndoData(), CMetabNameInterface::createUniqueDisplayName(), CCSPMethod::CSPOutput(), CDerive::deriveBranch(), CMetabNameInterface::doesExist(), CModelExpansion::duplicateCompartment(), CModelExpansion::duplicateEvent(), CModelExpansion::duplicateGlobalQuantity(), CModelExpansion::duplicateMetab(), CModelExpansion::duplicateReaction(), CExperimentObjectMap::elevateChildren(), CFitProblem::elevateChildren(), CDataObjectMap::erase(), CSEDMLExporter::exportAlgorithm(), CODEExporter::exportCompartments(), CSBMLExporter::exportEventAssignments(), CODEExporter::exportExpression(), CODEExporter::exportKineticFunction(), CODEExporter::exportMetabolites(), CODEExporter::exportModelEntityExpression(), CODEExporter::exportModelValues(), CSEDMLExporter::exportNthPlot(), CSEDMLExporter::exportPlotItem(), CODEExporter::exportReacParamsAndFuncs(), CSEDMLExporter::exportReport(), CODEExporter::exportSimulatedObject(), CODEExporter::exportSingleFunction(), CODEExporterC::exportSingleFunction(), CODEExporterC::exportTitleData(), CLayout::exportToSBML(), SBMLImporter::findCorrespondingFunction(), SBMLImporter::findFunctionCalls(), CModel::findMoiety(), CReaction::getChildObjectUnits(), CArrayElementReference::getCN(), CFitItem::getCrossValidations(), CEvaluationNodeCall::getData(), CReactionInterface::getDeletedParameters(), CMetabNameInterface::getDisplayName(), CMathDependencyGraph::getDOTNodeId(), CFitItem::getExperiments(), CEFMTask::getFluxModeDescription(), CReactionInterface::getFunction(), CReactionInterface::getFunctionName(), CExperimentObjectMap::getLastNotIgnoredColumn(), CMathMl::getMMLName(), CLGraphicalObject::getModelObjectDisplayName(), CLGraphicalObject::getModelObjectName(), CModelParameter::getName(), CModelParameterSet::getName(), CExperimentObjectMap::getName(), CCopasiParameterGroup::getName(), CDataVectorReference< CType >::getObject(), CDataMatrixReference< CType >::getObject(), CReaction::getObject(), CDataContainer::getObject(), CDataArray::getObjectDisplayName(), CEvent::getObjectDisplayName(), CReaction::getObjectDisplayName(), CArrayElementReference::getObjectDisplayName(), getObjectDisplayName(), CDataObjectReference< CType >::getObjectDisplayName(), CCopasiParameter::getObjectDisplayName(), CPlotItem::getTitle(), CCopasiParameterGroup::getUniqueParameterName(), SEDMLUtils::getXPathForObjectAndType(), SBMLImporter::importFunctionDefinitions(), CChemEqInterface::init(), CReactionInterface::init(), CScanTask::initialize(), CCopasiTask::initialize(), CReaction::initializeParameterMapping(), CReaction::initializeParameters(), CStatistics::initObjects(), CFunction::initVariables(), CDataObjectMap::insert(), CSBMLExporter::isEventAssignmentSBMLCompatible(), CSBMLExporter::isEventSBMLCompatible(), CODEExporter::isModelEntityExpressionODEExporterCompatible(), CSBMLExporter::isModelSBMLCompatible(), CCopasiTask::isTaskValid(), ParameterGroupHandler::isUniqueParameter(), CEFMMethod::isValidProblem(), CMetab::load(), CMetabOld::load(), CReactionInterface::loadMappingAndValues(), CDataModel::loadModelParameterSets(), CReaction::loadOld(), CReaction::loadOneRole(), CModelMerging::mergeInExpression(), CCopasiXML::mergeUnitDefinitions(), CODEExporter::modifyTreeForMassAction(), CDataModel::openCombineArchive(), CCopasiParameter::operator=(), CCopasiParameterGroup::operator=(), CLGraphicalObject::operator=(), CMetab::operator=(), CUnitDefinition::operator=(), CFunctionParameters::operator==(), CODEExporter::preprocess(), CODEExporterC::preprocess(), printNameForKey(), CExperiment::printResult(), CCSPMethod::printResult(), CILDMMethod::printResult(), CILDMModifiedMethod::printResult(), CFitProblem::printResult(), CMoietiesProblem::printResult(), FunctionHandler::processEnd(), ParameterGroupHandler::processEnd(), PlotItemHandler::processEnd(), PlotSpecificationHandler::processEnd(), KineticLawHandler::processStart(), SourceParameterHandler::processStart(), CExperiment::read(), SBMLImporter::removeUnusedFunctions(), CSBMLExporter::replace_local_parameters(), CModelExpansion::replaceInExpression(), CModelExpansion::replaceInMetab(), CSBMLExporter::replaceSpeciesReferences(), CSBMLExporter::restore_local_parameters(), CCopasiXML::saveFunctionList(), CCopasiXML::saveLayoutList(), CCopasiXML::saveModel(), CCopasiXML::saveModelParameterSets(), CCopasiXMLInterface::saveParameter(), CCopasiXML::savePlotList(), CCopasiXML::saveReportList(), CCopasiXML::saveTaskList(), CCopasiXML::saveUnitDefinitionList(), CMetab::setCompartment(), CSEDMLExporter::setCurrentTime(), CODEExporterC::setExportNameOfFunction(), CReaction::setFunctionFromExpressionTree(), CSBMLExporter::setFunctionSBMLIds(), CChemEqElement::setMetabolite(), CModelMerging::simpleCall(), CEvaluationNodeObject::toAST(), CReaction::toData(), CModelExpansion::updateExpression(), CModelParameter::updateModel(), VariableInfo::VariableInfo(), CReactionInterface::writeBackToReaction(), CMMLOutput::writeDifferentialEquations(), CFunction::writeMathML(), and CMMLOutput::writeRHS().

◆ getObjectParent()

CDataContainer * CDataObject::getObjectParent ( ) const

References mpObjectParent.

Referenced by CSBMLExporter::addInitialAssignmentsToModel(), CCompartment::addMetabolite(), CReportDefinition::addTableElement(), CModel::appendAllDependents(), applyAttributeChange(), SBMLImporter::applyStoichiometricExpressions(), CLyapWolfMethod::calculate(), CEFMAlgorithm::calculateFluxModes(), CCopasiProblem::CCopasiProblem(), CUndoData::change(), CUnitDefinitionDB::changeSymbol(), CSBMLExporter::checkForUnsupportedObjectReferences(), CMetab::CMetab(), CMathExpression::compile(), CEventAssignment::compile(), CTimeSeries::compile(), CExpression::compile(), CMathObject::compileDependentMass(), CMathObject::compileFlux(), CMathObject::compileInitialValue(), CEvaluationTree::compileNodes(), CMathObject::compileNoise(), CMathObject::compileParticleFlux(), CMathObject::compilePropensity(), CMathObject::compileRate(), CMathObject::compileReactionNoise(), CMathObject::compileReactionParticleNoise(), CMathObject::compileTotalMass(), CMathObject::compileTransitionTime(), CMathObject::compileValue(), CMethodFactory::copy(), CProblemFactory::copy(), CModelAdd::copyDelayExpression(), CModelAdd::copyEventAssignmentExpression(), CModelAdd::copyExpression(), CModelAdd::copyInitialExpression(), CModelAdd::copyTriggerExpression(), CMethodFactory::create(), CProblemFactory::create(), CModel::createEventsForTimeseries(), CExpression::createInitialExpression(), CMathEvent::createUpdateSequences(), CCSPMethod::cspstep(), CTimeSensMethod::CTimeSensMethod(), CTrajectoryMethod::CTrajectoryMethod(), CDerive::deriveBranch(), SBMLImporter::doMapping(), CLLayoutRenderer::draw_layout(), elevate(), CHybridNextReactionLSODAMethod::LSODA::evalF(), CSBMLExporter::exportEventAssignments(), CODEExporter::exportExpression(), CODEExporter::exportModelEntityExpression(), CODEExporter::exportSimulatedObject(), CModelExpansion::expressionContainsObject(), CSBMLExporter::findModelEntityDependencies(), CArrayElementReference::getCN(), CCopasiParameter::getCN(), CMathContainer::getCompartment(), CModel::getCorrespondingTransientObject(), CExperimentObjectMap::CDataColumn::getDefaultScale(), CMathDependencyGraph::getDOTNodeId(), CModelParameterSet::getIndex(), CObjectLists::getListOfConstObjects(), CMathMl::getMMLName(), CDataVectorReference< CType >::getObject(), CDataMatrixReference< CType >::getObject(), CReaction::getObject(), getObjectAncestor(), getObjectDataModel(), CDataArray::getObjectDisplayName(), CArrayElementReference::getObjectDisplayName(), CDataObjectReference< CType >::getObjectDisplayName(), CCopasiParameter::getObjectDisplayName(), CArrayElementReference::getValuePointer(), CLGraphicalObject::hasValidModelReference(), CSBMLExporter::hasVolumeAssignment(), CScanMethod::init(), CBitPatternMethod::initialize(), CBitPatternTreeMethod::initialize(), CEFMAlgorithm::initialize(), CEFMMethod::initialize(), CSSAMethod::initialize(), COptMethod::initialize(), COptMethodSS::initialize(), COptProblem::initialize(), CMathContainer::initializeAtolVector(), CTimeSensMethod::initializeDerivativesCalculations(), SBMLImporter::isConstantFlux(), CReaction::isLocalParameter(), SBMLImporter::isMassActionExpression(), CODEExporter::isModelEntityExpressionODEExporterCompatible(), CModel::isStateVariable(), CMIRIAMInfo::load(), CScanMethod::loop(), CModelMerging::mergeInExpression(), CUnitDefinition::operator=(), CLyapProblem::printResult(), CTrajectoryProblem::printResult(), CEFMProblem::printResult(), CLNAProblem::printResult(), CMCAProblem::printResult(), CSteadyStateMethod::process(), CCopasiParameterGroup::removeParameter(), CSBMLExporter::replace_local_parameters(), CModelExpansion::replaceInExpression(), CSBMLExporter::replaceSpeciesReferences(), CUnitDefinitionDB::replaceSymbol(), SEDMLUtils::resolveVariable(), SEDMLUtils::resolveXPath(), SBMLImporter::setCorrectUsage(), CEventAssignment::setObjectParent(), CEvent::setObjectParent(), CUnitDefinition::setSymbol(), CUnitDefinition::setup(), CEvaluationNodeObject::toAST(), CInfo::update(), CModelExpansion::updateExpression(), CSteadyStateTask::updateMatrices(), CModelParameter::updateModel(), VariableInfo::VariableInfo(), and CUnitDefinition::~CUnitDefinition().

◆ getObjectType()

◆ getPrerequisites()

const CObjectInterface::ObjectSet & CDataObject::getPrerequisites ( ) const
overridevirtual

Retrieve the prerequisites, i.e., the objects which need to be evaluated before this.

Returns
const CObjectInterface::ObjectSet & prerequisites

Implements CObjectInterface.

Reimplemented in CMathExpression.

References mPrerequisits.

Referenced by CModelEntity::compile(), CMetab::compile(), CEventAssignment::compile(), CEvent::compile(), isPrerequisiteForContext(), and CEvaluationTree::mapObjectNodes().

◆ getUnits()

const std::string CDataObject::getUnits ( ) const
virtual

◆ getValidity()

const CValidity & CDataObject::getValidity ( ) const
overridevirtual

◆ getValueObject()

◆ getValuePointer()

◆ hasFlag()

◆ isPrerequisiteForContext()

bool CDataObject::isPrerequisiteForContext ( const CObjectInterface pObject,
const CCore::SimulationContextFlag context,
const CObjectInterface::ObjectSet changedObjects 
) const
overridevirtual

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

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

Implements CObjectInterface.

Reimplemented in CDependentNumberReference, and CTotalNumberReference.

References getPrerequisites().

◆ prerequisitsContains()

bool CDataObject::prerequisitsContains ( const DataObjectSet objects) const

References mPrerequisits.

◆ print()

void CDataObject::print ( std::ostream *  ostream) const
overridevirtual

◆ refreshAggregateValidity()

void CDataObject::refreshAggregateValidity ( )
private

◆ removeIssue()

void CDataObject::removeIssue ( const CIssue issue)

◆ removeReference()

void CDataObject::removeReference ( const CDataContainer pReference)

References mReferences.

Referenced by CDataContainer::remove(), and setObjectParent().

◆ sanitizeObjectName()

◆ setObjectName()

bool CDataObject::setObjectName ( const std::string &  name)

Set the name of the object. Note: An attempt set the name to "" results in the name being set to "No Name".

Parameters
conststd::string & name
Returns
success

References CCommonName::escape(), getCN(), CDataContainer::getObject(), CRegisteredCommonName::handle(), hasFlag(), CRegisteredCommonName::isEnabled(), isNumber(), mObjectName, mpObjectParent, mReferences, NameVector, sanitizeObjectName(), and StaticString.

Referenced by CFunctionDB::addAndAdaptName(), CExperimentSet::addExperiment(), applyData(), CDataObject(), CEventAssignment::CEventAssignment(), CLayout::CLayout(), CModelEntity::compile(), CMetab::compile(), CLRenderFlattener::convertGlobalToLocalStyle(), CMathExpression::convertToInitialExpression(), CPlotItem::CPlotItem(), SBMLImporter::createCFunctionFromFunctionDefinition(), SBMLImporter::createCModelFromSBMLDocument(), SBMLImporter::createCReactionFromReaction(), CReaction::createFunctionFromExpression(), COutputDefinitionVector::createPlotSpec(), CReportDefinitionVector::createReportDefinition(), CFitProblem::elevateChildren(), CEvaluationTree::fromData(), CModel::fromData(), CCopasiTask::fromData(), CReactionInterface::getFunction(), CCompartment::initObjects(), CMetab::initObjects(), CModel::initObjects(), CCompartment::load(), CMetab::load(), CMetabOld::load(), CModel::load(), CReaction::load(), CFunctionParameter::load(), CFunction::load(), CConfigurationFile::CXML::load(), CDataModel::loadModelParameterSets(), CCopasiParameter::operator=(), CCopasiParameterGroup::operator=(), CLGraphicalObject::operator=(), CMetab::operator=(), CUnitDefinition::operator=(), CDataString::operator=(), CompartmentHandler::processStart(), EventHandler::processStart(), FunctionHandler::processStart(), LayoutHandler::processStart(), MetaboliteHandler::processStart(), MethodHandler::processStart(), ModelHandler::processStart(), ModelParameterSetHandler::processStart(), ModelValueHandler::processStart(), ParameterDescriptionHandler::processStart(), PlotSpecificationHandler::processStart(), ReactionHandler::processStart(), ReportDefinitionHandler::processStart(), SourceParameterHandler::processStart(), SBMLImporter::renameMassActionParameters(), CModelExpansion::replaceInMetab(), CEvent::setDelayExpressionPtr(), CEventAssignment::setExpressionPtr(), CModelEntity::setExpressionPtr(), CReaction::setFunctionFromExpressionTree(), CModelEntity::setInitialExpressionPtr(), CChemEqElement::setMetabolite(), CModelEntity::setNoiseExpressionPtr(), CReaction::setNoiseExpressionPtr(), CEvent::setPriorityExpressionPtr(), CModelEntity::setStatus(), CEventAssignment::setTargetCN(), CPlotItem::setTitle(), CEvent::setTriggerExpressionPtr(), CFunction::splitFunction(), and CArrayElementReference::updateObjectName().

◆ setObjectParent()

◆ toData()

CData CDataObject::toData ( ) const
overridevirtual

Retrieve the data describing the object

Returns
CData data

Implements CUndoObjectInterface.

Reimplemented in CCopasiParameter, CModelEntity, CMetab, CDataContainer, CArrayElementReference, CUnitDefinition, CSlider, CCopasiTask, CCopasiParameterGroup, CReportDefinition, CPlotSpecification, CPlotItem, CFittingPoint, CReaction, CMoiety, CModelValue, CModelParameterSet, CModel, CMetabOld, CEvent, CEventAssignment, CCompartment, CReference, CModification, CMIRIAMInfo, CCreator, CBiologicalDescription, CLReactionGlyph, CLGeneralGlyph, CLMetabReferenceGlyph, CLReferenceGlyph, CLLocalStyle, CLLocalRenderInformation, CLLineEnding, CLGraphicalObject, CLGradientStop, CLGradientBase, CLTextGlyph, CLCompartmentGlyph, CLMetabGlyph, CLGlobalStyle, CLGlobalRenderInformation, CLColorDefinition, CLayout, CFunctionParameter, CFunction, CEvaluationTree, CDataVectorN< CType >, CDataVectorN< CEventAssignment >, CDataVectorN< CCopasiTask >, CDataVectorN< CLayout >, CDataVectorN< CUnitDefinition >, CDataVectorN< CPlotSpecification >, CDataVectorN< CModelParameterSet >, CDataVectorN< CEvent >, CDataVectorN< CFunction >, CDataVectorN< CModelValue >, CDataVectorN< CReportDefinition >, CDataVector< CType >, CDataVector< CLGlobalRenderInformation >, CDataVector< CModification >, CDataVector< CLMetabGlyph >, CDataVector< CLCompartmentGlyph >, CDataVector< CSlider >, CDataVector< CLReferenceGlyph >, CDataVector< CBiologicalDescription >, CDataVector< CLGlobalStyle >, CDataVector< CReference >, CDataVector< CLGradientStop >, CDataVector< CMoiety >, CDataVector< CLMetabReferenceGlyph >, CDataVector< CDataModel >, CDataVector< CChemEqElement >, CDataVector< CEvent >, CDataVector< CLReactionGlyph >, CDataVector< CLColorDefinition >, CDataVector< CMetab >, CDataVector< CLLocalRenderInformation >, CDataVector< CLGradientBase >, CDataVector< CPlotItem >, CDataVector< CDataObject >, CDataVector< CLTextGlyph >, CDataVector< CLLineEnding >, CDataVector< CFittingPoint >, CDataVector< CLLocalStyle >, CDataVector< CCreator >, CDataVector< CLGeneralGlyph >, CDataVector< CLGraphicalObject >, and CDataModel.

References CData::addProperty(), C_INVALID_INDEX, getCN(), CDataContainer::getIndex(), CUndoObjectInterface::getUuid(), mObjectFlag, mObjectName, mObjectType, mpObjectParent, mReferences, CData::OBJECT_FLAG, CData::OBJECT_INDEX, CData::OBJECT_NAME, CData::OBJECT_PARENT_CN, CData::OBJECT_REFERENCE_CN, CData::OBJECT_REFERENCE_INDEX, CData::OBJECT_REFERENCES, CData::OBJECT_TYPE, and CData::OBJECT_UUID.

Referenced by CReportDefinition::toData(), CArrayElementReference::toData(), and CDataContainer::toData().

◆ validityChanged()

void CDataObject::validityChanged ( const CValidity changedValidity)
overridevirtual

This method is called whenever the validity of the object or a contained object changes.

Parameters
constCValidity & changedValidity

Implements CObjectInterface.

References CValidity::empty(), mReferencedValidities, and refreshAggregateValidity().

Referenced by CDataContainer::add().

◆ validityRemoved()

void CDataObject::validityRemoved ( const CValidity changedValidity)

This method is called whenever the validity of a contained object is removed.

Parameters
constCValidity & changedValidity

References mReferencedValidities, and refreshAggregateValidity().

Referenced by CDataContainer::remove().

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const CDataObject o 
)
friend

Member Data Documentation

◆ mAggregateValidity

CValidity CDataObject::mAggregateValidity
private

◆ mObjectDisplayName

std::string CDataObject::mObjectDisplayName
mutableprivate

Referenced by getObject().

◆ mObjectFlag

CFlags< Flag > CDataObject::mObjectFlag
private

Referenced by createUndoData(), hasFlag(), and toData().

◆ mObjectName

std::string CDataObject::mObjectName
private

◆ mObjectType

std::string CDataObject::mObjectType
private

◆ mpObjectDisplayName

CDataObjectReference< std::string >* CDataObject::mpObjectDisplayName
mutableprivate

Referenced by getObject(), and ~CDataObject().

◆ mpObjectName

CDataObjectReference< std::string >* CDataObject::mpObjectName
mutableprivate

Referenced by getObject(), and ~CDataObject().

◆ mpObjectParent

◆ mPrerequisits

◆ mReferencedValidities

std::set< const CValidity * > CDataObject::mReferencedValidities
private

◆ mReferences

std::set< CDataContainer * > CDataObject::mReferences
protected

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