COPASI API  4.40.278
CCopasiParameterGroup Class Reference

#include <CCopasiParameterGroup.h>

Inheritance diagram for CCopasiParameterGroup:
[legend]

Public Types

typedef CDataObjectMap::const_type_iterator< CCopasiParameterconst_name_iterator
 
typedef std::vector< CCopasiParameter * > elements
 
typedef elements::iterator index_iterator
 
typedef CDataObjectMap::type_iterator< CCopasiParametername_iterator
 
- Public Types inherited from CCopasiParameter
enum class  eUserInterfaceFlag { editable , basic , unsupported , __SIZE }
 
enum class  Type {
  DOUBLE = 0 , UDOUBLE , INT , UINT ,
  BOOL , GROUP , STRING , CN ,
  KEY , FILE , EXPRESSION , INVALID ,
  __SIZE
}
 
typedef CFlags< eUserInterfaceFlagUserInterfaceFlag
 
- Public Types inherited from CDataContainer
typedef CDataObjectMap objectMap
 
- 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
 

Public Member Functions

bool addGroup (const std::string &name)
 
void addParameter (CCopasiParameter *pParameter)
 
bool addParameter (const CCopasiParameter &parameter)
 
bool addParameter (const std::string &name, const CCopasiParameter::Type type, const CCopasiParameter::UserInterfaceFlag &flag=CCopasiParameter::UserInterfaceFlag::All)
 
template<class CType >
bool addParameter (const std::string &name, const CCopasiParameter::Type type, const CType &value, const CCopasiParameter::UserInterfaceFlag &flag=CCopasiParameter::UserInterfaceFlag::All)
 
virtual bool applyData (const CData &data, CUndoData::CChangeSet &changes)
 
CCopasiParameterGroupassertGroup (const std::string &name, const CCopasiParameter::UserInterfaceFlag &flag=CCopasiParameter::UserInterfaceFlag::All)
 
template<class CType >
CType * assertParameter (const std::string &name, const CCopasiParameter::Type type, const CType &defaultValue, const CCopasiParameter::UserInterfaceFlag &flag=CCopasiParameter::UserInterfaceFlag::All)
 
index_iterator beginIndex () const
 
const_name_iterator beginName () const
 
 CCopasiParameterGroup (const CCopasiParameterGroup &src, const CDataContainer *pParent=NULL)
 
 CCopasiParameterGroup (const std::string &name, const CDataContainer *pParent=NO_PARENT, const std::string &objectType="ParameterGroup")
 
void clear ()
 
virtual void createUndoData (CUndoData &undoData, const CUndoData::Type &type, const CData &oldData=CData(), const CCore::Framework &framework=CCore::Framework::ParticleNumbers) const
 
virtual bool elevateChildren ()
 
index_iterator endIndex () const
 
const_name_iterator endName () const
 
CCopasiParameterGroupgetElementTemplates ()
 
const CCopasiParameterGroupgetElementTemplates () const
 
CCopasiParameterGroupgetGroup (const size_t &index)
 
const CCopasiParameterGroupgetGroup (const size_t &index) const
 
CCopasiParameterGroupgetGroup (const std::string &name)
 
const CCopasiParameterGroupgetGroup (const std::string &name) const
 
virtual size_t getIndex (const CDataObject *pObject) const
 
size_t getIndex (const std::string &name) const
 
std::string getKey (const size_t &index) const
 
std::string getKey (const std::string &name) const
 
virtual const std::string & getName (const size_t &index) const
 
virtual const CObjectInterfacegetObject (const CCommonName &cn) const
 
CCopasiParametergetParameter (const size_t &index)
 
const CCopasiParametergetParameter (const size_t &index) const
 
CCopasiParametergetParameter (std::string name)
 
const CCopasiParametergetParameter (std::string name) const
 
CCopasiParameter::Type getType (const size_t &index) const
 
CCopasiParameter::Type getType (const std::string &name) const
 
std::string getUniqueParameterName (const CCopasiParameter *pParameter) const
 
template<class CType >
CType & getValue (const size_t &index)
 
template<class CType >
const CType & getValue (const size_t &index) const
 
template<class CType >
CType & getValue (const std::string &name)
 
template<class CType >
const CType & getValue (const std::string &name) const
 
bool haveTemplate () const
 
virtual CUndoObjectInterfaceinsert (const CData &data)
 
CCopasiParameterGroupoperator= (const CCopasiParameterGroup &rhs)
 
virtual void print (std::ostream *ostream) const
 
virtual bool remove (CDataObject *pObject)
 
