copasi API
0.1
|
#include <CCopasiParameterGroup.h>
Public Types | |
typedef std::vector < CCopasiParameter * > | parameterGroup |
typedef parameterGroup::iterator | index_iterator |
typedef CCopasiContainer::objectMap::iterator | name_iterator |
Public Member Functions | |
CCopasiParameterGroup (const CCopasiParameterGroup &src, const CCopasiContainer *pParent=NULL) | |
CCopasiParameterGroup (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &objectType="ParameterGroup") | |
virtual | ~CCopasiParameterGroup () |
virtual bool | elevateChildren () |
CCopasiParameterGroup & | operator= (const CCopasiParameterGroup &rhs) |
name_iterator | beginName () const |
name_iterator | endName () const |
index_iterator | beginIndex () const |
index_iterator | endIndex () const |
bool | addParameter (const CCopasiParameter ¶meter) |
bool | addParameter (const std::string &name, const CCopasiParameter::Type type) |
template<class CType > | |
bool | addParameter (const std::string &name, const CCopasiParameter::Type type, const CType &value) |
template<class CType > | |
CCopasiParameter * | assertParameter (const std::string &name, const CCopasiParameter::Type type, const CType &defaultValue) |
bool | addGroup (const std::string &name) |
CCopasiParameterGroup * | assertGroup (const std::string &name) |
bool | removeParameter (const std::string &name) |
bool | removeParameter (const unsigned C_INT32 &index) |
CCopasiParameter * | getParameter (const std::string &name) |
const CCopasiParameter * | getParameter (const std::string &name) const |
CCopasiParameter * | getParameter (const unsigned C_INT32 &index) |
const CCopasiParameter * | getParameter (const unsigned C_INT32 &index) const |
CCopasiParameterGroup * | getGroup (const std::string &name) |
const CCopasiParameterGroup * | getGroup (const std::string &name) const |
CCopasiParameterGroup * | getGroup (const unsigned C_INT32 &index) |
const CCopasiParameterGroup * | getGroup (const unsigned C_INT32 &index) const |
const CCopasiParameter::Value & | getValue (const std::string &name) const |
const CCopasiParameter::Value & | getValue (const unsigned C_INT32 &index) const |
CCopasiParameter::Value & | getValue (const std::string &name) |
CCopasiParameter::Value & | getValue (const unsigned C_INT32 &index) |
CCopasiParameter::Type | getType (const std::string &name) const |
CCopasiParameter::Type | getType (const unsigned C_INT32 &index) const |
std::string | getKey (const std::string &name) const |
std::string | getKey (const unsigned C_INT32 &index) const |
virtual const std::string & | getName (const unsigned C_INT32 &index) const |
template<class CType > | |
bool | setValue (const std::string &name, const CType &value) |
template<class CType > | |
bool | setValue (const unsigned C_INT32 &index, const CType &value) |
bool | swap (const unsigned C_INT32 &iFrom, const unsigned C_INT32 &iTo) |
bool | swap (index_iterator &from, index_iterator &to) |
unsigned C_INT32 | size () const |
void | clear () |
unsigned C_INT32 | getIndex (const std::string &name) const |
virtual void | print (std::ostream *ostream) const |
void | addParameter (CCopasiParameter *pParameter) |
Protected Member Functions | |
CCopasiParameterGroup () | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CCopasiParameterGroup &o) |
bool | operator== (const CCopasiParameterGroup &lhs, const CCopasiParameterGroup &rhs) |
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
typedef parameterGroup::iterator CCopasiParameterGroup::index_iterator |
typedef CCopasiContainer::objectMap::iterator CCopasiParameterGroup::name_iterator |
typedef std::vector< CCopasiParameter * > CCopasiParameterGroup::parameterGroup |
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
CCopasiParameterGroup::CCopasiParameterGroup | ( | const CCopasiParameterGroup & | src, |
const CCopasiContainer * | pParent = NULL |
||
) |
Copy constructor
const CCopasiParameterGroup & | src |
const | CCopasiContainer * pParent (default: NULL) |
CCopasiParameterGroup::CCopasiParameterGroup | ( | const std::string & | name, |
const CCopasiContainer * | pParent = NULL , |
||
const std::string & | objectType = "ParameterGroup" |
||
) |
Specific constructor
const | string & name |
const | CCopasiContainer * pParent (default: NULL) |
const | std::string & objectType (default: "ParameterGroup") |
CCopasiParameterGroup::~CCopasiParameterGroup | ( | ) | [virtual] |
Destructor
bool CCopasiParameterGroup::addGroup | ( | const std::string & | name | ) |
Add a subgroup to the group
const | std::string & name |
bool CCopasiParameterGroup::addParameter | ( | const CCopasiParameter & | parameter | ) |
bool CCopasiParameterGroup::addParameter | ( | const std::string & | name, |
const CCopasiParameter::Type | type | ||
) |
Add a parameter to the group
const | std::string & name |
const | CCopasiParameter::Type type |
bool CCopasiParameterGroup::addParameter | ( | const std::string & | name, |
const CCopasiParameter::Type | type, | ||
const CType & | value | ||
) | [inline] |
Add a parameter to the group
const | std::string & name |
const | CCopasiParameter::Type type |
const | CType & value |
void CCopasiParameterGroup::addParameter | ( | CCopasiParameter * | pParameter | ) |
Add a parameter
CCopasiParameter | * pParameter |
CCopasiParameterGroup * CCopasiParameterGroup::assertGroup | ( | const std::string & | name | ) |
Assert that a group with the given name is present. If not the group is created as empty group.
const | std::string & name |
CCopasiParameter* CCopasiParameterGroup::assertParameter | ( | const std::string & | name, |
const CCopasiParameter::Type | type, | ||
const CType & | defaultValue | ||
) | [inline] |
Assert that a parameter with the given name and type is present. If not the parameter is created with the default value.
const | std::string & name |
const | CCopasiParameter::Type type |
const | CType & Value |
CCopasiParameterGroup::index_iterator CCopasiParameterGroup::beginIndex | ( | ) | const |
Retrieve the begin of unsorted iterator Note: the swap function may be used to change the order
CCopasiParameterGroup::name_iterator CCopasiParameterGroup::beginName | ( | ) | const |
Retrieve the begin of an alphabetically sorted iterator
void CCopasiParameterGroup::clear | ( | ) |
Clear all parameters and subgroups
bool CCopasiParameterGroup::elevateChildren | ( | ) | [virtual] |
This methods must be called to elevate subgroups to derived objects. The default implementation does nothing.
Reimplemented in CTSSAMethod, CTrajectoryMethodDsaLsodar, CLsodaMethod, CMIRIAMResources, CStochMethod, CExperimentObjectMap, CTrajAdaptiveSA, CLyapWolfMethod, CStochDirectMethod, CHybridMethodLSODA, CExperiment, CTauLeapMethod, CHybridMethod, CSteadyStateMethod, CConfigurationFile, CMCAMethod, CNewtonMethod, CTrajectoryProblem, CTSSAProblem, COptProblem, CExperimentObjectMap::CDataColumn, CLyapProblem, CExperimentSet, CFitItem, CEFMProblem, and CFitProblem.
CCopasiParameterGroup::index_iterator CCopasiParameterGroup::endIndex | ( | ) | const |
Retrieve the end of unsorted iterator Note: the swap function may be used to change the order
CCopasiParameterGroup::name_iterator CCopasiParameterGroup::endName | ( | ) | const |
Retrieve the end of an alphabetically sorted iterator
CCopasiParameterGroup * CCopasiParameterGroup::getGroup | ( | const std::string & | name | ) |
Retrieve a subgroup from the group
const | std::string & name |
const CCopasiParameterGroup * CCopasiParameterGroup::getGroup | ( | const std::string & | name | ) | const |
Retrieve a subgroup from the group
const | std::string & name |
CCopasiParameterGroup * CCopasiParameterGroup::getGroup | ( | const unsigned C_INT32 & | index | ) |
Retrieve a subgroup from the group
const | unsigned C_INT32 & index |
const CCopasiParameterGroup * CCopasiParameterGroup::getGroup | ( | const unsigned C_INT32 & | index | ) | const |
Retrieve a subgroup from the group
const | unsigned C_INT32 & index |
unsigned C_INT32 CCopasiParameterGroup::getIndex | ( | const std::string & | name | ) | const |
Retrieve the index of a parameter or subgroup with a given name
const | std::string & name |
std::string CCopasiParameterGroup::getKey | ( | const std::string & | name | ) | const |
Retrieve the key of a parameter or subgroup
const | std::string & name |
std::string CCopasiParameterGroup::getKey | ( | const unsigned C_INT32 & | index | ) | const |
Retrieve the key of a parameter or subgroup
const | unsigned C_INT32 & index |
const std::string & CCopasiParameterGroup::getName | ( | const unsigned C_INT32 & | index | ) | const [virtual] |
Retrieve the name of a parameter or subgroup
const | unsigned C_INT32 & index |
Reimplemented in CExperimentObjectMap.
CCopasiParameter * CCopasiParameterGroup::getParameter | ( | const std::string & | name | ) |
Retrieve a parameter or subgroup from the group
const | std::string & name |
const CCopasiParameter * CCopasiParameterGroup::getParameter | ( | const std::string & | name | ) | const |
Retrieve a parameter or subgroup from the group
const | std::string & name |
CCopasiParameter * CCopasiParameterGroup::getParameter | ( | const unsigned C_INT32 & | index | ) |
Retrieve a parameter or subgroup from the group
const | unsigned C_INT32 & index |
const CCopasiParameter * CCopasiParameterGroup::getParameter | ( | const unsigned C_INT32 & | index | ) | const |
Retrieve a parameter or subgroup from the group
const | unsigned C_INT32 & index |
CCopasiParameter::Type CCopasiParameterGroup::getType | ( | const std::string & | name | ) | const |
Retrieve the type of a parameter or subgroup
const | std::string & name |
CCopasiParameter::Type CCopasiParameterGroup::getType | ( | const unsigned C_INT32 & | index | ) | const |
Retrieve the type of a parameter or subgroup
const | unsigned C_INT32 & index |
const CCopasiParameter::Value & CCopasiParameterGroup::getValue | ( | const std::string & | name | ) | const |
Retrieve a pointer to the value of a parameter or subgroup
const | std::string & name |
const CCopasiParameter::Value & CCopasiParameterGroup::getValue | ( | const unsigned C_INT32 & | index | ) | const |
Retrieve a pointer to the value of a parameter or subgroup
const | unsigned C_INT32 & index |
CCopasiParameter::Value & CCopasiParameterGroup::getValue | ( | const std::string & | name | ) |
Retrieve a pointer to the value of a parameter or subgroup
const | std::string & name |
CCopasiParameter::Value & CCopasiParameterGroup::getValue | ( | const unsigned C_INT32 & | index | ) |
Retrieve a pointer to the value of a parameter or subgroup
const | unsigned C_INT32 & index |
CCopasiParameterGroup & CCopasiParameterGroup::operator= | ( | const CCopasiParameterGroup & | rhs | ) |
Assignment operator
const | CCopasiParameterGroup & rhs |
void CCopasiParameterGroup::print | ( | std::ostream * | ostream | ) | const [virtual] |
This is the output method for any object. The default implementation provided with CCopasiObject uses the ostream operator<< of the object to print the object.To override this default behavior one needs to reimplement the virtual print function.
std::ostream | * ostream |
Reimplemented from CCopasiParameter.
Reimplemented in COptProblem, CCopasiMethod, CCopasiProblem, CSensProblem, CMCAProblem, CFitProblem, and CCrossSectionProblem.
bool CCopasiParameterGroup::removeParameter | ( | const std::string & | name | ) |
Remove a parameter or subgroup from the group
const | std::string & name |
bool CCopasiParameterGroup::removeParameter | ( | const unsigned C_INT32 & | index | ) |
Remove a parameter or subgroup from the group
const | unsigned C_INT32 & index |
bool CCopasiParameterGroup::setValue | ( | const std::string & | name, |
const CType & | value | ||
) | [inline] |
Set the value of a parameter or subgroup.
const | std::string & name |
const | CType & value |
bool CCopasiParameterGroup::setValue | ( | const unsigned C_INT32 & | index, |
const CType & | value | ||
) | [inline] |
Set the value of a parameter or subgroup.
const | unsigned C_INT32 & index |
const | CType & value |
unsigned C_INT32 CCopasiParameterGroup::size | ( | ) | const |
The size of the parameter group @ return unsigned C_INT32 size
bool CCopasiParameterGroup::swap | ( | const unsigned C_INT32 & | iFrom, |
const unsigned C_INT32 & | iTo | ||
) |
Swap two parameters Note: This has effect on the index_iterator and index access methods.
const | unsigned C_INT32 & iFrom |
const | unsigned C_INT32 & iTo |
bool CCopasiParameterGroup::swap | ( | index_iterator & | from, |
index_iterator & | to | ||
) |
Swap two parameters Note: This has effect on the iterator and index access methods.
index_iterator | & from |
index_iterator | & to |
std::ostream& operator<< | ( | std::ostream & | os, |
const CCopasiParameterGroup & | o | ||
) | [friend] |
bool operator== | ( | const CCopasiParameterGroup & | lhs, |
const CCopasiParameterGroup & | rhs | ||
) | [friend] |
Comparison operator
const | CCopasiParameterGroup & lhs |
const | CCopasiParameterGroup & rhs |