Gamgee
You miserable little maggot. I'll stove your head in!
|
Utility class to read a SAM/BAM/CRAM file with an appropriate Sam iterator from a stream (e.g. file, stdin, ...) in a for-each loop. More...
#include <sam_reader.h>
Public Member Functions | |
SamReader (const std::string &filename) | |
reads through all records in a file ( or sam) parsing them into Sam objects More... | |
SamReader (const std::vector< std::string > &filenames) | |
reads through all records in a file ( or sam) parsing them into Sam objects More... | |
SamReader (const SamReader &other)=delete | |
no copy construction/assignment allowed for iterators and readers More... | |
SamReader & | operator= (const SamIterator &)=delete |
SamReader (SamReader &&)=default | |
a SamReader move constructor guarantees all objects will have the same state. More... | |
SamReader & | operator= (SamReader &&)=default |
ITERATOR | begin () |
creates a ITERATOR pointing at the start of the input stream (needed by for-each loop) More... | |
ITERATOR | end () |
creates a ITERATOR with a nullified input stream (needed by for-each loop) More... | |
SamHeader | header () |
Utility class to read a SAM/BAM/CRAM file with an appropriate Sam iterator from a stream (e.g. file, stdin, ...) in a for-each loop.
This class is designed to parse the file in for-each loops with the following signature:
You can also use it with the stdin or any other stream by using the default constructor or passing in an empty string for a filename, like so:
Most iterators have aliases defined by this module so you can use it like so:
|
inline |
reads through all records in a file ( or sam) parsing them into Sam objects
filename | the name of the sam file |
|
inline |
reads through all records in a file ( or sam) parsing them into Sam objects
filenames | a vector containing a single element: the name of the sam file |
|
delete |
no copy construction/assignment allowed for iterators and readers
|
default |
a SamReader move constructor guarantees all objects will have the same state.
|
inline |
creates a ITERATOR pointing at the start of the input stream (needed by for-each loop)
|
inline |
creates a ITERATOR with a nullified input stream (needed by for-each loop)
|
inline |
|
delete |
|
default |