bool removeParameter (CCopasiParameter *pParameter)
 
bool removeParameter (const size_t &index)
 
bool removeParameter (const std::string &name)
 
virtual void setUserInterfaceFlag (const UserInterfaceFlag &flag)
 
template<class CType >
bool setValue (const size_t &index, const CType &value)
 
template<class CType >
bool setValue (const std::string &name, const CType &value)
 
size_t size (const UserInterfaceFlag &require=UserInterfaceFlag::None, const UserInterfaceFlag &exclude=UserInterfaceFlag::None) const
 
bool swap (const size_t &iFrom, const size_t &iTo)
 
bool swap (index_iterator &from, index_iterator &to)
 
virtual CData toData () const
 
virtual void updateIndex (const size_t &index, const CUndoObjectInterface *pUndoObject)
 
virtual ~CCopasiParameterGroup ()
 
- Public Member Functions inherited from CCopasiParameter
 CCopasiParameter (const CCopasiParameter &src, const CDataContainer *pParent)
 
 CCopasiParameter (const std::string &name, const Type &type, const void *pValue=NULL, const CDataContainer *pParent=NO_PARENT, const std::string &objectType="Parameter")
 
virtual CCommonName getCN () const override
 
template<class CType >
const CType & getDefault () const
 
virtual const std::string & getKey () const override
 
virtual std::string getObjectDisplayName () const override
 
const CCopasiParameter::TypegetType () const
 
const UserInterfaceFlaggetUserInterfaceFlag () const
 
template<class CType >
std::vector< std::pair< CType, CType > > & getValidValues ()
 
template<class CType >
const std::vector< std::pair< CType, CType > > & getValidValues () const
 
void * getValidValuesPointer () const
 
template<class CType >
CType & getValue ()
 
template<class CType >
const CType & getValue () const
 
virtual void * getValuePointer () const override
 
CDataObjectgetValueReference () const
 
bool hasValidValues () const
 
bool isBasic () const
 
bool isDefault () const
 
bool isEditable () const
 
bool isUnsupported () const
 
bool isValidValue (const bool &value) const
 
bool isValidValue (const C_FLOAT64 &value) const
 
bool isValidValue (const C_INT32 &value) const
 
bool isValidValue (const CCommonName &value) const
 
template<class CType >
bool isValidValue (const CType &) const
 
bool isValidValue (const std::string &value) const
 
bool isValidValue (const std::vector< CCopasiParameter * > &value) const
 
bool isValidValue (const unsigned C_INT32 &value) const
 
CCopasiParameteroperator= (const CCopasiParameter &rhs)
 
template<class CType >
bool setDefault (const CType &defaultValue)
 
bool setDefault (const std::vector< CCopasiParameter * > &defaultValue)
 
virtual bool setObjectParent (const CDataContainer *pParent) override
 
template<class CType , class Enum >
bool setValidValues (const CEnumAnnotation< CType, Enum > &validValues)
 
template<class CType >
bool setValidValues (const std::vector< std::pair< CType, CType > > &validValues)
 
template<class CType >
bool setValue (const CType &value)
 
bool setValue (const std::vector< CCopasiParameter * > &value)
 
virtual ~CCopasiParameter ()
 
- Public Member Functions inherited from CDataContainer
virtual bool add (CDataObject *pObject, const bool &adopt=true)
 
virtual bool appendDeletedDependentData (CUndoData &undoData) const
 
 CDataContainer (const CDataContainer &src, const CDataContainer *pParent)
 
 CDataContainer (const std::string &name, const CDataContainer *pParent=NO_PARENT, const std::string &type="CN", const CFlags< Flag > &flag=CFlags< Flag >::None)
 
virtual std::string getChildObjectUnits (const CDataObject *pObject) const
 
void getDescendants (CDataObject::DataObjectSet &descendants, const bool &recursive=false) const
 
virtual objectMapgetObjects ()
 
virtual const objectMapgetObjects () const
 
virtual const std::string getUnits () const override
 
virtual const CDataObjectgetValueObject () const override
 
void objectRenamed (CDataObject *pObject, const std::string &oldName)
 
virtual ~CDataContainer ()
 
- Public Member Functions inherited from CDataObject
void addIssue (const CIssue &issue)
 
void addReference (const CDataContainer *pReference)
 
virtual void calculateValue () override
 
 CDataObject (const CDataObject &src, const CDataContainer *pParent=NULL)
 
virtual void destruct () override
 
virtual const CDataObjectgetDataObject () 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 CValiditygetValidity () 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
 
