2 #ifndef _MADARA_KNOWLEDGE_CONTAINERS_DOUBLESTAGED_H_ 3 #define _MADARA_KNOWLEDGE_CONTAINERS_DOUBLESTAGED_H_ 7 #include "madara/LockType.h" 173 type operator= (type value);
283 double to_double (
void)
const;
303 void set_quality (uint32_t quality,
330 bool is_true (
void)
const;
336 bool is_false (
void)
const;
344 virtual bool is_true_ (
void)
const;
350 virtual bool is_false_ (
void)
const;
360 virtual void modify_ (
void);
399 #endif // _MADARA_KNOWLEDGE_CONTAINERS_DOUBLESTAGED_H_ This class encapsulates an entry in a KnowledgeBase.
auto operator>=(const Tracked< T > &lhs, const Tracked< U > &rhs) -> decltype(lhs.get() >=rhs.get())
auto operator>(const Tracked< T > &lhs, const Tracked< U > &rhs) -> decltype(lhs.get() >rhs.get())
auto operator<=(const Tracked< T > &lhs, const Tracked< U > &rhs) -> decltype(lhs.get()<=rhs.get())
auto operator<(const Tracked< T > &lhs, const Tracked< U > &rhs) -> decltype(lhs.get()< rhs.get())
auto operator--(Tracked< T > &lhs) -> decltype(--lhs.get_mut())
auto operator+=(Tracked< T > &lhs, const Tracked< U > &rhs) -> decltype(lhs.get_mut()+=rhs.get())
This class stores variables and their values for use by any entity needing state information in a thr...
bool has_changed_
Tracks if value_ has changed since last read.
Optimized reference to a variable within the knowledge base.
Provides container classes for fast knowledge base access and mutation.
auto operator*(const Tracked< T > &lhs, const Tracked< U > &rhs) -> decltype(lhs.get()*rhs.get())
ThreadSafeContext * context_
Variable context that we are modifying.
This class provides a distributed knowledge base to users.
Stages an integer value to and from the knowledge base.
VariableReference variable_
Variable reference.
auto operator-=(Tracked< T > &lhs, const Tracked< U > &rhs) -> decltype(lhs.get_mut()-=rhs.get())
type value_
The staged value.
auto operator==(const Tracked< T > &lhs, const Tracked< U > &rhs) -> decltype(lhs.get()==rhs.get())
auto operator!=(const Tracked< T > &lhs, const Tracked< U > &rhs) -> decltype(lhs.get()!=rhs.get())
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.
auto operator++(Tracked< T > &lhs) -> decltype(++lhs.get_mut())
double type
trait that describes the value type