7 :
BaseContainer (
"", settings), context_ (0), has_changed_ (false)
11 "NativeDoubleVectorStaged::constructor: new object\n");
24 "NativeDoubleVectorStaged::constructor called for %s[%d]\n",
43 "NativeDoubleVectorStaged::constructor called for %s[%d]\n",
60 "NativeDoubleVectorStaged::copy constructor called on %s\n",
69 "NativeDoubleVectorStaged::destructor called on %s\n",
70 this->
name_.c_str ());
80 "NativeDoubleVectorStaged::clone: cloning %s\n",
81 this->
name_.c_str ());
bool has_changed_
Tracks if value_ has changed since last read.
VariableReference get_ref(const std::string &key, const KnowledgeReferenceSettings &settings=knowledge::KnowledgeReferenceSettings(false))
Retrieves the value of a variable.
void resize(size_t size)
Resizes the vector.
virtual void modify_(void)
Polymorphic modify method used by collection containers.
This class stores a vector of doubles inside of KaRL.
std::string name_
Prefix of variable.
bool is_true(void) const
Determines if all values in the vector are true.
VariableReference vector_
Reference to the size field of the vector space.
void write(void)
Writes the value to the knowledge base.
MADARA_Export utility::Refcounter< logger::Logger > global_logger
void modify(void)
Mark the value as modified.
size_t size(void) const
Returns the size of the vector.
virtual bool is_true_(void) const
Polymorphic is true method which can be used to determine if all values in the container are true...
virtual BaseContainer * clone(void) const
Clones this container.
ThreadSafeContext * context_
Variable context that we are modifying.
#define madara_logger_ptr_log(logger, level,...)
Fast version of the madara::logger::log method for Logger pointers.
This class provides a distributed knowledge base to users.
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 ...
virtual ~NativeDoubleVectorStaged()
Destructor.
Provides functions and classes for the distributed knowledge base.
KnowledgeUpdateSettings settings_
Settings for modifications.
Settings for applying knowledge updates.
bool is_false(void) const
Determines if the value of the vector is false.
Provides an interface for external functions into the MADARA KaRL variable settings.
This class is an abstract base class for all containers.
NativeDoubleVectorStaged(const KnowledgeUpdateSettings &settings=KnowledgeUpdateSettings())
Default constructor.
VariableReference get_ref(const std::string &key, const KnowledgeReferenceSettings &settings=KnowledgeReferenceSettings(false))
Atomically returns a reference to the variable.