MADARA
3.1.8
Main Page
Namespaces
Classes
Files
File List
File Members
SystemCallClearVariable.h
Go to the documentation of this file.
1
/* -*- C++ -*- */
2
#ifndef _MADARA_SYSTEM_CALL_CLEAR_VARIABLE_H_
3
#define _MADARA_SYSTEM_CALL_CLEAR_VARIABLE_H_
4
5
#ifndef _MADARA_NO_KARL_
6
7
#include <string>
8
#include <stdexcept>
9
#include "
madara/utility/stdint.h
"
10
#include "
madara/expression/SystemCallNode.h
"
11
12
13
namespace
madara
14
{
15
namespace
expression
16
{
17
// Forward declaration.
18
class
Visitor;
19
27
class
SystemCallClearVariable
:
public
SystemCallNode
28
{
29
public
:
33
SystemCallClearVariable
(
34
madara::knowledge::ThreadSafeContext
& context,
35
const
ComponentNodes
& nodes);
36
40
virtual
~SystemCallClearVariable
(
void
);
41
46
virtual
madara::knowledge::KnowledgeRecord
item
(
void
)
const
;
47
53
virtual
madara::knowledge::KnowledgeRecord
prune
(
bool
& can_change);
54
59
virtual
madara::knowledge::KnowledgeRecord
evaluate
(
60
const
madara::knowledge::KnowledgeUpdateSettings
& settings);
61
66
virtual
void
accept
(
Visitor
&visitor)
const
;
67
};
68
}
69
}
70
71
#endif // _MADARA_NO_KARL_
72
73
#endif
/* _MADARA_SYSTEM_CALL_CLEAR_VARIABLE_H_ */
madara::knowledge::KnowledgeRecord
This class encapsulates an entry in a KnowledgeBase.
Definition:
KnowledgeRecord.h:60
madara::expression::SystemCallClearVariable::item
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
Definition:
SystemCallClearVariable.cpp:25
madara::expression::ComponentNodes
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
Definition:
ComponentNode.h:100
madara::expression::SystemCallClearVariable::prune
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
Definition:
SystemCallClearVariable.cpp:34
madara::knowledge::ThreadSafeContext
This class stores variables and their values for use by any entity needing state information in a thr...
Definition:
ThreadSafeContext.h:82
madara::expression::SystemCallClearVariable
Attempts to clear a variable.
Definition:
SystemCallClearVariable.h:27
madara::expression::SystemCallClearVariable::~SystemCallClearVariable
virtual ~SystemCallClearVariable(void)
Destructor.
Definition:
SystemCallClearVariable.cpp:20
madara::expression::SystemCallClearVariable::evaluate
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
Definition:
SystemCallClearVariable.cpp:69
madara::expression::Visitor
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition:
Visitor.h:90
madara::expression::SystemCallClearVariable::accept
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
Definition:
SystemCallClearVariable.cpp:96
stdint.h
madara::expression::SystemCallNode
Interface for a MADARA system call.
Definition:
SystemCallNode.h:25
madara::knowledge::KnowledgeUpdateSettings
Settings for applying knowledge updates.
Definition:
KnowledgeUpdateSettings.h:23
madara
Copyright (c) 2015 Carnegie Mellon University.
Definition:
AggregateFilter.h:30
madara::expression::SystemCallClearVariable::SystemCallClearVariable
SystemCallClearVariable(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
Definition:
SystemCallClearVariable.cpp:11
SystemCallNode.h
include
madara
expression
SystemCallClearVariable.h
Generated on Wed May 9 2018 18:17:14 for MADARA by
1.8.11