1 #ifndef gamgee__sam_iterator__guard
2 #define gamgee__sam_iterator__guard
29 SamIterator(
const std::shared_ptr<htsFile>& sam_file_ptr,
const std::shared_ptr<bam_hdr_t>& sam_header_ptr);
69 std::shared_ptr<htsFile> m_sam_file_ptr;
70 std::shared_ptr<bam_hdr_t> m_sam_header_ptr;
71 std::shared_ptr<bam1_t> m_sam_record_ptr;
74 void fetch_next_record();
79 #endif // gamgee__sam_iterator__guard
SamIterator & operator=(const SamIterator &)=delete
SamIterator()
creates an empty iterator (used for the end() method)
Definition: sam_iterator.cpp:10
Utility class to enable for-each style iteration in the SamReader class.
Definition: sam_iterator.h:15
Sam & operator*()
dereference operator (needed by for-each loop)
Definition: sam_iterator.cpp:25
Definition: exceptions.h:9
Utility class to manipulate a Sam record.
Definition: sam.h:20
Sam & operator++()
pre-fetches the next record and tests for end of file
Definition: sam_iterator.cpp:29
bool operator!=(const SamIterator &rhs)
inequality operator (needed by for-each loop)
Definition: sam_iterator.cpp:34