2 #ifndef _MADARA_CONTAINERS_VECTOR_H_ 3 #define _MADARA_CONTAINERS_VECTOR_H_ 8 #include "madara/LockType.h" 63 bool delete_vars =
true,
81 bool delete_vars =
true,
107 void modify (
size_t index);
113 void operator= (
const Vector & rhs);
128 void resize (
int size = -1,
bool delete_vars =
true);
138 void exchange (
Vector & other,
bool refresh_keys =
true,
139 bool delete_keys =
true);
145 void transfer_to (
Vector & other);
152 size_t size (
void)
const;
188 void set_delimiter (
const std::string & delimiter);
229 bool exists (
size_t index)
const;
256 int set_file (
size_t index,
257 const unsigned char * value,
size_t size);
267 int set_file (
size_t index,
268 const unsigned char * value,
size_t size,
278 int set_jpeg (
size_t index,
279 const unsigned char * value,
size_t size);
289 int set_jpeg (
size_t index,
290 const unsigned char * value,
size_t size,
301 int set (
size_t index,
314 int set (
size_t index,
327 int set_index (
size_t index,
341 int set_index (
size_t index,
355 int set (
size_t index,
369 int set (
size_t index,
382 int set (
size_t index,
383 const std::vector <KnowledgeRecord::Integer> & value);
394 int set (
size_t index,
395 const std::vector <KnowledgeRecord::Integer> & value,
406 int set (
size_t index,
double value);
417 int set (
size_t index,
double value,
429 int set_index (
size_t index,
443 int set_index (
size_t index,
457 int set (
size_t index,
458 const double * value,
471 int set (
size_t index,
472 const double * value,
484 int set (
size_t index,
485 const std::vector <double> & value);
496 int set (
size_t index,
497 const std::vector <double> & value,
529 void set_quality (
size_t index, uint32_t quality,
561 bool is_true (
void)
const;
567 bool is_false (
void)
const;
575 virtual bool is_true_ (
void)
const;
581 virtual bool is_false_ (
void)
const;
591 virtual void modify_ (
void);
634 #endif // _MADARA_CONTAINERS_VECTOR_H_ This class encapsulates an entry in a KnowledgeBase.
Vector Array
provide the Array alias for the Vector class
VariableReference size_
Reference to the size field of the vector space.
MADARA_Export int read_file(const std::string &filename, void *&buffer, size_t &size, bool add_zero_char=false)
Reads a file into a provided void pointer.
ThreadSafeContext * context_
Variable context that we are modifying.
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.
std::vector< VariableReference > vector_
Values of the array.
Optimized reference to a variable within the knowledge base.
Provides container classes for fast knowledge base access and mutation.
::std::vector< KnowledgeRecord > KnowledgeVector
This class stores a vector of KaRL variables.
This class provides a distributed knowledge base to users.
This class stores thread-safe queue within the knowledge base.
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.