1 #ifndef gamgee__synced_variant_iterator__guard
2 #define gamgee__synced_variant_iterator__guard
70 std::shared_ptr<bcf_srs_t> m_synced_readers;
71 std::vector<Variant> m_variant_vector;
72 std::vector<std::shared_ptr<bcf_hdr_t>> m_headers_vector;
74 void init_headers_vector();
75 void fetch_next_record();
SyncedVariantIterator()
creates an empty iterator (used for the end() method)
Definition: synced_variant_iterator.cpp:11
Utility class to enable for-each style iteration in the SyncedVariantReader class.
Definition: synced_variant_iterator.h:16
std::vector< Variant > & operator*()
dereference operator (needed by for-each loop)
Definition: synced_variant_iterator.cpp:24
SyncedVariantIterator & operator=(SyncedVariantIterator &&other)=default
std::vector< Variant > & operator++()
pre-fetches the next vector and tests for end of file
Definition: synced_variant_iterator.cpp:28
Definition: exceptions.h:9
bool operator!=(const SyncedVariantIterator &rhs)
pseudo-inequality operator (needed by for-each loop)
Definition: synced_variant_iterator.cpp:35