MADARA  3.2.3
CompiledExpression.cpp
Go to the documentation of this file.
4 
5 #ifndef _MADARA_NO_KARL_
6 
8  : expression (*logger::global_logger.get ())
9 {
10 
11 }
12 
14  const CompiledExpression & ce)
15 : logic (ce.logic), expression (ce.expression)
16 {
17 
18 }
19 
21 {
22 
23 }
24 
25 
31 {
32  return expression.get_root ();
33 }
34 
35 
36 void
38  const CompiledExpression & ce)
39 {
40  if (this != &ce)
41  {
42  logic = ce.logic;
44  }
45 }
46 
47 #endif // _MADARA_NO_KARL_
expression::ComponentNode * get_root(void)
Gets the root of the compiled expression.
MADARA_EXPORT utility::Refcounter< logger::Logger > global_logger
std::string logic
the logic that was compiled
Provides knowledge logging services to files and terminals.
Definition: GlobalLogger.h:11
Compiled, optimized KaRL logic.
madara::expression::ExpressionTree expression
the expression tree
ComponentNode * get_root(void)
Returns the root node of the expression tree.
An abstract base class defines a simple abstract implementation of an expression tree node...
Definition: ComponentNode.h:36
void operator=(const CompiledExpression &ce)
Assignment operator.