void removeIssue (const CIssue &issue)
 
void removeReference (const CDataContainer *pReference)
 
bool setObjectName (const std::string &name)
 
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
 
bool setUuid (const std::string &uuid)
 
bool setUuid (const xg::Guid &uuid)
 
virtual ~CUndoObjectInterface ()
 

Protected Member Functions

 CCopasiParameterGroup ()
 
- Protected Member Functions inherited from CCopasiParameter
 CCopasiParameter (const CCopasiParameter &src)
 
- Protected Member Functions inherited from CDataContainer
template<class CType >
CDataMatrixReference< CType > * addMatrixReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None)
 
template<class CType >
CDataObjectReference< CType > * addObjectReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None)
 
template<class CType >
CDataVectorReference< CType > * addVectorReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None)
 
 CDataContainer (const CDataContainer &src)
 
void initObjects ()
 
- 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)
 

Private Attributes

CCopasiParameterGroupmpElementTemplates {NULL }
 

Friends

std::ostream & operator<< (std::ostream &os, const CCopasiParameterGroup &o)
 
bool operator== (const CCopasiParameterGroup &lhs, const CCopasiParameterGroup &rhs)
 

Additional Inherited Members

- Static Public Member Functions inherited from CCopasiParameter
static void allocateValidValues (const Type &type, void *&pValidValues)
 
static void allocateValue (const Type &type, void *&pValue)
 
static void assignValue (const Type &type, void *&pValue, const void *pNewValue)
 
static void deleteValidValues (const Type &type, void *&pValidValues)
 
static void deleteValue (const Type &type, void *&pValue)
 
static CCopasiParameterfromData (const CData &data, CUndoObjectInterface *pParent)
 
- Static Public Member Functions inherited from CDataContainer
static CDataContainerfromData (const CData &data, CUndoObjectInterface *pParent)
 
- 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 *)
 
- Static Public Attributes inherited from CCopasiParameter
static const CEnumAnnotation< std::string, TypeTypeName
 
static const CEnumAnnotation< std::string, TypeXMLType
 
- Static Public Attributes inherited from CDataContainer
static const CObjectInterface::ContainerList EmptyList
 
- Protected Attributes inherited from CCopasiParameter
std::string mKey
 
void * mpDefault
 
void * mpValidValues
 
void * mpValue
 
CDataObjectmpValueReference
 
UserInterfaceFlag mUserInterfaceFlag
 
- Protected Attributes inherited from CDataContainer
objectMap mObjects
 
- Protected Attributes inherited from CDataObject
ObjectSet mPrerequisits
 
std::set< CDataContainer * > mReferences
 
- Protected Attributes inherited from CObjectInterface
CValidity mValidity
 

Detailed Description

CCopasiParameterGroup class. This class is used to describe parameters. This class is intended to be used with integration or optimization methods or reactions.

Created for COPASI by Stefan Hoops 2002

Member Typedef Documentation

◆ const_name_iterator

◆ elements

◆ index_iterator

typedef elements::iterator CCopasiParameterGroup::index_iterator

◆ name_iterator

Constructor & Destructor Documentation

◆ CCopasiParameterGroup() [1/3]

CCopasiParameterGroup::CCopasiParameterGroup ( )
protected

Default constructor

CCopasiParameterGroup class. This class is used to describe parameters. This class is intended to be used with integration or optimization methods or reactions.

Created for COPASI by Stefan Hoops 2002

Referenced by addGroup(), addParameter(), CScanProblem::createScanItem(), getElementTemplates(), operator=(), and CMIRIAMResources::updateMIRIAMResourcesFromFile().

◆ CCopasiParameterGroup() [2/3]

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

Copy constructor

Parameters
const CCopasiParameterGroup &src
constCDataContainer * pParent (default: NULL)

References operator=().

◆ CCopasiParameterGroup() [3/3]

CCopasiParameterGroup::CCopasiParameterGroup ( const std::string &  name,
const CDataContainer pParent = NO_PARENT,
const std::string &  objectType = "ParameterGroup" 
)

Specific constructor

Parameters
conststring & name
constCDataContainer * pParent (default: NULL)
conststd::string & objectType (default: "ParameterGroup")

◆ ~CCopasiParameterGroup()

CCopasiParameterGroup::~CCopasiParameterGroup ( )
virtual

Destructor

References mpElementTemplates, and pdelete.

Member Function Documentation

◆ addGroup()

bool CCopasiParameterGroup::addGroup ( const std::string &  name)

Add a subgroup to the group

Parameters
conststd::string & name
Returns
bool success

