amath
1.8.5
Simple command line calculator
|
#include <operators.h>
Public Member Functions | |
SubtractionNode (ExpressionNode *left, ExpressionNode *right) | |
ReductionType | GetReductionType () |
int | GetPrecedence () |
Number * | Evaluate () |
Public Member Functions inherited from NumericOperator | |
NumericOperator (ExpressionNode *left, ExpressionNode *right) | |
~NumericOperator () | |
SyntaxNode * | GetNext () |
char * | GetText () |
void | Attach (SyntaxNode *node) |
void | Detach (SyntaxNode *node) |
void | Replace (SyntaxNode *n, SyntaxNode *x) |
Public Member Functions inherited from ExpressionNode | |
ExpressionNode () | |
ExpressionNode (Number *value) | |
virtual | ~ExpressionNode () |
NodeType | GetNodeType () |
virtual bool | IsSilent () |
char * | GetTextCode () |
char * | Execute () |
Public Member Functions inherited from SyntaxNode | |
SyntaxNode () | |
virtual | ~SyntaxNode () |
void | SetFirstNode () |
bool | GetFirstNode () const |
SyntaxNode * | GetParent () const |
void | SetParent (SyntaxNode *node) |
virtual void | ResetIterator () |
Protected Member Functions | |
char * | GetNodeText () |
Additional Inherited Members | |
Protected Attributes inherited from NumericOperator | |
ExpressionNode * | left |
ExpressionNode * | right |
Protected Attributes inherited from ExpressionNode | |
Number * | result |
Protected Attributes inherited from SyntaxNode | |
CharBuffer * | output |
SyntaxNode * | parent |
SyntaxNode * | iterator |
bool | leftBottom |
Definition at line 135 of file operators.h.
SubtractionNode::SubtractionNode | ( | ExpressionNode * | left, |
ExpressionNode * | right | ||
) |
Definition at line 462 of file operators.cpp.
References NumericOperator::NumericOperator().
Referenced by Parser::ParseAddSubstract().
|
virtual |
Implements ExpressionNode.
Definition at line 477 of file operators.cpp.
References ExpressionNode::Evaluate(), NumericOperator::left, ExpressionNode::result, NumericOperator::right, and Number::Sub().
|
protectedvirtual |
Implements ExpressionNode.
Definition at line 483 of file operators.cpp.
|
virtual |
|
virtual |
Reimplemented from SyntaxNode.
Definition at line 467 of file operators.cpp.
References complsubreduc.