int set(const std::string &key, T &&value, const KnowledgeUpdateSettings &settings=KnowledgeUpdateSettings())
Atomically sets the value of a variable to the specific record.
VariableReference get_ref(const std::string &key, const KnowledgeReferenceSettings &settings=knowledge::KnowledgeReferenceSettings(false))
Retrieves the value of a variable.
Integer(const KnowledgeUpdateSettings &settings=KnowledgeUpdateSettings())
Default constructor.
std::string get_debug_info(void)
Returns the type of the container along with name and any other useful information.
void modify(void)
Mark the value as modified.
virtual ~Integer()
Destructor.
VariableReference variable_
Variable reference.
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 is_true(void) const
Determines if the value is true.
A thread-safe guard for a context or knowledge base.
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 ...
bool is_false(void) const
Determines if the value is zero.
This class provides a distributed knowledge base to users.
This class stores an integer within a variable context.
Provides functions and classes for the distributed knowledge base.
KnowledgeUpdateSettings settings_
Settings for modifications.
void exchange(containers::Integer &other)
Exchanges the integer at this location with the integer at another location.
virtual bool is_true_(void) const
Polymorphic is true method which can be used to determine if all values in the container are true...
knowledge::KnowledgeRecord::Integer type
trait that describes the value type
Settings for applying knowledge updates.
virtual void modify_(void)
Polymorphic modify method used by collection containers.
ThreadSafeContext * context_
Variable context that we are modifying.
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.