MADARA  3.1.8
CompositeMultiplyNode.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_COMPOSITE_MULTIPLY_NODE_H_
3 #define _MADARA_COMPOSITE_MULTIPLY_NODE_H_
4 
5 #ifndef _MADARA_NO_KARL_
6 
9 
10 namespace madara
11 {
12  namespace expression
13  {
14  class ComponentNode;
15  class CompositeBinaryNode;
16  class Visitor;
17 
24  {
25  public:
32  const ComponentNodes & nodes);
33 
37  virtual ~CompositeMultiplyNode (void);
38 
43  virtual madara::knowledge::KnowledgeRecord item (void) const;
44 
50  virtual madara::knowledge::KnowledgeRecord prune (bool & can_change);
51 
59 
64  virtual void accept (Visitor &visitor) const;
65  };
66  }
67 }
68 
69 #endif // _MADARA_NO_KARL_
70 
71 #endif /* _MADARA_COMPOSITE_MULTIPLY_NODE_H_ */
This class encapsulates an entry in a KnowledgeBase.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the printable character of the node.
CompositeMultiplyNode(logger::Logger &logger, const ComponentNodes &nodes)
Constructor.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
A composite node that multiplies a left expression by a right expression.
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 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.
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition: Visitor.h:90
Settings for applying knowledge updates.
Copyright (c) 2015 Carnegie Mellon University.