2 #ifndef _MADARA_COMPOSITE_ARRAY_REFERENCE_ 3 #define _MADARA_COMPOSITE_ARRAY_REFERENCE_ 5 #ifndef _MADARA_NO_KARL_ 63 int set (
double value,
126 #endif // _MADARA_NO_KARL_ This class encapsulates an entry in a KnowledgeBase.
std::vector< std::string > splitters_
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prune the tree of unnecessary nodes.
const std::string key_
Key for retrieving value of this variable.
knowledge::KnowledgeRecord inc(const madara::knowledge::KnowledgeUpdateSettings &settings=knowledge::KnowledgeUpdateSettings())
Sets the value stored in the node.
const std::string & key(void) const
Return the variable key.
This class stores variables and their values for use by any entity needing state information in a thr...
virtual void accept(Visitor &visitor) const
Define the accept() operation used for the Visitor pattern.
std::vector< std::string > pivot_list_
virtual madara::knowledge::KnowledgeRecord item(void) const
Return the item stored in the node.
bool key_expansion_necessary_
Expansion necessary.
madara::knowledge::KnowledgeRecord * record_
madara::knowledge::KnowledgeRecord * get_record(void)
Retrieves the underlying knowledge::KnowledgeRecord in the context (useful for system calls)...
An abstract base class defines a simple abstract implementation of an expression tree node...
Abstract base class for all visitors to all classes that derive from ComponentNode.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the node and its children.
CompositeArrayReference(const std::string &key, ComponentNode *index, madara::knowledge::ThreadSafeContext &context)
Constructor.
knowledge::KnowledgeRecord dec(const madara::knowledge::KnowledgeUpdateSettings &settings=knowledge::KnowledgeUpdateSettings())
Sets the value stored in the node.
std::vector< std::string > tokens_
KnowledgeRecord * get_record(const std::string &key, const KnowledgeReferenceSettings &settings=KnowledgeReferenceSettings())
Retrieves a knowledge record from the key.
madara::knowledge::ThreadSafeContext & context_
virtual ~CompositeArrayReference(void)
Dtor.
Settings for applying knowledge updates.
Encapsulates a single expression tree.
Copyright (c) 2015 Carnegie Mellon University.
std::string expand_key(void) const
Expands the key (if necessary).
Defines a terminal node of that references the current value stored in a variable.