MADARA  3.1.8
madara::expression::VariableMultiply Class Reference

Multiply a variable by a certain amount. More...

Inheritance diagram for madara::expression::VariableMultiply:
Collaboration diagram for madara::expression::VariableMultiply:

Public Member Functions

 VariableMultiply (Symbol *lhs, madara::knowledge::KnowledgeRecord value, Symbol *rhs, madara::knowledge::ThreadSafeContext &context)
 constructors More...
 
virtual ~VariableMultiply (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::ThreadSafeContext & context_
 Context for variables. More...
 
Symbol * left_
 
logger::Logger * logger_
 left and right pointers More...
 
int precedence_
 
Symbol * right_
 
madara::knowledge::KnowledgeRecord value_
 value can be faster than rhs_, so use it if possible More...
 

Detailed Description

Multiply a variable by a certain amount.

Definition at line 1115 of file Interpreter.cpp.

Constructor & Destructor Documentation

madara::expression::VariableMultiply::VariableMultiply ( Symbol *  lhs,
madara::knowledge::KnowledgeRecord  value,
Symbol *  rhs,
madara::knowledge::ThreadSafeContext &  context 
)

constructors

Definition at line 3362 of file Interpreter.cpp.

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

destructor

Definition at line 3372 of file Interpreter.cpp.

Member Function Documentation

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

returns the precedence level

Implements madara::expression::Symbol.

Definition at line 3378 of file Interpreter.cpp.

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

builds an equivalent ExpressionTree node

Implements madara::expression::Symbol.

Definition at line 3385 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::VariableMultiply::context_

Context for variables.

Definition at line 1140 of file Interpreter.cpp.

Symbol* madara::expression::VariableMultiply::left_

Definition at line 1134 of file Interpreter.cpp.

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

left and right pointers

Definition at line 138 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.

madara::knowledge::KnowledgeRecord madara::expression::VariableMultiply::value_

value can be faster than rhs_, so use it if possible

Definition at line 1137 of file Interpreter.cpp.


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