MADARA  3.1.8
CompositePreincrementNode.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_COMPOSITE_PREINCREMENT_NODE_H_
3 #define _MADARA_COMPOSITE_PREINCREMENT_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 ~CompositePreincrementNode (void);
40 
45  virtual madara::knowledge::KnowledgeRecord item (void) const;
46 
52  virtual madara::knowledge::KnowledgeRecord prune (bool & can_change);
53 
61 
66  virtual void accept (Visitor &visitor) const;
67 
68  private:
69 
72 
75  };
76  }
77 }
78 
79 #endif // _MADARA_NO_KARL_
80 
81 #endif /* _MADARA_COMPOSITE_PREINCREMENT_NODE_H_ */
This class encapsulates an entry in a KnowledgeBase.
CompositeArrayReference * array_
variable index holder
Defines a terminal node of that references the current value stored in a variable.
Definition: VariableNode.h:28
A composite node that increments a right expression.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the printable character of the node.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates 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
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 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.
CompositePreincrementNode(logger::Logger &logger, ComponentNode *right)
Constructor.
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.
Defines a terminal node of that references the current value stored in a variable.