MADARA  3.1.8
madara::expression::Function Class Reference

Function node of the parse tree. More...

Inheritance diagram for madara::expression::Function:
Collaboration diagram for madara::expression::Function:

Public Member Functions

 Function (const std::string &name, madara::knowledge::ThreadSafeContext &context)
 constructor More...
 
virtual ~Function (void)
 destructor More...
 
virtual int add_precedence (int accumulated_precedence)
 returns the precedence level More...
 
virtual ComponentNodebuild (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::ThreadSafeContextcontext_
 
Symbolleft_
 
logger::Loggerlogger_
 left and right pointers More...
 
std::string name_
 
ComponentNodes nodes_
 
int precedence_
 
Symbolright_
 

Detailed Description

Function node of the parse tree.

Definition at line 1543 of file Interpreter.cpp.

Constructor & Destructor Documentation

madara::expression::Function::Function ( const std::string &  name,
madara::knowledge::ThreadSafeContext context 
)

constructor

Definition at line 1976 of file Interpreter.cpp.

madara::expression::Function::~Function ( void  )
virtual

destructor

Definition at line 1984 of file Interpreter.cpp.

Member Function Documentation

int madara::expression::Function::add_precedence ( int  accumulated_precedence)
virtual

returns the precedence level

Implements madara::expression::Symbol.

Definition at line 1990 of file Interpreter.cpp.

madara::expression::ComponentNode * madara::expression::Function::build ( void  )
virtual

builds an equivalent ExpressionTree node

Implements madara::expression::Symbol.

Definition at line 1997 of file Interpreter.cpp.

virtual int madara::expression::Symbol::precedence ( void  )
inlinevirtualinherited

abstract method for returning precedence level (higher value means higher precedence

Definition at line 125 of file Interpreter.cpp.

Member Data Documentation

madara::knowledge::ThreadSafeContext& madara::expression::Function::context_

Definition at line 1561 of file Interpreter.cpp.

Symbol* madara::expression::Symbol::left_
inherited

Definition at line 139 of file Interpreter.cpp.

logger::Logger* madara::expression::Symbol::logger_
inherited

left and right pointers

Definition at line 138 of file Interpreter.cpp.

std::string madara::expression::Function::name_

Definition at line 1560 of file Interpreter.cpp.

ComponentNodes madara::expression::TernaryOperator::nodes_
inherited

Definition at line 177 of file Interpreter.cpp.

int madara::expression::Symbol::precedence_
inherited

Definition at line 141 of file Interpreter.cpp.

Symbol* madara::expression::Symbol::right_
inherited

Definition at line 140 of file Interpreter.cpp.


The documentation for this class was generated from the following file: