24#ifndef ITERATOR_INCLUDED
25#define ITERATOR_INCLUDED
31template <
typename Data_extension>
39 end_(datacache.end()),
46 end_(datacache.end()),
51 for (std::pair<meta::Metadata, Data_extension> element : datacache)
52 metadata_.store(element.first, element.second);
Definition: iterator.h:32
cache::Cache< Data_extension >::const_iterator get_iterator() const
Get iterator.
Definition: iterator.h:63
bool valid_
validity of the iterator
Definition: iterator.h:120
cache::Cache< Data_extension >::const_iterator it_
Const Iterator.
Definition: iterator.h:114
bool iterator_valid(size_t version)
Internal validity checker.
Definition: iterator.h:105
bool next(size_t version)
Move iterator forward.
Definition: iterator.h:68
cache::Datacache< Data_extension > metadata_
Local copy.
Definition: iterator.h:124
size_t version_
Iterator version.
Definition: iterator.h:118
Iterator(const cache::Datacache< Data_extension > &datacache, const meta::Metadata &metadata)
Definition: iterator.h:36
cache::Cache< Data_extension >::const_iterator end_
End.
Definition: iterator.h:116
bool metadata(size_t version, meta::Metadata &metadata)
Definition: iterator.h:78
bool data(size_t version, Data_extension &data)
Definition: iterator.h:88
bool cached_
Iterator type.
Definition: iterator.h:122
bool valid(size_t version)
Definition: iterator.h:98
Iterator(const cache::Datacache< Data_extension > &datacache, bool cached)
Definition: iterator.h:44
~Iterator()
Destructor.
Definition: iterator.h:60
Iterator()
Constructor.
Definition: iterator.h:35
std::unordered_map< meta::Metadata, Data_extension, meta::Metadata::Hash > Cache
Definition: cache.h:37
Definition: iterator.h:29
const char * begin(const char *const c)
Definition: base64.h:44
required uint64 version
Definition: replication_group_member_actions.proto:41
static double cached
Definition: xcom_statistics.cc:101