Node representing a binary operator.
More...
#include <ExpressionBuilder.h>
|
enum | NodeType {
ADD,
SUB,
MUL,
DIV,
MOD,
POW,
LESS,
GREATER,
LESSEQ,
GREATEREQ,
EQ,
NOTEQ
} |
|
Node representing a binary operator.
Definition at line 203 of file ExpressionBuilder.h.
◆ NodeType
Enumerator |
---|
ADD | |
SUB | |
MUL | |
DIV | |
MOD | |
POW | |
LESS | |
GREATER | |
LESSEQ | |
GREATEREQ | |
EQ | |
NOTEQ | |
Definition at line 206 of file ExpressionBuilder.h.
◆ EBBinaryOpTermNode()
◆ clone()
◆ precedence()
int ExpressionBuilder::EBBinaryOpTermNode::precedence |
( |
| ) |
const |
|
virtual |
◆ stringify()
std::string ExpressionBuilder::EBBinaryOpTermNode::stringify |
( |
| ) |
const |
|
virtual |
Implements ExpressionBuilder::EBTermNode.
Definition at line 92 of file ExpressionBuilder.C.
94 const char *
name[] = {
"+",
"-",
"*",
"/",
"%",
"^",
"<",
">",
"<=",
">=",
"=",
"!="};
98 s <<
'(' << *
_left <<
')';
109 s <<
'(' << *
_right <<
')';
◆ substitute()
◆ _left
EBTermNode* ExpressionBuilder::EBBinaryTermNode::_left |
|
protectedinherited |
◆ _right
EBTermNode* ExpressionBuilder::EBBinaryTermNode::_right |
|
protectedinherited |
◆ _type
NodeType ExpressionBuilder::EBBinaryOpTermNode::_type |
|
protected |
The documentation for this class was generated from the following files: