MADARA  3.4.1
SystemCallEval.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_SYSTEM_CALL_EVAL_H_
3 #define _MADARA_SYSTEM_CALL_EVAL_H_
4 
5 #ifndef _MADARA_NO_KARL_
6 
15 #include <string>
16 #include <stdexcept>
17 #include "madara/utility/StdInt.h"
19 
20 namespace madara
21 {
22 namespace expression
23 {
24 // Forward declaration.
25 class Visitor;
26 
33 {
34 public:
39  const ComponentNodes& nodes);
40 
44  virtual ~SystemCallEval(void);
45 
50  virtual madara::knowledge::KnowledgeRecord item(void) const;
51 
57  virtual madara::knowledge::KnowledgeRecord prune(bool& can_change);
58 
65 
70  virtual void accept(Visitor& visitor) const;
71 };
72 }
73 }
74 
75 #endif // _MADARA_NO_KARL_
76 
77 #endif /* _MADARA_SYSTEM_CALL_EVAL_H_ */
Evaluates a knowledge::KnowledgeRecord and returns the evaluation result.
virtual ~SystemCallEval(void)
Destructor.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
SystemCallEval(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
Interface for a MADARA system call.
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.
This class stores variables and their values for use by any entity needing state information in a thr...
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
Copyright(c) 2020 Galois.