MADARA
3.4.1
SystemCallRandDouble.h
Go to the documentation of this file.
1
/* -*- C++ -*- */
2
#ifndef _MADARA_SYSTEM_CALL_RAND_DOUBLE_H_
3
#define _MADARA_SYSTEM_CALL_RAND_DOUBLE_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
namespace
madara
13
{
14
namespace
expression
15
{
16
// Forward declaration.
17
class
Visitor;
18
23
class
SystemCallRandDouble
:
public
SystemCallNode
24
{
25
public
:
29
SystemCallRandDouble
(
madara::knowledge::ThreadSafeContext
& context,
30
const
ComponentNodes
& nodes);
31
35
virtual
~SystemCallRandDouble
(
void
);
36
41
virtual
madara::knowledge::KnowledgeRecord
item
(
void
)
const
;
42
48
virtual
madara::knowledge::KnowledgeRecord
prune
(
bool
& can_change);
49
54
virtual
madara::knowledge::KnowledgeRecord
evaluate
(
55
const
madara::knowledge::KnowledgeUpdateSettings
& settings);
56
61
virtual
void
accept
(
Visitor
& visitor)
const
;
62
};
63
}
64
}
65
66
#endif
// _MADARA_NO_KARL_
67
68
#endif
/* _MADARA_SYSTEM_CALL_RAND_DOUBLE_H_ */
StdInt.h
SystemCallNode.h
madara::expression::SystemCallNode
Interface for a MADARA system call.
Definition:
SystemCallNode.h:25
madara::expression::SystemCallRandDouble
Returns a random double.
Definition:
SystemCallRandDouble.h:24
madara::expression::SystemCallRandDouble::~SystemCallRandDouble
virtual ~SystemCallRandDouble(void)
Destructor.
Definition:
SystemCallRandDouble.cpp:17
madara::expression::SystemCallRandDouble::item
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
Definition:
SystemCallRandDouble.cpp:20
madara::expression::SystemCallRandDouble::SystemCallRandDouble
SystemCallRandDouble(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
Definition:
SystemCallRandDouble.cpp:10
madara::expression::SystemCallRandDouble::evaluate
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
Definition:
SystemCallRandDouble.cpp:70
madara::expression::SystemCallRandDouble::accept
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
Definition:
SystemCallRandDouble.cpp:101
madara::expression::SystemCallRandDouble::prune
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
Definition:
SystemCallRandDouble.cpp:29
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::KnowledgeUpdateSettings
Settings for applying knowledge updates.
Definition:
KnowledgeUpdateSettings.h:24
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
madara
Copyright(c) 2020 Galois.
Definition:
AggregateFilter.h:31
include
madara
expression
SystemCallRandDouble.h
Generated on Sat Jan 20 2024 00:40:26 for MADARA by
1.9.1