References addParameter(), and CCopasiParameterGroup().

Referenced by CSensProblem::addVariables(), assertGroup(), and CScanProblem::initializeParameter().

◆ addParameter() [1/4]

◆ addParameter() [2/4]

◆ addParameter() [3/4]

bool CCopasiParameterGroup::addParameter ( const std::string &  name,
const CCopasiParameter::Type  type,
const CCopasiParameter::UserInterfaceFlag flag = CCopasiParameter::UserInterfaceFlag::All 
)

◆ addParameter() [4/4]

template<class CType >
bool CCopasiParameterGroup::addParameter ( const std::string &  name,
const CCopasiParameter::Type  type,
const CType &  value,
const CCopasiParameter::UserInterfaceFlag flag = CCopasiParameter::UserInterfaceFlag::All 
)
inline

◆ applyData()

bool CCopasiParameterGroup::applyData ( const CData data,
CUndoData::CChangeSet changes 
)
virtual

◆ assertGroup()

◆ assertParameter()

template<class CType >
CType* CCopasiParameterGroup::assertParameter ( const std::string &  name,
const CCopasiParameter::Type  type,
const CType &  defaultValue,
const CCopasiParameter::UserInterfaceFlag flag = CCopasiParameter::UserInterfaceFlag::All 
)
inline

Assert that a parameter with the given name and type is present. If not the parameter is created with the default value.

Parameters
conststd::string & name
constCCopasiParameter::Type type
constCType & Value
constCCopasiParameter::UserInterfaceFlag & flag (default: CCopasiParameter::UserInterfaceFlag::All)
Returns
CCopasiParameter * pParameter

References addParameter(), getParameter(), CCopasiParameter::getType(), CCopasiParameter::getUserInterfaceFlag(), CCopasiParameter::getValue(), removeParameter(), CCopasiParameter::setUserInterfaceFlag(), and CCopasiParameter::unsupported.

Referenced by SEDMLImporter::applyStyleToCopasiItem(), CLNAProblem::CLNAProblem(), CMCAProblem::CMCAProblem(), COptMethod::COptMethod(), COptMethodCoranaWalk::COptMethodCoranaWalk(), COptMethodDE::COptMethodDE(), COptMethodEP::COptMethodEP(), COptMethodGA::COptMethodGA(), COptMethodGASR::COptMethodGASR(), COptMethodHookeJeeves::COptMethodHookeJeeves(), COptMethodLevenbergMarquardt::COptMethodLevenbergMarquardt(), COptMethodNelderMead::COptMethodNelderMead(), COptMethodNL2SOL::COptMethodNL2SOL(), COptMethodPraxis::COptMethodPraxis(), COptMethodPS::COptMethodPS(), COptMethodSA::COptMethodSA(), COptMethodSRES::COptMethodSRES(), COptMethodSS::COptMethodSS(), COptMethodSteepestDescent::COptMethodSteepestDescent(), CRandomSearch::CRandomSearch(), COutputAssistant::createDefaultOutput(), CSensProblem::createParametersInGroup(), COutputAssistant::createPlot(), CSensMethod::CSensMethod(), CSteadyStateProblem::CSteadyStateProblem(), CExperimentObjectMap::elevateChildren(), CFitProblem::elevateChildren(), CScanItem::ensureParameterGroupHasAllElements(), CScanItemLinear::ensureParameterGroupHasAllElements(), CScanItemRandom::ensureParameterGroupHasAllElements(), CAnalyticsProblem::initializeParameter(), CCheckForUpdates::initializeParameter(), CRecentFiles::initializeParameter(), CConfigurationFile::initializeParameter(), CCrossSectionProblem::initializeParameter(), CLyapProblem::initializeParameter(), CLyapWolfMethod::initializeParameter(), CMIRIAMResource::initializeParameter(), CMIRIAMResources::initializeParameter(), COptItem::initializeParameter(), COptProblem::initializeParameter(), CExperiment::initializeParameter(), CExperimentObjectMap::CDataColumn::initializeParameter(), CCrossValidationSet::initializeParameter(), CFitProblem::initializeParameter(), CScanProblem::initializeParameter(), CSensProblem::initializeParameter(), CMCAMethod::initializeParameter(), CNewtonMethod::initializeParameter(), CSteadyStateMethod::initializeParameter(), CTimeSensLsodaMethod::initializeParameter(), CHybridMethod::initializeParameter(), CHybridMethodODE45::initializeParameter(), CHybridNextReactionRKMethod::initializeParameter(), CLsodaMethod::initializeParameter(), CLsodaMethod2::initializeParameter(), CRadau5Method::initializeParameter(), CStochasticRungeKuttaRI5::initializeParameter(), CStochDirectMethod::initializeParameter(), CStochMethod::initializeParameter(), CTauLeapMethod::initializeParameter(), CTrajAdaptiveSA::initializeParameter(), CTrajectoryMethodDsaLsodar::initializeParameter(), CTrajectoryProblem::initializeParameter(), CCSPMethod::initializeParameter(), CILDMMethod::initializeParameter(), CILDMModifiedMethod::initializeParameter(), CTSSAProblem::initializeParameter(), CExperimentObjectMap::CDataColumn::setObjectCN(), CExperimentObjectMap::CDataColumn::setScale(), and CPlotItem::setType().

