MADARA  3.2.3
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  const ComponentNodes & nodes);
31 
36  virtual madara::knowledge::KnowledgeRecord item (void) const;
37 
43  virtual madara::knowledge::KnowledgeRecord prune (bool & can_change);
44 
52 
57  virtual void accept (Visitor &visitor) const;
58  };
59  }
60 }
61 
62 #endif // _MADARA_NO_KARL_
63 
64 #endif /* _MADARA_COMPOSITE_ADD_NODE_H_ */
This class encapsulates an entry in a KnowledgeBase.
A composite node that encompasses addition of two expressions.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the printable character of the node.
Provides knowledge logging services to files and terminals.
Definition: GlobalLogger.h:11
A multi-threaded logger for logging to one or more destinations.
Definition: Logger.h:88
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition: Visitor.h:91
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
CompositeAddNode(logger::Logger &logger, const ComponentNodes &nodes)
Constructor.
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.