2 #ifndef _MADARA_CONTAINERS_MAP_H_ 3 #define _MADARA_CONTAINERS_MAP_H_ 8 #include "madara/LockType.h" 98 void operator= (
const Map & rhs);
108 void exchange (
Map & other,
109 bool refresh_keys =
true,
bool delete_keys =
true);
133 size_t size (
void)
const;
140 std::vector <std::string> sync_keys (
void);
146 void keys (std::vector <std::string> & curkeys)
const;
160 bool has_prefix (
const std::string & prefix)
const;
178 Variables & knowledge,
bool sync =
true);
206 void clear (
bool clear_knowledge =
true);
322 const std::vector <KnowledgeRecord::Integer> & value);
334 const std::vector <KnowledgeRecord::Integer> & value,
397 const double * value,
411 const double * value,
424 const std::vector <double> & value);
436 const std::vector <double> & value,
469 const unsigned char * value,
size_t size);
480 const unsigned char * value,
size_t size,
491 const unsigned char * value,
size_t size);
502 const unsigned char * value,
size_t size,
512 void set_quality (
const std::string & key, uint32_t quality,
538 bool is_true (
void)
const;
544 bool is_false (
void)
const;
552 virtual bool is_true_ (
void)
const;
558 virtual bool is_false_ (
void)
const;
568 virtual void modify_ (
void);
606 #endif // _MADARA_CONTAINERS_MAP_H_ This class encapsulates an entry in a KnowledgeBase.
ThreadSafeContext * context_
Variable context that we are modifying.
std::map< std::string, VariableReference > InternalMap
internal map of variable references
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.
This class stores variables and their values for use by any entity needing state information in a thr...
Provides container classes for fast knowledge base access and mutation.
std::string delimiter_
Delimiter for the prefix to subvars.
This class stores a map of strings to KaRL variables.
This class provides a distributed knowledge base to users.
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.
InternalMap map_
Map of variables to values.