MADARA
3.1.8
Main Page
Namespaces
Classes
Files
File List
File Members
SystemCallNode.cpp
Go to the documentation of this file.
1
2
#ifndef _MADARA_NO_KARL_
3
4
#include "
madara/expression/SystemCallNode.h
"
5
#include "
madara/knowledge/ThreadSafeContext.h
"
6
7
8
madara::expression::SystemCallNode::SystemCallNode
(
9
madara::knowledge::ThreadSafeContext
& context)
10
:
CompositeTernaryNode
(context.get_logger ()),
11
context_ (context)
12
{
13
14
}
15
16
17
madara::expression::SystemCallNode::SystemCallNode
(
18
madara::knowledge::ThreadSafeContext
& context,
19
const
ComponentNodes
& nodes)
20
:
CompositeTernaryNode
(context.get_logger (), nodes),
21
context_
(context)
22
{
23
24
}
25
26
// Dtor
27
madara::expression::SystemCallNode::~SystemCallNode
(
void
)
28
{
29
}
30
31
madara::knowledge::KnowledgeRecord
32
madara::expression::SystemCallNode::item
(
void
)
const
33
{
34
return
madara::knowledge::KnowledgeRecord
(
nodes_
.size ());
35
}
36
37
// accept a visitor
38
void
39
madara::expression::SystemCallNode::accept
(
madara::expression::Visitor
&visitor)
const
40
{
41
(void)visitor;
42
}
43
44
#endif // _MADARA_NO_KARL_
madara::knowledge::KnowledgeRecord
This class encapsulates an entry in a KnowledgeBase.
Definition:
KnowledgeRecord.h:60
madara::expression::SystemCallNode::item
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
Definition:
SystemCallNode.cpp:32
KnowledgeRecord
madara::knowledge::KnowledgeRecord KnowledgeRecord
Definition:
VariableCompareNode.cpp:8
madara::expression::CompositeTernaryNode::nodes_
ComponentNodes nodes_
Definition:
CompositeTernaryNode.h:76
madara::expression::ComponentNodes
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
Definition:
ComponentNode.h:100
ThreadSafeContext.h
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::SystemCallNode::~SystemCallNode
virtual ~SystemCallNode(void)
Destructor.
Definition:
SystemCallNode.cpp:27
madara::expression::CompositeTernaryNode
Definition:
CompositeTernaryNode.h:26
madara::expression::Visitor
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition:
Visitor.h:90
madara::expression::SystemCallNode::context_
madara::knowledge::ThreadSafeContext & context_
Definition:
SystemCallNode.h:76
madara::expression::SystemCallNode::accept
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
Definition:
SystemCallNode.cpp:39
madara::expression::SystemCallNode::SystemCallNode
SystemCallNode(madara::knowledge::ThreadSafeContext &context)
Constructor.
Definition:
SystemCallNode.cpp:8
SystemCallNode.h
include
madara
expression
SystemCallNode.cpp
Generated on Wed May 9 2018 18:17:14 for MADARA by
1.8.11