MADARA  3.4.1
CompositeSquareRootNode.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_COMPOSITE_SQUARE_ROOT_NODE_H_
3 #define _MADARA_COMPOSITE_SQUARE_ROOT_NODE_H_
4 
5 #ifndef _MADARA_NO_KARL_
6 
9 
10 namespace madara
11 {
12 namespace expression
13 {
14 class ComponentNode;
15 class Visitor;
16 
22 {
23 public:
30 
34  virtual ~CompositeSquareRootNode(void);
35 
40  virtual madara::knowledge::KnowledgeRecord item(void) const;
41 
47  virtual madara::knowledge::KnowledgeRecord prune(bool& can_change);
48 
56 
61  virtual void accept(Visitor& visitor) const;
62 };
63 }
64 }
65 
66 #endif // _MADARA_NO_KARL_
67 
68 #endif /* _MADARA_COMPOSITE_SQUARE_ROOT_NODE_H_ */
An abstract base class defines a simple abstract implementation of an expression tree node.
Definition: ComponentNode.h:37
A composite node that takes the square root of a term.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
CompositeSquareRootNode(logger::Logger &logger, ComponentNode *right)
Constructor.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the node.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the printable character of the node.
Encapsulates a single expression tree.
virtual ComponentNode * right(void) const
Returns the right expression.
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition: Visitor.h:93
This class encapsulates an entry in a KnowledgeBase.
Settings for applying knowledge updates.
A multi-threaded logger for logging to one or more destinations.
Definition: Logger.h:165
Provides knowledge logging services to files and terminals.
Definition: GlobalLogger.h:12
Copyright(c) 2020 Galois.