◆ beginIndex()

◆ beginName()

CCopasiParameterGroup::const_name_iterator CCopasiParameterGroup::beginName ( ) const

Retrieve the start iterator going through the parameters sorted by name

Returns
const_name_iterator begin

References CDataObjectMap::begin(), and CDataContainer::mObjects.

Referenced by CReaction::createUndoData(), and CReaction::toData().

◆ clear()

◆ createUndoData()

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

◆ elevateChildren()

◆ endIndex()

◆ endName()

CCopasiParameterGroup::const_name_iterator CCopasiParameterGroup::endName ( ) const

Retrieve the end iterator going through the parameters sorted by name

Returns
const_name_iterator end

References CDataObjectMap::end(), and CDataContainer::mObjects.

Referenced by CReaction::createUndoData(), and CReaction::toData().

◆ getElementTemplates() [1/2]

CCopasiParameterGroup & CCopasiParameterGroup::getElementTemplates ( )

◆ getElementTemplates() [2/2]

const CCopasiParameterGroup & CCopasiParameterGroup::getElementTemplates ( ) const

References mpElementTemplates.

◆ getGroup() [1/4]

CCopasiParameterGroup * CCopasiParameterGroup::getGroup ( const size_t &  index)

Retrieve a subgroup from the group

Parameters
constsize_t & index
Returns
CCopasiParameterGroup * parameter

References getParameter().

◆ getGroup() [2/4]

const CCopasiParameterGroup * CCopasiParameterGroup::getGroup ( const size_t &  index) const

Retrieve a subgroup from the group

Parameters
constsize_t & index
Returns
const CCopasiParameterGroup * parameter

References getParameter().

◆ getGroup() [3/4]

◆ getGroup() [4/4]

const CCopasiParameterGroup * CCopasiParameterGroup::getGroup ( const std::string &  name) const

Retrieve a subgroup from the group

Parameters
conststd::string & name
Returns
const CCopasiParameterGroup * group

References getParameter().

◆ getIndex() [1/2]

size_t CCopasiParameterGroup::getIndex ( const CDataObject pObject) const
virtual

◆ getIndex() [2/2]

size_t CCopasiParameterGroup::getIndex ( const std::string &  name) const

Retrieve the index of a parameter or subgroup with a given name

Parameters
conststd::string & name
Returns
size_t index

References C_INVALID_INDEX, and CCopasiParameter::mpValue.

◆ getKey() [1/2]

std::string CCopasiParameterGroup::getKey ( const size_t &  index) const

Retrieve the key of a parameter or subgroup

Parameters
constsize_t & index
Returns
std::string key

References CCopasiParameter::getKey(), and getParameter().

◆ getKey() [2/2]

std::string CCopasiParameterGroup::getKey ( const std::string &  name) const

Retrieve the key of a parameter or subgroup

Parameters
conststd::string & name
Returns
std::string key

References CCopasiParameter::getKey(), and getParameter().

Referenced by CCopasiXML::saveModel().

◆ getName()

const std::string & CCopasiParameterGroup::getName ( const size_t &  index) const
virtual

Retrieve the name of a parameter or subgroup

Parameters
constsize_t & index
Returns
std::string name

Reimplemented in CExperimentObjectMap.

References CDataObject::getObjectName(), and getParameter().

Referenced by CExperiment::readColumnNames(), and CCopasiXML::saveModel().

◆ getObject()

const CObjectInterface * CCopasiParameterGroup::getObject ( const CCommonName cn) const
virtual

Retrieve a descendant object by its CN.

Parameters
constCCommonName & cn
Returns
const CObjectInterface * pObject

Reimplemented from CDataContainer.

References beginIndex(), C_INVALID_INDEX, endIndex(), CDataContainer::getObject(), CCommonName::getObjectName(), CCommonName::getRemainder(), and strToUnsignedInt().

