MADARA
3.1.8
Main Page
Namespaces
Classes
Files
File List
File Members
SystemCallSetPrecision.h
Go to the documentation of this file.
1
/* -*- C++ -*- */
2
#ifndef _MADARA_SYSTEM_CALL_SET_PRECISION_H_
3
#define _MADARA_SYSTEM_CALL_SET_PRECISION_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
25
class
SystemCallSetPrecision
:
public
SystemCallNode
26
{
27
public
:
31
SystemCallSetPrecision
(
32
madara::knowledge::ThreadSafeContext
& context,
33
const
ComponentNodes
& nodes);
34
38
virtual
~SystemCallSetPrecision
(
void
);
39
44
virtual
madara::knowledge::KnowledgeRecord
item
(
void
)
const
;
45
51
virtual
madara::knowledge::KnowledgeRecord
prune
(
bool
& can_change);
52
57
virtual
madara::knowledge::KnowledgeRecord
evaluate
(
58
const
madara::knowledge::KnowledgeUpdateSettings
& settings);
59
64
virtual
void
accept
(
Visitor
&visitor)
const
;
65
};
66
}
67
}
68
69
#endif // _MADARA_NO_KARL_
70
71
#endif
/* _MADARA_SYSTEM_CALL_SET_PRECISION_H_ */
madara::knowledge::KnowledgeRecord
This class encapsulates an entry in a KnowledgeBase.
Definition:
KnowledgeRecord.h:60
madara::expression::SystemCallSetPrecision::accept
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
Definition:
SystemCallSetPrecision.cpp:91
madara::expression::ComponentNodes
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
Definition:
ComponentNode.h:100
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::SystemCallSetPrecision::prune
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
Definition:
SystemCallSetPrecision.cpp:34
madara::expression::SystemCallSetPrecision::evaluate
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
Definition:
SystemCallSetPrecision.cpp:61
madara::expression::SystemCallSetPrecision::item
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
Definition:
SystemCallSetPrecision.cpp:25
madara::expression::SystemCallSetPrecision
Sets the double precision for converting doubles to a string and for printing.
Definition:
SystemCallSetPrecision.h:25
madara::expression::SystemCallSetPrecision::~SystemCallSetPrecision
virtual ~SystemCallSetPrecision(void)
Destructor.
Definition:
SystemCallSetPrecision.cpp:20
madara::expression::Visitor
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition:
Visitor.h:90
stdint.h
madara::expression::SystemCallNode
Interface for a MADARA system call.
Definition:
SystemCallNode.h:25
madara::expression::SystemCallSetPrecision::SystemCallSetPrecision
SystemCallSetPrecision(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
Definition:
SystemCallSetPrecision.cpp:11
madara::knowledge::KnowledgeUpdateSettings
Settings for applying knowledge updates.
Definition:
KnowledgeUpdateSettings.h:23
madara
Copyright (c) 2015 Carnegie Mellon University.
Definition:
AggregateFilter.h:30
SystemCallNode.h
include
madara
expression
SystemCallSetPrecision.h
Generated on Wed May 9 2018 18:17:14 for MADARA by
1.8.11