MADARA  3.1.8
CompositeModulusNode.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_COMPOSITE_MODULUS_NODE_H_
3 #define _MADARA_COMPOSITE_MODULUS_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 
23  {
24  public:
34 
38  virtual ~CompositeModulusNode (void);
39 
44  virtual madara::knowledge::KnowledgeRecord item (void) const;
45 
53  virtual madara::knowledge::KnowledgeRecord prune (bool & can_change);
54 
64 
69  virtual void accept (Visitor &visitor) const;
70  };
71  }
72 }
73 
74 #endif // _MADARA_NO_KARL_
75 
76 #endif /* _MADARA_COMPOSITE_MODULUS_NODE_H_ */
This class encapsulates an entry in a KnowledgeBase.
A composite node that divides a left expression by a right expression and returns the remainder of th...
Defines a left and right node (via inheritance from CompositeUnaryNode).
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 madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
An abstract base class defines a simple abstract implementation of an expression tree node...
Definition: ComponentNode.h:35
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition: Visitor.h:90
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the printable character of the node.
CompositeModulusNode(logger::Logger &logger, ComponentNode *left, ComponentNode *right)
Constructor.
Settings for applying knowledge updates.
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 madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.