Referenced by applyData(), and COutputAssistant::createDefaultOutput().

◆ getParameter() [1/4]

CCopasiParameter * CCopasiParameterGroup::getParameter ( const size_t &  index)

Retrieve a parameter or subgroup from the group

Parameters
constsize_t & index
Returns
CCopasiParameter * parameter

References CCopasiParameter::mpValue, and size().

◆ getParameter() [2/4]

const CCopasiParameter * CCopasiParameterGroup::getParameter ( const size_t &  index) const

Retrieve a parameter or subgroup from the group

Parameters
constsize_t & index
Returns
const CCopasiParameter * parameter

References CCopasiParameter::mpValue, and size().

◆ getParameter() [3/4]

CCopasiParameter * CCopasiParameterGroup::getParameter ( std::string  name)

Retrieve a parameter or subgroup from the group

Parameters
conststd::string & name
Returns
CCopasiParameter * parameter

References CDataObjectMap::equal_range(), CDataContainer::getObjects(), and CDataObject::sanitizeObjectName().

Referenced by CExperimentSet::addExperiment(), CSensProblem::addVariables(), SEDMLImporter::applyAlgorithm(), CReaction::applyData(), applyData(), assertParameter(), CSensProblem::changeVariables(), CModelAnalyzer::checkReaction(), CModel::convert2NonReversible(), CReactionInterface::createUndoData(), CScanItemLinear::CScanItemLinear(), CTSSATask::CTSSATask(), CModelExpansion::duplicateReaction(), COptProblem::elevateChildren(), CFitItem::elevateChildren(), CFitProblem::elevateChildren(), CSEDMLExporter::exportAlgorithm(), CSEDMLExporter::exportNthScanItem(), CODEExporter::exportReacParamsAndFuncs(), CScanProblem::fixBuild81(), CPlotItem::getActivity(), CReactionInterface::getDeletedParameters(), getGroup(), getKey(), getName(), CUndoData::getObject(), CTimeSensProblem::getParameterCN(), CReaction::getParameterValue(), CScanProblem::getScanItem(), CTimeSensProblem::getTargetCN(), getType(), getValue(), CSensProblem::getVariables(), COptMethodDE::initialize(), COptMethodEP::initialize(), COptMethodGA::initialize(), COptMethodGASR::initialize(), COptMethodLevenbergMarquardt::initialize(), COptMethodPS::initialize(), COptMethodSA::initialize(), COptMethodSRES::initialize(), COptMethodSS::initialize(), COptPopulationMethod::initialize(), CRandomSearch::initialize(), CTSSATask::initialize(), CCheckForUpdates::initializeParameter(), CConfigurationFile::initializeParameter(), CLyapWolfMethod::initializeParameter(), CExperiment::initializeParameter(), CExperimentObjectMap::CDataColumn::initializeParameter(), CScanProblem::initializeParameter(), CMCAMethod::initializeParameter(), CNewtonMethod::initializeParameter(), CSteadyStateMethod::initializeParameter(), CHybridMethod::initializeParameter(), CHybridMethodODE45::initializeParameter(), CHybridNextReactionLSODAMethod::initializeParameter(), CHybridNextReactionRKMethod::initializeParameter(), CLsodaMethod::initializeParameter(), CStochMethod::initializeParameter(), CTauLeapMethod::initializeParameter(), CReaction::initializeParameters(), CReactionInterface::loadMappingAndValues(), PlotItemHandler::processEnd(), PlotSpecificationHandler::processEnd(), TaskHandler::processEnd(), ConstantHandler::processStart(), PlotItemHandler::processStart(), PlotSpecificationHandler::processStart(), removeParameter(), CTimeSensProblem::removeParameterCN(), CTimeSensProblem::removeTargetCN(), SBMLImporter::sbmlId2CopasiCN(), CReaction::setParameterValue(), setValue(), CConfigurationFile::showItemIssues(), CHybridNextReactionLSODAMethod::start(), CProvenanceXMLWriter::updateCurrentSessionProvenance(), CProvenanceXMLWriter::updateOrigionOfProvenance(), and CReactionInterface::writeBackToReaction().

◆ getParameter() [4/4]

const CCopasiParameter * CCopasiParameterGroup::getParameter ( std::string  name) const

Retrieve a parameter or subgroup from the group

Parameters
conststd::string & name
Returns
const CCopasiParameter * parameter

References CDataObjectMap::equal_range(), CDataContainer::getObjects(), and CDataObject::sanitizeObjectName().

