MADARA
3.1.8
|
Leaf node of parse tree. More...
Public Member Functions | |
Number (logger::Logger &logger, std::string input) | |
constructors More... | |
Number (logger::Logger &logger, madara::knowledge::KnowledgeRecord::Integer input) | |
Number (logger::Logger &logger, double input) | |
virtual | ~Number (void) |
destructor More... | |
virtual int | add_precedence (int accumulated_precedence) |
returns the precedence level More... | |
virtual ComponentNode * | build (void) |
builds an equivalent ExpressionTree node More... | |
virtual int | precedence (void) |
abstract method for returning precedence level (higher value means higher precedence More... | |
Public Attributes | |
madara::knowledge::KnowledgeRecord | item_ |
contains the value of the leaf node More... | |
Symbol * | left_ |
logger::Logger * | logger_ |
left and right pointers More... | |
int | precedence_ |
Symbol * | right_ |
Leaf node of parse tree.
Definition at line 932 of file Interpreter.cpp.
madara::expression::Number::Number | ( | logger::Logger & | logger, |
std::string | input | ||
) |
constructors
Definition at line 1912 of file Interpreter.cpp.
madara::expression::Number::Number | ( | logger::Logger & | logger, |
madara::knowledge::KnowledgeRecord::Integer | input | ||
) |
Definition at line 1896 of file Interpreter.cpp.
madara::expression::Number::Number | ( | logger::Logger & | logger, |
double | input | ||
) |
Definition at line 1904 of file Interpreter.cpp.
|
virtual |
destructor
Definition at line 1920 of file Interpreter.cpp.
|
virtual |
returns the precedence level
Implements madara::expression::Symbol.
Definition at line 1926 of file Interpreter.cpp.
|
virtual |
builds an equivalent ExpressionTree node
Implements madara::expression::Symbol.
Definition at line 1933 of file Interpreter.cpp.
|
inlinevirtualinherited |
abstract method for returning precedence level (higher value means higher precedence
Definition at line 125 of file Interpreter.cpp.
madara::knowledge::KnowledgeRecord madara::expression::Number::item_ |
contains the value of the leaf node
Definition at line 951 of file Interpreter.cpp.
|
inherited |
Definition at line 139 of file Interpreter.cpp.
|
inherited |
left and right pointers
Definition at line 138 of file Interpreter.cpp.
|
inherited |
Definition at line 141 of file Interpreter.cpp.
|
inherited |
Definition at line 140 of file Interpreter.cpp.