2 #ifndef _MADARA_CONTAINERS_DOUBLE_VECTOR_VECTOR_H_ 3 #define _MADARA_CONTAINERS_DOUBLE_VECTOR_VECTOR_H_ 7 #include "madara/LockType.h" 36 typedef std::vector<double>
type;
65 bool delete_vars =
true,
82 bool delete_vars =
true,
108 void modify (
size_t index);
121 void push_back (
const type & value);
129 void resize (
int size = -1,
bool delete_vars =
true);
140 bool delete_keys =
true);
152 void copy_to (std::vector <type > & target)
const;
165 size_t size (
void)
const;
201 void set_delimiter (
const std::string & delimiter);
218 type operator[] (
size_t index)
const;
226 double operator[] (
Indices index)
const;
242 bool exists (
size_t index)
const;
252 int set (
size_t index, type value);
261 int set (
const std::vector <type> & value);
272 int set (
size_t index,
285 const std::vector <type> & value,
295 void set_quality (
size_t index, uint32_t quality,
327 bool is_true (
void)
const;
333 bool is_false (
void)
const;
341 virtual bool is_true_ (
void)
const;
347 virtual bool is_false_ (
void)
const;
357 virtual void modify_ (
void);
394 #endif // _MADARA_CONTAINERS_DOUBLE_VECTOR_VECTOR_H_ This class encapsulates an entry in a KnowledgeBase.
This class stores a vector of NativeDoubleVectors.
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.
Provides container classes for fast knowledge base access and mutation.
::std::vector< KnowledgeRecord > KnowledgeVector
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.
std::vector< double > type
trait that describes the value type
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.
VariableReference size_
Reference to the size field of the vector space.
Settings for applying knowledge updates.
Copyright (c) 2015 Carnegie Mellon University.
Settings for applying knowledge updates.
std::string delimiter_
Delimiter for the prefix to subvars.
Provides an interface for external functions into the MADARA KaRL variable settings.
This class is an abstract base class for all containers.