2 #ifndef _MADARA_CONTAINERS_INTEGER_VECTOR_H_ 3 #define _MADARA_CONTAINERS_INTEGER_VECTOR_H_ 7 #include "madara/LockType.h" 58 bool delete_vars =
true,
75 bool delete_vars =
true,
101 void modify (
size_t index);
114 void push_back (type value);
122 void resize (
int size = -1,
bool delete_vars =
true);
132 void exchange (
IntegerVector & other,
bool refresh_keys =
true,
133 bool delete_keys =
true);
151 void copy_to (std::vector <type> & target)
const;
158 size_t size (
void)
const;
194 void set_delimiter (
const std::string & delimiter);
211 type operator[] (
size_t index)
const;
233 bool exists (
size_t index)
const;
241 type inc (
size_t index);
251 int set (
size_t index,
264 int set (
size_t index,
276 const std::vector <type> & value);
287 const std::vector <type> & value,
297 void set_quality (
size_t index, uint32_t quality,
329 bool is_true (
void)
const;
335 bool is_false (
void)
const;
343 virtual bool is_true_ (
void)
const;
349 virtual bool is_false_ (
void)
const;
359 virtual void modify_ (
void);
399 #endif // _MADARA_CONTAINERS_INTEGER_VECTOR_H_ This class encapsulates an entry in a KnowledgeBase.
This class stores variables and their values for use by any entity needing state information in a thr...
This class stores a vector of integers inside of KaRL.
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.
::std::vector< KnowledgeRecord > KnowledgeVector
knowledge::KnowledgeRecord::Integer type
trait that describes the value type
This class provides a distributed knowledge base to users.
IntegerVector IntegerArray
provide the Array alias for the IntegerVector class
VariableReference size_
Reference to the size field of the vector space.
std::vector< VariableReference > vector_
Values of the 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.
std::string delimiter_
Delimiter for the prefix to subvars.
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.