|
amath
1.8.5
Simple command line calculator
|
#include <operators.h>


Public Member Functions | |
| AdditionNode (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 123 of file operators.h.
| AdditionNode::AdditionNode | ( | ExpressionNode * | left, |
| ExpressionNode * | right | ||
| ) |
Definition at line 431 of file operators.cpp.
References NumericOperator::NumericOperator().
Referenced by Parser::ParseAddSubstract().


|
virtual |
Implements ExpressionNode.
Definition at line 446 of file operators.cpp.
References Number::Add(), ExpressionNode::Evaluate(), NumericOperator::left, ExpressionNode::result, and NumericOperator::right.

|
protectedvirtual |
Implements ExpressionNode.
Definition at line 452 of file operators.cpp.
|
virtual |
|
virtual |
Reimplemented from SyntaxNode.
Definition at line 436 of file operators.cpp.
References compladdreduc.