MADARA
3.4.1
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
madara::expression::SystemCallNode::SystemCallNode
(
8
madara::knowledge::ThreadSafeContext
& context)
9
:
CompositeTernaryNode
(context.get_logger()),
context_
(context)
10
{
11
}
12
13
madara::expression::SystemCallNode::SystemCallNode
(
14
madara::knowledge::ThreadSafeContext
& context,
const
ComponentNodes
& nodes)
15
:
CompositeTernaryNode
(context.get_logger(), nodes),
context_
(context)
16
{
17
}
18
19
// Dtor
20
madara::expression::SystemCallNode::~SystemCallNode
(
void
) {}
21
22
madara::knowledge::KnowledgeRecord
madara::expression::SystemCallNode::item
(
23
void
)
const
24
{
25
return
madara::knowledge::KnowledgeRecord
(nodes_.size());
26
}
27
28
// accept a visitor
29
void
madara::expression::SystemCallNode::accept
(
30
madara::expression::Visitor
& visitor)
const
31
{
32
(void)visitor;
33
}
34
35
#endif
// _MADARA_NO_KARL_
SystemCallNode.h
context_
const ThreadSafeContext * context_
Definition:
ThreadSafeContext.cpp:2517
ThreadSafeContext.h
KnowledgeRecord
madara::knowledge::KnowledgeRecord KnowledgeRecord
Definition:
VariableCompareNode.cpp:8
madara::expression::CompositeTernaryNode
Definition:
CompositeTernaryNode.h:26
madara::expression::SystemCallNode::accept
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
Definition:
SystemCallNode.cpp:29
madara::expression::SystemCallNode::SystemCallNode
SystemCallNode(madara::knowledge::ThreadSafeContext &context)
Constructor.
Definition:
SystemCallNode.cpp:7
madara::expression::SystemCallNode::item
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
Definition:
SystemCallNode.cpp:22
madara::expression::SystemCallNode::~SystemCallNode
virtual ~SystemCallNode(void)
Destructor.
Definition:
SystemCallNode.cpp:20
madara::expression::Visitor
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition:
Visitor.h:93
madara::knowledge::KnowledgeRecord
This class encapsulates an entry in a KnowledgeBase.
Definition:
KnowledgeRecord.h:88
madara::knowledge::ThreadSafeContext
This class stores variables and their values for use by any entity needing state information in a thr...
Definition:
ThreadSafeContext.h:76
madara::expression::ComponentNodes
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
Definition:
ComponentNode.h:100
include
madara
expression
SystemCallNode.cpp
Generated on Sat Jan 20 2024 00:40:26 for MADARA by
1.9.1