2 #ifndef _MADARA_CONTAINERS_INTEGER_VECTOR3D_H_ 3 #define _MADARA_CONTAINERS_INTEGER_VECTOR3D_H_ 7 #include "madara/LockType.h" 67 const Dimensions & dimensions = {0,0,0},
68 bool delete_vars =
true,
84 const Dimensions & dimensions = {0,0,0},
85 bool delete_vars =
true,
105 std::vector<std::vector<std::vector<type> > > & target)
const;
118 void modify (
const Indices & index);
132 void resize (
const Dimensions & dimensions,
bool delete_vars =
true);
139 Dimensions size (
void)
const;
148 KnowledgeBase & knowledge,
const Dimensions & dimensions = {0,0,0});
157 Variables & knowledge,
const Dimensions & dimensions = {0,0,0});
167 const Dimensions & dimensions = {0,0,0});
176 void set_delimiter (
const std::string & delimiter);
193 type operator[] (
const Indices & index)
const;
211 int set (
const Indices & index, type value);
220 const std::vector<std::vector<std::vector<type> > > & value);
231 int set (
const Indices & index,
243 const std::vector<std::vector<std::vector<type> > > & value,
253 void set_quality (
const Indices & index, uint32_t quality,
285 bool is_true (
void)
const;
291 bool is_false (
void)
const;
299 virtual bool is_true_ (
void)
const;
305 virtual bool is_false_ (
void)
const;
315 virtual void modify_ (
void);
336 std::vector<std::vector<std::vector<VariableReference> > >
vector_;
352 #endif // _MADARA_CONTAINERS_INTEGER_VECTOR3D_H_ Indices Dimensions
convenience typedef for size
KnowledgeRecord::Integer type
convenience typedef for element type
std::vector< std::vector< std::vector< VariableReference > > > vector_
Values of the array.
three dimensional indexing
This class stores variables and their values for use by any entity needing state information in a thr...
Optimized reference to a variable within the knowledge base.
ThreadSafeContext * context_
Variable context that we are modifying.
Provides container classes for fast knowledge base access and mutation.
std::string delimiter_
Delimiter for the prefix to subvars.
This class provides a distributed knowledge base to users.
Manages a 3D array of doubles as a virtual overlay in the KnowledgeBase.
VariableReference size_
Reference to the size of 2D array.
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.
Settings for applying knowledge updates.
Copyright (c) 2015 Carnegie Mellon University.
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.