37 mObjects(src.mObjects),
38 mLastColumn(src.mLastColumn)
59 std::vector<CCopasiParameter *>::iterator itColumn =
mValue.
pGROUP->begin();
60 std::vector<CCopasiParameter *>::iterator endColumn =
mValue.
pGROUP->end();
62 if (itColumn != endColumn &&
63 dynamic_cast< CCopasiParameterGroup * >(*itColumn) == NULL)
67 for (; itColumn != endColumn; ++itColumn)
77 for (itColumn =
mValue.
pGROUP->begin(); itColumn != endColumn; ++itColumn)
78 if (((*itColumn) = elevate<CDataColumn, CCopasiParameterGroup>(*itColumn)) == NULL)
95 for (
size_t col = 0; col < numCols; col++)
104 success &= (elevate<CDataColumn, CCopasiParameterGroup>(pGrp) != NULL);
112 std::vector<CCopasiParameter *>::iterator itColumn =
mValue.
pGROUP->begin();
113 std::vector<CCopasiParameter *>::iterator endColumn =
mValue.
pGROUP->end();
117 for (; itColumn != endColumn; ++itColumn)
120 C_INT32 index = strtol(static_cast< CDataColumn * >(*itColumn)->getObjectName().c_str(), NULL, 10);
122 if (index > LastNotIgnored) LastNotIgnored = index;
125 return LastNotIgnored;
131 static const std::string NoName(
"");
166 const std::string & CN)
208 return std::numeric_limits<C_FLOAT64>::quiet_NaN();
219 return std::numeric_limits<C_FLOAT64>::quiet_NaN();
224 size_t i, imax =
size();
234 for (i = 1; i < imax; i++)
236 Column = strtoul(
getName(i).c_str(), NULL, 0);
249 for (i = 0; i < imax; i++)
257 Column = strtoul(
getName(i).c_str(), NULL, 0);
278 for (; it != end; ++it)
365 if (mpObjectCN != NULL)
373 if (mpObjectCN != NULL)
374 *mpObjectCN = objectCN;
385 if (mpObjectCN != NULL)
406 if (weight != DefaultWeight || isnan(DefaultWeight))
435 if (mpObjectCN == NULL)
436 return std::numeric_limits<C_FLOAT64>::quiet_NaN();
442 return std::numeric_limits<C_FLOAT64>::quiet_NaN();
447 if (pExperiment == NULL)
448 return std::numeric_limits<C_FLOAT64>::quiet_NaN();
451 assert(pDataModel != NULL);
455 return std::numeric_limits<C_FLOAT64>::quiet_NaN();
464 *mpScale *= *mpScale;
CCopasiDataModel * getObjectDataModel()
CCopasiObject * getDataObject(const CCopasiObjectName &CN) const
C_FLOAT64 getDefaultScale(const CCopasiObject *const &pObject) const
C_FLOAT64 getScale(const size_t &index) const
bool setScale(const size_t &index, const C_FLOAT64 &scale)
const std::string & getObjectName() const
bool compile(const std::vector< CCopasiContainer * > listOfContainer=CCopasiContainer::EmptyList)
CExperiment::Type getRole(const size_t &index) const
C_FLOAT64 getDefaultScale(const size_t &index) const
std::vector< CCopasiParameter * > * pGROUP
const CExperiment::Type & getRole() const
CExperimentObjectMap(const std::string &name="Object Map", const CCopasiContainer *pParent=NULL)
virtual const std::string & getName(const size_t &index) const
index_iterator endIndex() const
void resize(size_t size, const bool ©=false)
CDataColumn(const std::string &name="Object Map", const CCopasiContainer *pParent=NULL)
virtual bool elevateChildren()
CExperiment::Type * mpRole
virtual ~CExperimentObjectMap()
CRegisteredObjectName * pCN
bool removeParameter(const std::string &name)
std::string getObjectCN() const
const CVector< CCopasiObject * > & getMappedObjects() const
bool setRole(const CExperiment::Type &role)
const size_t & getLastColumn() const
C_FLOAT64 getDefaultScale() const
index_iterator beginIndex() const
bool setRole(const size_t &index, const CExperiment::Type &role)
const Value & getValue() const
CCopasiParameterGroup * assertGroup(const std::string &name)
CCopasiParameter * getParameter(const std::string &name)
CDataColumn & operator=(const CDataColumn &rhs)
void initializeParameter()
virtual bool elevateChildren()
void initializeParameter()
CVector< CCopasiObject * > mObjects
std::string StringPrint(const char *format,...)
bool setObjectCN(const std::string &objectCN)
CCopasiParameter * assertParameter(const std::string &name, const CCopasiParameter::Type type, const CType &defaultValue)
bool setScale(const C_FLOAT64 &scale)
std::string getObjectCN(const size_t &index) const
CCopasiParameterGroup * getGroup(const std::string &name)
C_FLOAT64 getScale() const
bool setNumCols(const size_t &numCols)
parameterGroup::iterator index_iterator
bool setObjectCN(const size_t &index, const std::string &objectCN)
CCopasiContainer * getObjectParent() const
size_t getLastNotIgnoredColumn() const