16 # define _USE_MATH_DEFINES
26 #include "sbml/math/ASTNode.h"
55 mValue = std::numeric_limits<C_FLOAT64>::infinity();
59 mValue = std::numeric_limits<C_FLOAT64>::quiet_NaN();
63 mValue = std::numeric_limits<C_FLOAT64>::quiet_NaN();
79 std::string data =
"";
90 data =
"EXPONENTIALE";
120 std::ostringstream DisplayString;
121 std::string data =
"";
137 data = DisplayString.str();
151 std::ostringstream DisplayString;
152 std::string data =
"";
168 data = DisplayString.str();
182 assert(pASTNode->getNumChildren() == children.size());
183 assert(children.size() == 0);
186 std::string data =
"";
188 switch (pASTNode->getType())
192 data =
"EXPONENTIALE";
195 case AST_CONSTANT_PI:
200 case AST_CONSTANT_TRUE:
205 case AST_CONSTANT_FALSE:
235 ASTNode* node =
new ASTNode();
240 node->setType(AST_CONSTANT_PI);
244 node->setType(AST_CONSTANT_E);
248 node->setType(AST_CONSTANT_TRUE);
252 node->setType(AST_CONSTANT_FALSE);
256 node->setType(AST_REAL);
257 node->setValue(std::numeric_limits<C_FLOAT64>::infinity());
262 node->setType(AST_REAL);
263 node->setValue(std::numeric_limits<C_FLOAT64>::quiet_NaN());
275 const std::vector< std::vector< std::string > > & )
const
277 std::ostringstream out;
279 std::string data =
"";
312 out <<
"<mi>" << data <<
"</mi>" << std::endl;
CEvaluationNodeConstant()
const Type & getType() const
virtual std::string getCCodeString(const std::vector< std::string > &children) const
virtual ASTNode * toAST(const CCopasiDataModel *pDataModel) const
static CEvaluationNode * fromAST(const ASTNode *pASTNode, const std::vector< CEvaluationNode * > &children)
virtual std::string getXPPString(const std::vector< std::string > &children) const
virtual ~CEvaluationNodeConstant()
virtual bool isBoolean() const
virtual std::string getMMLString(const std::vector< std::string > &children, bool expand, const std::vector< std::vector< std::string > > &variables) const
static Type subType(const Type &type)
class CEvaluationNode::CPrecedence mPrecedence
virtual std::string getBerkeleyMadonnaString(const std::vector< std::string > &children) const
#define PRECEDENCE_NUMBER