◆ getType() [1/2]

CCopasiParameter::Type CCopasiParameterGroup::getType ( const size_t &  index) const

Retrieve the type of a parameter or subgroup

Parameters
constsize_t & index
Returns
CCopasiParameter::Type

References getParameter(), CCopasiParameter::getType(), and CCopasiParameter::INVALID.

◆ getType() [2/2]

CCopasiParameter::Type CCopasiParameterGroup::getType ( const std::string &  name) const

Retrieve the type of a parameter or subgroup

Parameters
conststd::string & name
Returns
CCopasiParameter::Type

References getParameter(), CCopasiParameter::getType(), and CCopasiParameter::INVALID.

◆ getUniqueParameterName()

std::string CCopasiParameterGroup::getUniqueParameterName ( const CCopasiParameter pParameter) const

Retrieve a unique name for the given parameter

Parameters
constCCopasiParameter * pParameter
Returns
std::string uniqueParameterName

References C_INVALID_INDEX, CDataObject::getObjectName(), and CCopasiParameter::mpValue.

Referenced by CCopasiParameter::getCN(), and CCopasiParameter::getObjectDisplayName().

◆ getValue() [1/4]

template<class CType >
CType& CCopasiParameterGroup::getValue ( const size_t &  index)
inline

Retrieve a pointer to the value of a parameter or subgroup

Parameters
constsize_t & index
Returns
CType & Value

References __FatalError, getParameter(), and CCopasiParameter::getValue().

◆ getValue() [2/4]

template<class CType >
const CType& CCopasiParameterGroup::getValue ( const size_t &  index) const
inline

Retrieve a pointer to the value of a parameter or subgroup

Parameters
constsize_t & index
Returns
const CType & Value

References __FatalError, getParameter(), and CCopasiParameter::getValue().

◆ getValue() [3/4]

template<class CType >
CType& CCopasiParameterGroup::getValue ( const std::string &  name)
inline

Retrieve a pointer to the value of a parameter or subgroup

Parameters
conststd::string & name
Returns
CType & Value

References __FatalError, getParameter(), and CCopasiParameter::getValue().

◆ getValue() [4/4]

◆ haveTemplate()

bool CCopasiParameterGroup::haveTemplate ( ) const

References mpElementTemplates, and size().

◆ insert()

CUndoObjectInterface * CCopasiParameterGroup::insert ( const CData data)
virtual

Create and insert an undo object based on the given data. This method needs to be re-implemented in container which support INSERT and REMOVE

Parameters
constCData & data
Returns
CUndoObjectInterface * pUndoObject

Reimplemented from CDataContainer.

References CDataContainer::add(), CCopasiParameter::fromData(), CData::getProperty(), min, CCopasiParameter::mpValue, CData::OBJECT_INDEX, size(), and CDataValue::toSizeT().

Referenced by applyData(), and CFitProblem::initialize().

◆ operator=()

◆ print()

void CCopasiParameterGroup::print ( std::ostream *  ostream) const
virtual

This is the output method for any object. The default implementation provided with CDataObject uses the ostream operator<< of the object to print the object.To override this default behavior one needs to reimplement the virtual print function.

Parameters
std::ostream* ostream

Reimplemented from CCopasiParameter.

Reimplemented in CMCAProblem, CSensProblem, CFitProblem, COptProblem, CLNAProblem, CCopasiProblem, CCopasiMethod, COscillationProblem, COptPopulationMethod, CCrossSectionProblem, and CAnalyticsProblem.

◆ remove()

bool CCopasiParameterGroup::remove ( CDataObject pObject)
virtual

Removes the pointer to the object, from the vector

Parameters
CDataObject* pObject
Returns
bool success

Reimplemented from CDataContainer.

References CCopasiParameter::mpValue, and CDataContainer::remove().

◆ removeParameter() [1/3]

bool CCopasiParameterGroup::removeParameter ( CCopasiParameter pParameter)

Remove a parameter or subgroup from the group

Parameters
constsize_t & index
Returns
bool success

References CDataObject::getObjectParent().

◆ removeParameter() [2/3]

bool CCopasiParameterGroup::removeParameter ( const size_t &  index)

Remove a parameter or subgroup from the group

Parameters
constsize_t & index
Returns
bool success

References CCopasiParameter::mpValue, removeParameter(), and size().

◆ removeParameter() [3/3]

◆ setUserInterfaceFlag()

void CCopasiParameterGroup::setUserInterfaceFlag ( const UserInterfaceFlag flag)
virtual

◆ setValue() [1/2]

