24#ifndef ITERATOR_INCLUDED
25#define ITERATOR_INCLUDED
32template <
typename Data_extension>
40 end_(datacache.end()),
47 end_(datacache.end()),
52 for (std::pair<meta::Metadata, Data_extension> element : datacache)
53 metadata_.store(element.first, element.second);
Definition: iterator.h:33
cache::Cache< Data_extension >::const_iterator get_iterator() const
Get iterator.
Definition: iterator.h:64
bool valid_
validity of the iterator
Definition: iterator.h:121
cache::Cache< Data_extension >::const_iterator it_
Const Iterator.
Definition: iterator.h:115
bool iterator_valid(size_t version)
Internal validity checker.
Definition: iterator.h:106
bool next(size_t version)
Move iterator forward.
Definition: iterator.h:69
cache::Datacache< Data_extension > metadata_
Local copy.
Definition: iterator.h:125
size_t version_
Iterator version.
Definition: iterator.h:119
Iterator(const cache::Datacache< Data_extension > &datacache, const meta::Metadata &metadata)
Definition: iterator.h:37
cache::Cache< Data_extension >::const_iterator end_
End.
Definition: iterator.h:117
bool metadata(size_t version, meta::Metadata &metadata)
Definition: iterator.h:79
bool data(size_t version, Data_extension &data)
Definition: iterator.h:89
bool cached_
Iterator type.
Definition: iterator.h:123
bool valid(size_t version)
Definition: iterator.h:99
Iterator(const cache::Datacache< Data_extension > &datacache, bool cached)
Definition: iterator.h:45
~Iterator()
Destructor.
Definition: iterator.h:61
Iterator()
Constructor.
Definition: iterator.h:36
std::unordered_map< meta::Metadata, Data_extension, meta::Metadata::Hash > Cache
Definition: cache.h:38
Definition: keyring_encryption_service_definition.h:32
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