| amath
    1.8.5
    Simple command line calculator | 
A truncation function in a syntax tree. More...
#include <trunc.h>


| Public Member Functions | |
| TruncNode (ExpressionNode *expression, char *text, char *sys) | |
| Number * | Evaluate () | 
|  Public Member Functions inherited from FunctionNode | |
| FunctionNode (ExpressionNode *expression, char *text, char *sys) | |
| ~FunctionNode () | |
| int | GetPrecedence () | 
| char * | GetText () | 
| virtual SyntaxNode * | GetNext () | 
| virtual void | Attach (SyntaxNode *node) | 
| virtual void | Detach (SyntaxNode *node) | 
| virtual 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 ReductionType | GetReductionType () | 
| virtual void | ResetIterator () | 
| Static Public Member Functions | |
| static FunctionNode * | Create (ExpressionNode *expression, char *text, char *sys) | 
| Additional Inherited Members | |
|  Protected Member Functions inherited from FunctionNode | |
| virtual char * | GetNodeText () | 
|  Protected Attributes inherited from FunctionNode | |
| ExpressionNode * | expression | 
| char * | name | 
| char * | sysname | 
|  Protected Attributes inherited from ExpressionNode | |
| Number * | result | 
|  Protected Attributes inherited from SyntaxNode | |
| CharBuffer * | output | 
| SyntaxNode * | parent | 
| SyntaxNode * | iterator | 
| bool | leftBottom | 
A truncation function in a syntax tree.
Discard the number of digits right of the decimal point. See Number for implementation.
More info on the truncation function is available at Wikipedia: https://wikipedia.org/wiki/Truncation
| 
 | explicit | 
Definition at line 32 of file trunc.cpp.
References FunctionNode::FunctionNode().
Referenced by Create().


| 
 | static | 
Definition at line 37 of file trunc.cpp.
References TruncNode().

| 
 | virtual | 
Implements ExpressionNode.
Definition at line 42 of file trunc.cpp.
References ExpressionNode::Evaluate(), FunctionNode::expression, ExpressionNode::result, and Number::Trunc().
