|
amath
1.8.5
Simple command line calculator
|
An expression node able to compute a function value. More...
#include <user.h>


Public Member Functions | |
| UserFunctionNode (UserFunction *function, ExpressionNode *parameter) | |
| Number * | Evaluate () |
| SyntaxNode * | GetNext () |
| void | Attach (SyntaxNode *node) |
| void | Detach (SyntaxNode *node) |
| void | Replace (SyntaxNode *n, SyntaxNode *x) |
Public Member Functions inherited from FunctionNode | |
| FunctionNode (ExpressionNode *expression, char *text, char *sys) | |
| ~FunctionNode () | |
| int | GetPrecedence () |
| char * | GetText () |
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 () |
Protected Member Functions | |
| char * | GetNodeText () |
Private Attributes | |
| UserFunction * | function |
Additional Inherited Members | |
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 |
| UserFunctionNode::UserFunctionNode | ( | UserFunction * | function, |
| ExpressionNode * | parameter | ||
| ) |
Definition at line 33 of file user.cpp.
References function, and FunctionNode::FunctionNode().
Referenced by FunctionList::GetFunctionCall().


|
virtual |
Reimplemented from FunctionNode.
|
virtual |
Reimplemented from FunctionNode.
|
virtual |
Implements ExpressionNode.
Definition at line 43 of file user.cpp.
References Variable::AssignValue(), ExpressionNode::Evaluate(), FunctionNode::expression, function, UserFunction::GetExpression(), and UserFunction::GetVariable().

|
virtual |
Reimplemented from FunctionNode.
Definition at line 50 of file user.cpp.
References function, UserFunction::GetExpression(), and SyntaxNode::iterator.

|
protectedvirtual |
Reimplemented from FunctionNode.
Definition at line 38 of file user.cpp.
References function, and UserFunction::GetName().

|
virtual |
Reimplemented from FunctionNode.
|
private |
Definition at line 54 of file user.h.
Referenced by Evaluate(), GetNext(), GetNodeText(), and UserFunctionNode().