2 #ifndef _MADARA_COMPOSITE_DIVIDE_NODE_H_
3 #define _MADARA_COMPOSITE_DIVIDE_NODE_H_
5 #ifndef _MADARA_NO_KARL_
An abstract base class defines a simple abstract implementation of an expression tree node.
Defines a left and right node (via inheritance from CompositeUnaryNode).
virtual ComponentNode * left(void) const
Returns the left expression.
A composite node that divides a left expression by a right one.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
CompositeDivideNode(logger::Logger &logger, ComponentNode *left, ComponentNode *right)
Constructor.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the printable character of the node.
virtual ~CompositeDivideNode(void)
Destructor.
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.
virtual ComponentNode * right(void) const
Returns the right expression.
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.