MADARA
3.1.8
Main Page
Namespaces
Classes
Files
File List
File Members
SystemCallSqrt.h
Go to the documentation of this file.
1
/* -*- C++ -*- */
2
#ifndef _MADARA_SYSTEM_CALL_SQRT_H_
3
#define _MADARA_SYSTEM_CALL_SQRT_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
24
class
SystemCallSqrt
:
public
SystemCallNode
25
{
26
public
:
30
SystemCallSqrt
(
31
madara::knowledge::ThreadSafeContext
& context,
32
const
ComponentNodes
& nodes);
33
37
virtual
~SystemCallSqrt
(
void
);
38
43
virtual
madara::knowledge::KnowledgeRecord
item
(
void
)
const
;
44
50
virtual
madara::knowledge::KnowledgeRecord
prune
(
bool
& can_change);
51
56
virtual
madara::knowledge::KnowledgeRecord
evaluate
(
57
const
madara::knowledge::KnowledgeUpdateSettings
& settings);
58
63
virtual
void
accept
(
Visitor
&visitor)
const
;
64
};
65
}
66
}
67
68
#endif // _MADARA_NO_KARL_
69
70
#endif
/* _MADARA_SYSTEM_CALL_SQRT_H_ */
madara::knowledge::KnowledgeRecord
This class encapsulates an entry in a KnowledgeBase.
Definition:
KnowledgeRecord.h:60
madara::expression::SystemCallSqrt::prune
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
Definition:
SystemCallSqrt.cpp:35
madara::expression::ComponentNodes
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
Definition:
ComponentNode.h:100
madara::expression::SystemCallSqrt::~SystemCallSqrt
virtual ~SystemCallSqrt(void)
Destructor.
Definition:
SystemCallSqrt.cpp:21
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::SystemCallSqrt::SystemCallSqrt
SystemCallSqrt(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
Definition:
SystemCallSqrt.cpp:12
madara::expression::SystemCallSqrt::accept
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
Definition:
SystemCallSqrt.cpp:92
madara::expression::SystemCallSqrt
Returns the square root of a term.
Definition:
SystemCallSqrt.h:24
madara::expression::Visitor
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition:
Visitor.h:90
stdint.h
madara::expression::SystemCallSqrt::item
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
Definition:
SystemCallSqrt.cpp:26
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::SystemCallSqrt::evaluate
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
Definition:
SystemCallSqrt.cpp:66
SystemCallNode.h
include
madara
expression
SystemCallSqrt.h
Generated on Wed May 9 2018 18:17:14 for MADARA by
1.8.11