2 #ifndef _MADARA_LEAF_NODE_H_
3 #define _MADARA_LEAF_NODE_H_
5 #ifndef _MADARA_NO_KARL_
An abstract base class defines a simple abstract implementation of an expression tree node.
Defines a node that contains a madara::knowledge::KnowledgeRecord::Integer value.
madara::knowledge::KnowledgeRecord item_
Integer value associated with the operand.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the printable value of the node.
virtual ~LeafNode(void)
Destructor.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
LeafNode(logger::Logger &logger, const knowledge::KnowledgeRecord &item)
Constructor.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
Abstract base class for all visitors to all classes that derive from ComponentNode.
This class encapsulates an entry in a KnowledgeBase.
Settings for applying knowledge updates.
A multi-threaded logger for logging to one or more destinations.
Provides knowledge logging services to files and terminals.
Copyright(c) 2020 Galois.