libSBML C++ API  5.18.0
MultiASTPlugin.cpp File Reference

Implementation of MultiASTPlugin, the plugin class of multi package for the AST element. More...

Include dependency graph for MultiASTPlugin.cpp:

Macros

#define GET_NTH_CHILD(result, n, node)
 
#define GET_NUM_CHILDREN(result, node)
 

Detailed Description

Implementation of MultiASTPlugin, the plugin class of multi package for the AST element.

Author
Sarah Keating

Macro Definition Documentation

#define GET_NTH_CHILD (   result,
  n,
  node 
)
Value:
{\
ASTFunction* tmp = dynamic_cast<ASTFunction*>(node); \
if (tmp != NULL) result = tmp->getChild(n); \
else\
{\
ASTNode* tmp2 = dynamic_cast<ASTNode*>(node);\
if (tmp2 != NULL)\
result= tmp2->getChild(n); \
else result = NULL;\
}\
}
Abstract Syntax Tree (AST) representation of a mathematical expression.
Definition: ASTNode.h:204
ASTNode * getChild(unsigned int n) const
Gets a child of this node according to its index number.
Definition: ASTNode.cpp:994
#define GET_NUM_CHILDREN (   result,
  node 
)
Value:
{\
ASTFunction* tmp = dynamic_cast<ASTFunction*>(node);\
if (tmp != NULL) result= tmp->getNumChildren(); \
else\
{\
ASTNode* tmp2 = dynamic_cast<ASTNode*>(node);\
if (tmp2 != NULL)\
result= tmp2->getNumChildren(); \
else result = 0;\
}\
}
Abstract Syntax Tree (AST) representation of a mathematical expression.
Definition: ASTNode.h:204
unsigned int getNumChildren() const
Gets the number of children that this node has.
Definition: ASTNode.cpp:1035