2 #ifndef _MADARA_KNOWLEDGE_CONTAINERS_INTEGERSTAGED_H_
3 #define _MADARA_KNOWLEDGE_CONTAINERS_INTEGERSTAGED_H_
7 #include "madara/LockType.h"
250 type operator++(
void);
257 type operator--(
void);
270 double to_double(
void)
const;
290 void set_quality(uint32_t quality,
316 bool is_true(
void)
const;
322 bool is_false(
void)
const;
329 virtual bool is_true_(
void)
const;
335 virtual bool is_false_(
void)
const;
345 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.
Stages an integer value to and from the knowledge base.
ThreadSafeContext * context_
Variable context that we are modifying.
type value_
The staged value.
bool has_changed_
Tracks if value_ has changed since last read.
knowledge::KnowledgeRecord::Integer type
trait that describes the value type
VariableReference variable_
Variable reference.
Provides container classes for fast knowledge base access and mutation.
Provides functions and classes for the distributed knowledge base.
auto operator==(const KnowledgeRecord &l, const T &r) -> decltype(knowledge_cast< T >(l)==r)
auto operator-=(KnowledgeRecord &l, const T &r) -> decltype(l -=knowledge_cast(r))
auto operator*(const KnowledgeRecord &l, const T &r) -> decltype(l *knowledge_cast(r))
auto operator>=(const KnowledgeRecord &l, const T &r) -> decltype(knowledge_cast< T >(l) >=r)
auto operator<(const KnowledgeRecord &l, const T &r) -> decltype(knowledge_cast< T >(l)< r)
auto operator!=(const KnowledgeRecord &l, const T &r) -> decltype(knowledge_cast< T >(l) !=r)
auto operator+=(KnowledgeRecord &l, const T &r) -> decltype(l+=knowledge_cast(r))
auto operator<=(const KnowledgeRecord &l, const T &r) -> decltype(knowledge_cast< T >(l)<=r)
auto operator>(const KnowledgeRecord &l, const T &r) -> decltype(knowledge_cast< T >(l) > r)
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.
Copyright(c) 2020 Galois.