MADARA  3.2.3
CompositeDivideNode.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_COMPOSITE_DIVIDE_NODE_H_
3 #define _MADARA_COMPOSITE_DIVIDE_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:
33 
37  virtual ~CompositeDivideNode (void);
38 
43  virtual madara::knowledge::KnowledgeRecord item (void) const;
44 
52  virtual madara::knowledge::KnowledgeRecord prune (bool & can_change);
53 
63 
68  virtual void accept (Visitor &visitor) const;
69  };
70  }
71 }
72 
73 #endif // _MADARA_NO_KARL_
74 
75 #endif /* _MADARA_COMPOSITE_DIVIDE_NODE_H_ */
This class encapsulates an entry in a KnowledgeBase.
CompositeDivideNode(logger::Logger &logger, ComponentNode *left, ComponentNode *right)
Constructor.
Defines a left and right node (via inheritance from CompositeUnaryNode).
Provides knowledge logging services to files and terminals.
Definition: GlobalLogger.h:11
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
A multi-threaded logger for logging to one or more destinations.
Definition: Logger.h:88
An abstract base class defines a simple abstract implementation of an expression tree node...
Definition: ComponentNode.h:36
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition: Visitor.h:91
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.
Settings for applying knowledge updates.
A composite node that divides a left expression by a right one.
Copyright (c) 2015 Carnegie Mellon University.
virtual ComponentNode * left(void) const
Returns the left expression.
virtual ComponentNode * right(void) const
Returns the right expression.
virtual ~CompositeDivideNode(void)
Destructor.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the printable character of the node.