2 #ifndef _MADARA_NO_KARL_ 44 bool arg_can_change =
false;
45 result =
nodes_[0]->prune (arg_can_change);
47 if (!arg_can_change && dynamic_cast <LeafNode *> (
nodes_[0]) == 0)
56 "madara::expression::SystemCallSize: " 58 "System call size requires an argument\n");
61 "KARL COMPILE ERROR: " 62 "System call size requires an argument\n");
79 "madara::expression::SystemCallSize: " 80 "System call size is returning the size of its first argument\n");
88 "madara::expression::SystemCallSize: " 90 "System call size requires an argument\n");
93 "KARL RUNTIME ERROR: " 94 "System call size requires an argument\n");
105 visitor.
visit (*
this);
108 #endif // _MADARA_NO_KARL_ This class encapsulates an entry in a KnowledgeBase.
madara::knowledge::KnowledgeRecord KnowledgeRecord
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
logger::Logger * logger_
handle the context
This class stores variables and their values for use by any entity needing state information in a thr...
Defines a node that contains a madara::knowledge::KnowledgeRecord::Integer value. ...
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
#define madara_logger_ptr_log(logger, level,...)
Fast version of the madara::logger::log method for Logger pointers.
Abstract base class for all visitors to all classes that derive from ComponentNode.
SystemCallSize(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
An exception for unrecoverable KaRL compilation issues.
Interface for a MADARA system call.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
Settings for applying knowledge updates.
virtual void visit(const LeafNode &node)=0
Visit a LeafNode.
virtual ~SystemCallSize(void)
Destructor.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.