2 #ifndef _MADARA_LEAF_NODE_H_ 3 #define _MADARA_LEAF_NODE_H_ 5 #ifndef _MADARA_NO_KARL_ 97 #endif // _MADARA_NO_KARL_ This class encapsulates an entry in a KnowledgeBase.
Defines a node that contains a madara::knowledge::KnowledgeRecord::Integer value. ...
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.
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.
Copyright (c) 2015 Carnegie Mellon University.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.