2 #ifndef _LEAF_NODE_CPP_ 3 #define _LEAF_NODE_CPP_ 5 #ifndef _MADARA_NO_KARL_ 87 visitor.
visit (*
this);
90 #endif // _MADARA_NO_KARL_ This class encapsulates an entry in a KnowledgeBase.
Provides knowledge logging services to files and terminals.
madara::knowledge::KnowledgeRecord item_
Integer value associated with the operand.
A multi-threaded logger for logging to one or more destinations.
void set_value(const KnowledgeRecord &new_value)
Sets the value from another KnowledgeRecord, does not copy clock and write_quality.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
virtual ~LeafNode(void)
Destructor.
An abstract base class defines a simple abstract implementation of an expression tree node...
Abstract base class for all visitors to all classes that derive from ComponentNode.
LeafNode(logger::Logger &logger, const knowledge::KnowledgeRecord &item)
Constructor.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the printable value of the node.
Settings for applying knowledge updates.
virtual void visit(const LeafNode &node)=0
Visit a LeafNode.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.