MADARA  3.2.3
CompositeConstArray.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_COMPOSITE_CONST_ARRAY_H_
3 #define _MADARA_COMPOSITE_CONST_ARRAY_H_
4 
5 #ifndef _MADARA_NO_KARL_
6 
7 #include <vector>
12 
13 namespace madara
14 {
15  namespace expression
16  {
17  class ComponentNode;
18  class Visitor;
19 
25  {
26  public:
33  const ComponentNodes & nodes);
34 
38  virtual ~CompositeConstArray (void);
39 
44  virtual madara::knowledge::KnowledgeRecord item (void) const;
45 
51  virtual madara::knowledge::KnowledgeRecord prune (bool & can_change);
52 
60 
65  virtual void accept (Visitor &visitor) const;
66  };
67  }
68 }
69 
70 #endif // _MADARA_NO_KARL_
71 
72 #endif /* _MADARA_COMPOSITE_CONST_ARRAY_H_ */
This class encapsulates an entry in a KnowledgeBase.
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
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.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
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
virtual ~CompositeConstArray(void)
Destructor.
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition: Visitor.h:91
A composite node that contains an array of values.
Settings for applying knowledge updates.
Copyright (c) 2015 Carnegie Mellon University.
CompositeConstArray(logger::Logger &logger, const ComponentNodes &nodes)
Constructor.