MADARA
3.4.1
|
Helper class for iterating over VariableReferenceMaps, optionally including history of changed records, since a given TOI. More...
#include <VariableReference.h>
Classes | |
class | const_iterator |
Constant Input Iterator over values in the map. More... | |
Public Member Functions | |
VariableReferenceMapReader (const VariableReferenceMap &map, bool history=false, uint64_t min_toi=0) | |
Primary constructor. More... | |
const_iterator | begin () const |
const_iterator | end () const |
Private Attributes | |
bool | history_ = false |
True if iteration should include history. More... | |
const VariableReferenceMap & | map_ |
Map to iterate over. More... | |
uint64_t | min_toi_ = 0 |
Only iterate updates with TOI > this value. More... | |
Helper class for iterating over VariableReferenceMaps, optionally including history of changed records, since a given TOI.
This is NOT thread safe. Only use this reader if the KnowledgeBase the map points into is locked by the current thread. Do not modify the map, or the KnowledgeBase, while using this reader.
Definition at line 120 of file VariableReference.h.
|
inline |
Primary constructor.
Keeps a reference to map, so ensure this reader doesn't outlive it.
map | the map to iterate over |
history | if true, include historical values. Otherwise, only iterate over latest value of any records. |
min_toi | only iterate over historical values of TOI > this. If a record has no history capacity, it will always be included. |
Definition at line 133 of file VariableReference.h.
|
inline |
Definition at line 292 of file VariableReference.h.
|
inline |
Definition at line 297 of file VariableReference.h.
|
private |
True if iteration should include history.
Definition at line 307 of file VariableReference.h.
|
private |
Map to iterate over.
Definition at line 304 of file VariableReference.h.
|
private |
Only iterate updates with TOI > this value.
Definition at line 310 of file VariableReference.h.