template<class CType >
bool CCopasiParameterGroup::setValue ( const size_t &  index,
const CType &  value 
)
inline

Set the value of a parameter or subgroup.

Parameters
constsize_t & index
constCType & value
Returns
bool success

References getParameter(), and CCopasiParameter::setValue().

◆ setValue() [2/2]

template<class CType >
bool CCopasiParameterGroup::setValue ( const std::string &  name,
const CType &  value 
)
inline

Set the value of a parameter or subgroup.

Parameters
conststd::string & name
constCType & value
Returns
bool success

References getParameter(), and CCopasiParameter::setValue().

Referenced by SEDMLImporter::addCurveToCopasiPlot(), SEDMLImporter::addSurfaceToCopasiPlot(), SEDMLImporter::applyStyleToCopasiItem(), CSensProblem::copySensItemToParameterGroup(), COutputAssistant::createDefaultOutput(), COutputAssistant::createPlot(), CFitProblem::elevateChildren(), SEDMLImporter::importTask(), COptMethodDE::initialize(), COptMethodGA::initialize(), COptMethodGASR::initialize(), COptMethodPS::initialize(), COptMethodSRES::initialize(), COptMethodSS::initialize(), CLyapWolfMethod::initializeParameter(), CMCAMethod::initializeParameter(), CNewtonMethod::initializeParameter(), CSteadyStateMethod::initializeParameter(), CHybridMethod::initializeParameter(), CHybridNextReactionLSODAMethod::initializeParameter(), CHybridNextReactionRKMethod::initializeParameter(), CStochMethod::initializeParameter(), CTauLeapMethod::initializeParameter(), CTSSAMethod::initializeParameter(), CSteadyStateProblem::load(), CNewtonMethod::load(), CExperiment::operator=(), COptMethodSS::optimise(), TaskHandler::processEnd(), CScanProblem::setContinueFromCurrentState(), CScanProblem::setContinueOnError(), CSteadyStateProblem::setJacobianRequested(), CPlotSpecification::setLogX(), CPlotSpecification::setLogY(), CScanProblem::setOutputInSubtask(), CSteadyStateProblem::setStabilityAnalysisRequested(), CLNAProblem::setSteadyStateRequested(), CMCAProblem::setSteadyStateRequested(), CScanProblem::setSubtask(), CCSPMethod::start(), and TestOptimization().

◆ size()

◆ swap() [1/2]

bool CCopasiParameterGroup::swap ( const size_t &  iFrom,
const size_t &  iTo 
)

Swap two parameters Note: This has effect on the index_iterator and index access methods.

Parameters
constsize_t & iFrom
constsize_t & iTo
Returns
bool success

References beginIndex().

Referenced by CExperimentSet::sort(), and COptProblem::swapOptItem().

◆ swap() [2/2]

bool CCopasiParameterGroup::swap ( index_iterator from,
index_iterator to 
)

Swap two parameters Note: This has effect on the iterator and index access methods.

Parameters
index_iterator& from
index_iterator& to
Returns
bool success

References beginIndex(), and endIndex().

◆ toData()

CData CCopasiParameterGroup::toData ( ) const
virtual

Retrieve the data describing the object

Returns
CData data

Reimplemented from CCopasiParameter.

Reimplemented in CPlotSpecification, and CPlotItem.

References CData::addProperty(), CCopasiParameter::mpValue, CData::PARAMETER_VALUE, and CCopasiParameter::toData().

Referenced by CCopasiTask::createUndoData(), and CCopasiTask::toData().

◆ updateIndex()

void CCopasiParameterGroup::updateIndex ( const size_t &  index,
const CUndoObjectInterface pUndoObject 
)
virtual

Update the index of a contained object This method needs to be re-implemented in container which care about the order of contained objects

Parameters
constsize_t & index
constCUndoObjectInterface * pUndoObject

Reimplemented from CUndoObjectInterface.

References C_INVALID_INDEX, getIndex(), min, and CCopasiParameter::mpValue.

Friends And Related Function Documentation

◆ operator<<

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

Output stream operator

Parameters
ostream& os
constCCopasiParameterGroup & o
Returns
ostream & os

◆ operator==

bool operator== ( const CCopasiParameterGroup lhs,
const CCopasiParameterGroup rhs 
)
friend

Comparison operator

Parameters
constCCopasiParameterGroup & lhs
constCCopasiParameterGroup & rhs
Returns
bool equal

Member Data Documentation

◆ mpElementTemplates

CCopasiParameterGroup* CCopasiParameterGroup::mpElementTemplates {NULL }
private

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