2 #ifndef _MADARA_CONTAINERS_INTEGER_VECTOR2D_H_ 3 #define _MADARA_CONTAINERS_INTEGER_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,
105 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});
157 Variables & knowledge,
const Dimensions & dimensions = {0,0});
175 void set_delimiter (
const std::string & delimiter);
192 type operator[] (
const Indices & index)
const;
210 int set (
const Indices & index, type value);
218 int set (
const std::vector<std::vector<type> > & value);
229 int set (
const Indices & index,
241 const std::vector<std::vector<type> > & value,
251 void set_quality (
const Indices & index, uint32_t quality,
283 bool is_true (
void)
const;
289 bool is_false (
void)
const;
297 virtual bool is_true_ (
void)
const;
303 virtual bool is_false_ (
void)
const;
313 virtual void modify_ (
void);
334 std::vector <std::vector <VariableReference> >
vector_;
350 #endif // _MADARA_CONTAINERS_INTEGER_VECTOR2D_H_
Manages a 2D array of integers as a virtual overlay in the KnowledgeBase.
This class stores variables and their values for use by any entity needing state information in a thr...
std::string delimiter_
Delimiter for the prefix to subvars.
ThreadSafeContext * context_
Variable context that we are modifying.
Optimized reference to a variable within the knowledge base.
Provides container classes for fast knowledge base access and mutation.
This class provides a distributed knowledge base to users.
VariableReference size_
Reference to the size of 2D array.
Indices Dimensions
convenience typedef for size
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.
std::vector< std::vector< VariableReference > > vector_
Values of the array.
KnowledgeRecord::Integer type
convenience typedef for element type