6 :
BaseContainer (
"", settings), context_ (0), value_ (0), has_changed_ (false)
int set(const std::string &key, T &&value, const KnowledgeUpdateSettings &settings=KnowledgeUpdateSettings())
Atomically sets the value of a variable to the specific record.
knowledge::KnowledgeRecord::Integer type
trait that describes the value type
void exchange(IntegerStaged &other)
Exchanges the integer at this location with the integer at another location.
void write(void)
Writes the value to the knowledge base.
IntegerStaged(const KnowledgeUpdateSettings &settings=KnowledgeUpdateSettings())
Default constructor.
VariableReference get_ref(const std::string &key, const KnowledgeReferenceSettings &settings=knowledge::KnowledgeReferenceSettings(false))
Retrieves the value of a variable.
std::string get_debug_info(void)
Returns the type of the container along with name and any other useful information.
virtual bool is_false_(void) const
Polymorphic is false method which can be used to determine if at least one value in the container is ...
void modify(void)
Mark the value as modified.
MADARA_LOCK_TYPE mutex_
guard for access and changes
virtual std::string get_debug_info_(void)
Returns the type of the container along with name and any other useful information.
bool has_changed_
Tracks if value_ has changed since last read.
ThreadSafeContext * context_
Variable context that we are modifying.
madara::knowledge::KnowledgeRecord get(const std::string &key, const KnowledgeReferenceSettings &settings=KnowledgeReferenceSettings(false))
Retrieves a knowledge value.
virtual bool is_true_(void) const
Polymorphic is true method which can be used to determine if all values in the container are true...
bool is_false(void) const
Determines if the value is zero.
VariableReference variable_
Variable reference.
A thread-safe guard for a context or knowledge base.
virtual ~IntegerStaged()
Destructor.
This class provides a distributed knowledge base to users.
bool is_true(void) const
Determines if the value is true.
Stages an integer value to and from the knowledge base.
Integer to_integer(void) const
converts the value to an integer
virtual void modify_(void)
Polymorphic modify method used by collection containers.
Provides functions and classes for the distributed knowledge base.
KnowledgeUpdateSettings settings_
Settings for modifications.
Settings for applying knowledge updates.
type value_
The staged value.
knowledge::KnowledgeRecord get(const std::string &key, const KnowledgeReferenceSettings &settings=knowledge::KnowledgeReferenceSettings(false))
Retrieves the value of a variable.
Provides an interface for external functions into the MADARA KaRL variable settings.
This class is an abstract base class for all containers.
VariableReference get_ref(const std::string &key, const KnowledgeReferenceSettings &settings=KnowledgeReferenceSettings(false))
Atomically returns a reference to the variable.