2 #ifndef _MADARA_CONTAINERS_BUFFER_VECTOR_H_
3 #define _MADARA_CONTAINERS_BUFFER_VECTOR_H_
7 #include "madara/LockType.h"
53 bool delete_vars =
true,
67 bool delete_vars =
true,
92 void modify(
size_t index);
106 void push_back(
const unsigned char* value,
size_t size);
114 void resize(
int size = -1,
bool delete_vars =
true);
125 BufferVector& other,
bool refresh_keys =
true,
bool delete_keys =
true);
144 size_t size(
void)
const;
215 bool exists(
size_t index)
const;
249 int set_file(
size_t index,
const unsigned char* value,
size_t size);
260 int set_file(
size_t index,
const unsigned char* value,
size_t size,
270 int set_jpeg(
size_t index,
const unsigned char* value,
size_t size);
280 int set_jpeg(
size_t index,
const unsigned char* value,
size_t size,
290 void set_quality(
size_t index, uint32_t quality,
322 bool is_true(
void)
const;
328 bool is_false(
void)
const;
335 virtual bool is_true_(
void)
const;
341 virtual bool is_false_(
void)
const;
351 virtual void modify_(
void);
This class provides a distributed knowledge base to users.
This class encapsulates an entry in a KnowledgeBase.
Settings for applying knowledge updates.
Settings for applying knowledge updates.
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 an interface for external functions into the MADARA KaRL variable settings.
This class is an abstract base class for all containers.
This class stores a vector of character buffers.
std::vector< VariableReference > vector_
Values of the array.
std::string delimiter_
Delimiter for the prefix to subvars.
VariableReference size_
Reference to the size field of the vector space.
ThreadSafeContext * context_
Variable context that we are modifying.
Provides container classes for fast knowledge base access and mutation.
BufferVector BufferArray
provide the Array alias for the BufferVector class
Provides functions and classes for the distributed knowledge base.
::std::vector< KnowledgeRecord > KnowledgeVector
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.
int read_file(const std::string &filename, void *&buffer, size_t &size, bool add_zero_char)
Reads a file into a provided void pointer.
Copyright(c) 2020 Galois.