MADARA  3.1.8
madara::expression::ForLoop Class Reference

Iterative looping node of the parse tree. More...

Inheritance diagram for madara::expression::ForLoop:
Collaboration diagram for madara::expression::ForLoop:

Public Member Functions

 ForLoop (Symbol *precondition, Symbol *condition, Symbol *postcondition, Symbol *body, madara::knowledge::ThreadSafeContext &context)
 constructor More...
 
virtual ~ForLoop (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

Symbolbody_
 
Symbolcondition_
 
madara::knowledge::ThreadSafeContextcontext_
 
Symbolleft_
 
logger::Loggerlogger_
 left and right pointers More...
 
Symbolpostcondition_
 
int precedence_
 
Symbolprecondition_
 
Symbolright_
 

Detailed Description

Iterative looping node of the parse tree.

Definition at line 1594 of file Interpreter.cpp.

Constructor & Destructor Documentation

madara::expression::ForLoop::ForLoop ( Symbol precondition,
Symbol condition,
Symbol postcondition,
Symbol body,
madara::knowledge::ThreadSafeContext context 
)

constructor

Definition at line 3002 of file Interpreter.cpp.

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

destructor

Definition at line 3013 of file Interpreter.cpp.

Member Function Documentation

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

returns the precedence level

Implements madara::expression::Symbol.

Definition at line 3023 of file Interpreter.cpp.

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

builds an equivalent ExpressionTree node

Implements madara::expression::Symbol.

Definition at line 3030 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

Symbol* madara::expression::ForLoop::body_

Definition at line 1615 of file Interpreter.cpp.

Symbol* madara::expression::ForLoop::condition_

Definition at line 1613 of file Interpreter.cpp.

madara::knowledge::ThreadSafeContext& madara::expression::ForLoop::context_

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

Symbol* madara::expression::ForLoop::postcondition_

Definition at line 1614 of file Interpreter.cpp.

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

Definition at line 141 of file Interpreter.cpp.

Symbol* madara::expression::ForLoop::precondition_

Definition at line 1612 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: