29 mpListOfContainer(NULL),
39 mpListOfContainer(NULL),
40 mDisplayString(src.mDisplayString),
41 mIsBoolean(src.mIsBoolean)
53 assert(pObject != NULL);
81 std::string Infix =
"if(" + infix +
", 1, 0)";
87 std::vector< CEvaluationNode * >::const_iterator it =
mpNodeList->begin();
88 std::vector< CEvaluationNode * >::const_iterator end =
mpNodeList->end();
90 for (; it != end; ++it)
136 if (pDataModel == NULL)
return NULL;
206 std::vector<std::vector<std::string> > env;
210 if (flag) out <<
SPC(l) <<
"<mfenced>" << std::endl;
214 if (flag) out <<
SPC(l) <<
"</mfenced>" << std::endl;
224 std::vector< CEvaluationNode * > * pNodeList =
225 const_cast< std::vector< CEvaluationNode * > *
>(&pInitialExpression->
getNodeList());
226 std::vector< CEvaluationNode * >::iterator it = pNodeList->begin();
227 std::vector< CEvaluationNode * >::iterator end = pNodeList->end();
235 for (; it != end; ++it)
237 if ((pNode = dynamic_cast< CEvaluationNodeObject * >(*it)) != NULL)
239 assert(pDataModel != NULL);
241 if ((pObject = static_cast< const CCopasiObject * >(pDataModel->
getObject(pNode->
getObjectCN()))) != NULL &&
243 (pEntity = dynamic_cast<const CModelEntity * >(pObjectParent)) != NULL)
247 else if ((pMetab = dynamic_cast<const CMetab * >(pEntity)) != NULL &&
259 return pInitialExpression;
Header file of class CExpression.
CCopasiDataModel * getObjectDataModel()
CCopasiObject * getDataObject(const CCopasiObjectName &CN) const
virtual bool setInfix(const std::string &infix)
void setRefresh(CType *pType, void(CType::*method)(void))
std::vector< CEvaluationNode * > * mpNodeList
virtual CCopasiObjectName getCN() const
const CObjectInterface * getNodeObject(const CCopasiObjectName &CN) const
const CRegisteredObjectName & getObjectCN() const
CCopasiObject * getInitialValueReference() const
CObjectInterface * ObjectFromCN(const std::vector< CCopasiContainer * > &listOfContainer, const CCopasiObjectName &objName) const
std::string buildInfix() const
const std::string & getDisplayString() const
std::string buildCCodeString() const
void setIsBoolean(const bool &booleanRequired)
std::string mDisplayString
static CExpression * createInitialExpression(const CExpression &expression, const CCopasiDataModel *pDataModel)
std::string getBerkeleyMadonnaString() const
const std::vector< CCopasiContainer * > & getListOfContainer() const
std::string buildXPPString() const
std::string buildDisplayString() const
virtual const C_FLOAT64 & calcValue()
CExpression(const std::string &name="Expression", const CCopasiContainer *pParent=NULL)
std::string getCCodeString() const
std::string buildMMLString(bool expand, const std::vector< std::vector< std::string > > &variables) const
std::string getXPPString() const
virtual bool isBoolean() const
static CCopasiMessage getLastMessage()
const std::vector< CCopasiContainer * > * mpListOfContainer
std::string buildBerkeleyMadonnaString() const
virtual bool setData(const Data &data)
void writeMathML(std::ostream &out, bool fullExpand, size_t l) const
virtual const CObjectInterface * getObject(const CCopasiObjectName &cn) const
const std::vector< CEvaluationNode * > & getNodeList() const
CCopasiContainer * getObjectParent() const
virtual bool setInfix(const std::string &infix)
CCopasiObject * getValueReference() const