MADARA  3.4.1
madara::knowledge::CompiledExpression Class Reference

Compiled, optimized KaRL logic. More...

#include <CompiledExpression.h>

Public Member Functions

 CompiledExpression ()
 Constructor. More...
 
 CompiledExpression (const CompiledExpression &ce)
 Copy Constructor. More...
 
 ~CompiledExpression ()
 Destructor. More...
 
expression::ComponentNodeget_root (void)
 Gets the root of the compiled expression. More...
 
void operator= (const CompiledExpression &ce)
 Assignment operator. More...
 

Private Attributes

madara::expression::ExpressionTree expression
 the expression tree More...
 
std::string logic
 the logic that was compiled More...
 

Friends

class expression::SystemCallEval
 
class Function
 
class KnowledgeBase
 
class KnowledgeBaseImpl
 
class ThreadSafeContext
 
class Variables
 

Detailed Description

Compiled, optimized KaRL logic.

Definition at line 36 of file CompiledExpression.h.

Constructor & Destructor Documentation

◆ CompiledExpression() [1/2]

madara::knowledge::CompiledExpression::CompiledExpression ( )

Constructor.

Definition at line 7 of file CompiledExpression.cpp.

◆ CompiledExpression() [2/2]

madara::knowledge::CompiledExpression::CompiledExpression ( const CompiledExpression ce)

Copy Constructor.

Parameters
ceCompiled expression to copy from

Definition at line 12 of file CompiledExpression.cpp.

◆ ~CompiledExpression()

madara::knowledge::CompiledExpression::~CompiledExpression ( )

Destructor.

Definition at line 18 of file CompiledExpression.cpp.

Member Function Documentation

◆ get_root()

madara::expression::ComponentNode * madara::knowledge::CompiledExpression::get_root ( void  )

Gets the root of the compiled expression.

Definition at line 24 of file CompiledExpression.cpp.

◆ operator=()

void madara::knowledge::CompiledExpression::operator= ( const CompiledExpression ce)

Assignment operator.

Parameters
ceCompiled expression to copy from

Definition at line 29 of file CompiledExpression.cpp.

Friends And Related Function Documentation

◆ expression::SystemCallEval

friend class expression::SystemCallEval
friend

Definition at line 44 of file CompiledExpression.h.

◆ Function

friend class Function
friend

Definition at line 45 of file CompiledExpression.h.

◆ KnowledgeBase

friend class KnowledgeBase
friend

Definition at line 43 of file CompiledExpression.h.

◆ KnowledgeBaseImpl

friend class KnowledgeBaseImpl
friend

Definition at line 41 of file CompiledExpression.h.

◆ ThreadSafeContext

friend class ThreadSafeContext
friend

Definition at line 40 of file CompiledExpression.h.

◆ Variables

friend class Variables
friend

Definition at line 42 of file CompiledExpression.h.

Member Data Documentation

◆ expression

madara::expression::ExpressionTree madara::knowledge::CompiledExpression::expression
private

the expression tree

Definition at line 79 of file CompiledExpression.h.

◆ logic

std::string madara::knowledge::CompiledExpression::logic
private

the logic that was compiled

Definition at line 76 of file CompiledExpression.h.


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