1 #ifndef _MADARA_VARIABLE_REFERENCE_INL_
2 #define _MADARA_VARIABLE_REFERENCE_INL_
24 return !(*
this == rhs);
33 return entry_->first.c_str();
60 for (
const auto& pair : records)
67 max = std::max<uint32_t>(rec->
quality, max);
This class encapsulates an entry in a KnowledgeBase.
uint32_t quality
priority of the update
Optimized reference to a variable within the knowledge base.
const char * get_name(void) const
Returns the name of the variable.
bool is_valid(void) const
Checks to see if the variable reference has been initialized.
bool operator!=(const VariableReference &rhs) const
Inequality operator.
KnowledgeRecord * get_record_unsafe(void) const
Returns a pointer to the variable's KnowledgeRecord Do not use this pointer unless you've locked the ...
bool operator==(const VariableReference &rhs) const
Equality operator.
VariableReference()=default
Default constructor.
KnowledgeMap::value_type * pair_ptr
void assign(pair_ptr entry)
Refer to a different variable.
Provides functions and classes for the distributed knowledge base.
uint32_t max_quality(const KnowledgeRecords &records)
Returns the maximum quality within the records.
std::map< const char *, VariableReference, utility::ComparisonLessThan > VariableReferenceMap
a map of variable references
Copyright(c) 2020 Galois.