MADARA  3.4.1
CompositePostdecrementNode.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_COMPOSITE_POSTDECREMENT_NODE_H_
3 #define _MADARA_COMPOSITE_POSTDECREMENT_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:
34 
38  virtual ~CompositePostdecrementNode(void);
39 
44  virtual madara::knowledge::KnowledgeRecord item(void) const;
45 
52  virtual madara::knowledge::KnowledgeRecord prune(bool& can_change);
53 
62 
67  virtual void accept(Visitor& visitor) const;
68 
69 private:
72 
75 };
76 }
77 }
78 
79 #endif // _MADARA_NO_KARL_
80 
81 #endif /* _MADARA_COMPOSITE_POSTDECREMENT_NODE_H_ */
An abstract base class defines a simple abstract implementation of an expression tree node.
Definition: ComponentNode.h:37
Defines a terminal node of that references the current value stored in a variable.
A composite node that decrements a left 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.
CompositePostdecrementNode(logger::Logger &logger, ComponentNode *right)
Constructor.
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.
CompositeArrayReference * array_
variable index holder
Encapsulates a single expression tree.
virtual ComponentNode * right(void) const
Returns the right expression.
Defines a terminal node of that references the current value stored in a variable.
Definition: VariableNode.h:29
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition: Visitor.h:93
This class encapsulates an entry in a KnowledgeBase.
Settings for applying knowledge updates.
A multi-threaded logger for logging to one or more destinations.
Definition: Logger.h:165
Provides knowledge logging services to files and terminals.
Definition: GlobalLogger.h:12
Copyright(c) 2020 Galois.