Gamgee
You miserable little maggot. I'll stove your head in!
|
Utility class to enable for-each style iteration in the VariantReader class. More...
#include <variant_iterator.h>
Public Member Functions | |
VariantIterator () | |
creates an empty iterator (used for the end() method) More... | |
VariantIterator (vcfFile *variant_file_ptr, const std::shared_ptr< bcf_hdr_t > &variant_header_ptr) | |
initializes a new iterator based on an input stream (e.g. sam/a file, stdin, ...) More... | |
VariantIterator (VariantIterator &&) | |
a VariantIterator move constructor guarantees all objects will have the same state. More... | |
bool | operator!= (const VariantIterator &rhs) |
inequality operator (needed by for-each loop) More... | |
Variant & | operator* () |
dereference operator (needed by for-each loop) More... | |
Variant & | operator++ () |
pre-fetches the next record and tests for end of file More... | |
Utility class to enable for-each style iteration in the VariantReader class.
gamgee::VariantIterator::VariantIterator | ( | ) |
creates an empty iterator (used for the end() method)
gamgee::VariantIterator::VariantIterator | ( | vcfFile * | variant_file_ptr, |
const std::shared_ptr< bcf_hdr_t > & | variant_header_ptr | ||
) |
initializes a new iterator based on an input stream (e.g. sam/a file, stdin, ...)
variant_file_ptr | pointer to a vcf/bcf file opened via the bcf_open() macro from htslib |
variant_header_ptr | shared pointer to a vcf/bcf file header created with the bcf_hdr_read() macro from htslib |
gamgee::VariantIterator::VariantIterator | ( | VariantIterator && | original | ) |
a VariantIterator move constructor guarantees all objects will have the same state.
bool gamgee::VariantIterator::operator!= | ( | const VariantIterator & | rhs | ) |
inequality operator (needed by for-each loop)
rhs | the other VariantIterator to compare to |
Variant & gamgee::VariantIterator::operator* | ( | ) |
dereference operator (needed by for-each loop)
Variant & gamgee::VariantIterator::operator++ | ( | ) |
pre-fetches the next record and tests for end of file