MADARA
3.1.8
Main Page
Namespaces
Classes
Files
File List
File Members
VariableReference.h
Go to the documentation of this file.
1
#ifndef _MADARA_VARIABLE_REFERENCE_H_
2
#define _MADARA_VARIABLE_REFERENCE_H_
3
4
13
#include <string>
14
#include "madara/MADARA_export.h"
15
#include "
madara/expression/ExpressionTree.h
"
16
#include "
madara/utility/ScopedArray.h
"
17
18
namespace
madara
19
{
20
namespace
knowledge
21
{
22
class
ThreadSafeContext;
23
class
KnolwedgeBaseImpl;
24
class
Variables;
25
26
namespace
rcw
27
{
28
class
BaseTracker;
29
}
30
35
class
MADARA_Export
VariableReference
36
{
37
public
:
38
friend
class
ThreadSafeContext
;
39
friend
class
KnowledgeBaseImpl
;
40
friend
class
Variables
;
41
friend
class
rcw::BaseTracker
;
42
46
VariableReference
();
47
52
VariableReference
(
const
VariableReference
& rhs);
53
57
~
VariableReference
();
58
63
bool
is_valid (
void
)
const
;
64
69
void
operator= (
const
VariableReference
& input);
70
75
bool
operator==
(
const
VariableReference
& rhs)
const
;
76
81
bool
operator!=
(
const
VariableReference
& rhs)
const
;
82
87
const
char
* get_name (
void
)
const
;
88
89
private
:
90
95
void
set_name (
const
std::string
& name);
96
100
utility::ScopedArray <const char>
name_
;
101
105
knowledge::KnowledgeRecord
*
record_
;
106
};
107
109
typedef
std::vector <VariableReference>
VariableReferences
;
110
}
111
}
112
113
#include "
VariableReference.inl
"
114
115
#endif // _MADARA_VARIABLE_REFERENCE_H_
madara::knowledge::KnowledgeRecord
This class encapsulates an entry in a KnowledgeBase.
Definition:
KnowledgeRecord.h:60
madara::knowledge::KnowledgeBaseImpl
This class provides a distributed knowledge base implementation.
Definition:
KnowledgeBaseImpl.h:43
madara::knowledge::VariableReference::name_
utility::ScopedArray< const char > name_
potential string value of the node (size int)
Definition:
VariableReference.h:100
madara::knowledge::rcw::BaseTracker
Base type for Trackers.
Definition:
BaseTracker.h:62
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::knowledge::VariableReference
Optimized reference to a variable within the knowledge base.
Definition:
VariableReference.h:35
ExpressionTree.h
madara::knowledge::tags::string
static constexpr struct madara::knowledge::tags::string_t string
madara::knowledge::rcw::operator==
auto operator==(const Tracked< T > &lhs, const Tracked< U > &rhs) -> decltype(lhs.get()==rhs.get())
Definition:
Tracked.h:244
madara::knowledge::VariableReferences
std::vector< VariableReference > VariableReferences
a vector of variable references
Definition:
VariableReference.h:109
madara::knowledge::rcw::operator!=
auto operator!=(const Tracked< T > &lhs, const Tracked< U > &rhs) -> decltype(lhs.get()!=rhs.get())
Definition:
Tracked.h:245
madara::knowledge
Provides functions and classes for the distributed knowledge base.
Definition:
AggregateFilter.h:32
ScopedArray.h
madara::knowledge::VariableReference::record_
knowledge::KnowledgeRecord * record_
Reference to knowledge record.
Definition:
VariableReference.h:105
VariableReference.inl
madara
Copyright (c) 2015 Carnegie Mellon University.
Definition:
AggregateFilter.h:30
madara::utility::ScopedArray< const char >
madara::knowledge::Variables
Provides an interface for external functions into the MADARA KaRL variable settings.
Definition:
ExternFunctionVariables.h:51
include
madara
knowledge
VariableReference.h
Generated on Wed May 9 2018 18:17:16 for MADARA by
1.8.11