Utility class to enable for-each style iteration in the SyncedVariantReader class.
More...
#include <synced_variant_iterator.h>
Utility class to enable for-each style iteration in the SyncedVariantReader class.
gamgee::SyncedVariantIterator::SyncedVariantIterator |
( |
| ) |
|
creates an empty iterator (used for the end() method)
gamgee::SyncedVariantIterator::SyncedVariantIterator |
( |
const std::shared_ptr< bcf_srs_t > & |
synced_readers | ) |
|
initializes a new iterator based on a structure of synced vcf/bcf file readers
- Parameters
-
synced_readers | an htslib structure of synced vcf/bcf file readers created using the bcf_sr_init() function |
pseudo-inequality operator (needed by for-each loop)
- Warning
- this method does the minimal work necessary to determine that we have reached the end of iteration. it is NOT a valid general-purpose inequality method.
- Parameters
-
- Returns
- whether both iterators have entered their end states
std::vector< Variant > & gamgee::SyncedVariantIterator::operator* |
( |
| ) |
|
dereference operator (needed by for-each loop)
- Returns
- a persistent Variant vector independent from the iterator (a copy of the iterator's vector)
std::vector< Variant > & gamgee::SyncedVariantIterator::operator++ |
( |
| ) |
|
pre-fetches the next vector and tests for end of file
- Returns
- a reference to the vector
The documentation for this class was generated from the following files: