2 #ifndef _MADARA_CONTAINERS_DOUBLE_VECTOR2D_H_ 3 #define _MADARA_CONTAINERS_DOUBLE_VECTOR2D_H_ 7 #include "madara/LockType.h" 67 const Dimensions & dimensions = {0,0},
68 bool delete_vars =
true,
84 const Dimensions & dimensions = {0,0},
85 bool delete_vars =
true,
104 void copy_to (std::vector<std::vector<type> > & target)
const;
117 void modify (
const Indices & index);
131 void resize (
const Dimensions & dimensions,
bool delete_vars =
true);
138 Dimensions size (
void)
const;
147 KnowledgeBase & knowledge,
const Dimensions & dimensions = {0,0});
156 Variables & knowledge,
const Dimensions & dimensions = {0,0});
174 void set_delimiter (
const std::string & delimiter);
191 type operator[] (
const Indices & index)
const;
209 int set (
const Indices & index,
double value);
217 int set (
const std::vector<std::vector<type> > & value);
228 int set (
const Indices & index,
240 const std::vector<std::vector<type> > & value,
250 void set_quality (
const Indices & index, uint32_t quality,
282 bool is_true (
void)
const;
288 bool is_false (
void)
const;
296 virtual bool is_true_ (
void)
const;
302 virtual bool is_false_ (
void)
const;
312 virtual void modify_ (
void);
333 std::vector <std::vector <VariableReference> >
vector_;
349 #endif // _MADARA_CONTAINERS_DOUBLE_VECTOR2D_H_
This class stores variables and their values for use by any entity needing state information in a thr...
Manages a 2D array of doubles as a virtual overlay in the KnowledgeBase.
Optimized reference to a variable within the knowledge base.
Provides container classes for fast knowledge base access and mutation.
Indices Dimensions
convenience typedef for size
double type
convenience typedef for element type
std::vector< std::vector< VariableReference > > vector_
Values of the array.
This class provides a distributed knowledge base to users.
ThreadSafeContext * context_
Variable context that we are modifying.
MADARA_Export bool exists(const char *originator, uint64_t clock, uint32_t update_number, OriginatorFragmentMap &map)
Checks if a fragment already exists within a fragment map.
Provides functions and classes for the distributed knowledge base.
std::string delimiter_
Delimiter for the prefix to subvars.
Settings for applying knowledge updates.
Copyright (c) 2015 Carnegie Mellon University.
VariableReference size_
Reference to the size of 2D array.
Settings for applying knowledge updates.
Provides an interface for external functions into the MADARA KaRL variable settings.
This class is an abstract base class for all containers.