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


Public Member Functions | |
| AssignmentNode (VariableNode *variable, ExpressionNode *expression) | |
| int | GetPrecedence () |
| bool | IsSilent () |
| 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 () |
| 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 ReductionType | GetReductionType () |
| virtual void | ResetIterator () |
Protected Member Functions | |
| char * | GetNodeText () |
Private Attributes | |
| VariableNode * | variable |
| ExpressionNode * | expression |
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 180 of file operators.h.
| AssignmentNode::AssignmentNode | ( | VariableNode * | variable, |
| ExpressionNode * | expression | ||
| ) |
Definition at line 572 of file operators.cpp.
References expression, NumericOperator::NumericOperator(), and variable.
Referenced by Parser::ParseIdent().


|
virtual |
Implements ExpressionNode.
Definition at line 583 of file operators.cpp.
References VariableNode::AssignValue(), ExpressionNode::Evaluate(), VariableNode::Evaluate(), expression, and variable.

|
protectedvirtual |
Implements ExpressionNode.
Definition at line 595 of file operators.cpp.
|
virtual |
|
virtual |
Reimplemented from ExpressionNode.
Definition at line 590 of file operators.cpp.
|
private |
Definition at line 193 of file operators.h.
Referenced by AssignmentNode(), and Evaluate().
|
private |
Definition at line 192 of file operators.h.
Referenced by AssignmentNode(), and Evaluate().