|
amath
1.8.5
Simple command line calculator
|
Use of a numeric value in a syntax tree. More...
#include <values.h>


Public Member Functions | |
| NumericValueNode () | |
| NumericValueNode (Number *value) | |
| virtual ReductionType | GetReductionType () |
| int | GetPrecedence () |
| char * | GetText () |
| SyntaxNode * | GetNext () |
| Number * | Evaluate () |
| void | Attach (SyntaxNode *node) |
| void | Detach (SyntaxNode *node) |
| void | Replace (SyntaxNode *n, SyntaxNode *x) |
| void | ReplaceWith (Number *value) |
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 ExpressionNode | |
| Number * | result |
Protected Attributes inherited from SyntaxNode | |
| CharBuffer * | output |
| SyntaxNode * | parent |
| SyntaxNode * | iterator |
| bool | leftBottom |
| NumericValueNode::NumericValueNode | ( | ) |
Definition at line 371 of file values.cpp.
References ExpressionNode::ExpressionNode(), and RealNumber::RealNumber().
Referenced by Parser::ParseAtomic(), and Parser::ParseIdent().


|
explicit |
Definition at line 376 of file values.cpp.
References ExpressionNode::ExpressionNode().
Referenced by ComplexiNode::ComplexiNode(), EulersNumberNode::EulersNumberNode(), Parser::ParseNumber(), PiNode::PiNode(), and Optimizer::ReduceValueNodes().


|
virtual |
|
virtual |
|
virtual |
Implements ExpressionNode.
Definition at line 393 of file values.cpp.
References ExpressionNode::result.
Referenced by Optimizer::ReduceUnaryNodes(), and Optimizer::ReduceValueNodes().

|
virtual |
|
protectedvirtual |
Implements ExpressionNode.
Reimplemented in ComplexiNode, PiNode, and EulersNumberNode.
Definition at line 403 of file values.cpp.
References CharBuffer::ClearAndCopy(), CharBuffer::GetString(), NumeralSystem::GetText(), Program::Input, SyntaxNode::output, and ExpressionNode::result.
Referenced by GetText().


|
virtual |
Implements ExpressionNode.
Definition at line 386 of file values.cpp.
References Number::GetDefaultPrecedence(), Number::GetPrecedence(), SyntaxNode::leftBottom, and ExpressionNode::result.

|
virtual |
Reimplemented from SyntaxNode.
Reimplemented in ComplexiNode, PiNode, and EulersNumberNode.
Definition at line 381 of file values.cpp.
References valuereduc.
Referenced by Optimizer::ReduceValueNodes().

|
virtual |
Implements ExpressionNode.
Definition at line 398 of file values.cpp.
References GetNodeText().

|
virtual |
| void NumericValueNode::ReplaceWith | ( | Number * | value | ) |
Definition at line 427 of file values.cpp.
References ExpressionNode::result.
Referenced by Optimizer::ReduceUnaryNodes().
