MADARA  3.1.8
CompositePredecrementNode.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_COMPOSITE_PREDECREMENT_NODE_H_
3 #define _MADARA_COMPOSITE_PREDECREMENT_NODE_H_
4 
5 #ifndef _MADARA_NO_KARL_
6 
11 
12 namespace madara
13 {
14  namespace expression
15  {
16  class ComponentNode;
17  class Visitor;
18 
26  {
27  public:
35 
39  virtual ~CompositePredecrementNode (void);
40 
45  virtual madara::knowledge::KnowledgeRecord item (void) const;
46 
53  virtual madara::knowledge::KnowledgeRecord prune (bool & can_change);
54 
63 
68  virtual void accept (Visitor &visitor) const;
69 
70  private:
71 
74 
77  };
78  }
79 }
80 
81 #endif // _MADARA_NO_KARL_
82 
83 #endif /* _MADARA_COMPOSITE_PREDECREMENT_NODE_H_ */
This class encapsulates an entry in a KnowledgeBase.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the printable character of the node.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
Defines a terminal node of that references the current value stored in a variable.
Definition: VariableNode.h:28
A composite node that decrements 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
CompositeArrayReference * array_
variable index holder
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 evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the node.
Settings for applying knowledge updates.
Encapsulates a single expression tree.
Copyright (c) 2015 Carnegie Mellon University.
virtual ComponentNode * right(void) const
Returns the right expression.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
Defines a terminal node of that references the current value stored in a variable.
CompositePredecrementNode(logger::Logger &logger, ComponentNode *right)
Constructor.