MADARA  3.4.1
CompositeAddNode.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_COMPOSITE_ADD_NODE_H_
3 #define _MADARA_COMPOSITE_ADD_NODE_H_
4 
5 #ifndef _MADARA_NO_KARL_
6 
8 
9 namespace madara
10 {
11 namespace expression
12 {
13 // Forward declaration.
14 class ComponentNode;
15 class Visitor;
16 
22 {
23 public:
30 
35  virtual madara::knowledge::KnowledgeRecord item(void) const;
36 
42  virtual madara::knowledge::KnowledgeRecord prune(bool& can_change);
43 
51 
56  virtual void accept(Visitor& visitor) const;
57 };
58 }
59 }
60 
61 #endif // _MADARA_NO_KARL_
62 
63 #endif /* _MADARA_COMPOSITE_ADD_NODE_H_ */
A composite node that encompasses addition of two expressions.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the printable character of the node.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
CompositeAddNode(logger::Logger &logger, const ComponentNodes &nodes)
Constructor.
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
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
Provides knowledge logging services to files and terminals.
Definition: GlobalLogger.h:12
Copyright(c) 2020 Galois.