![]() |
eXpress “1.5”
|
The Parser class is an abstract class for implementing a SAMParser or BAMParser. More...
#include <mapparser.h>
Public Member Functions | |
| virtual | ~Parser () |
| Dummy destructor. | |
| virtual const std::string | header () const =0 |
| An accessor for the SAM header string. | |
| const TransIndex & | targ_index () const |
| An accessor for the target name to index map. | |
| const TransIndex & | targ_lengths () const |
| An accessor for the target-to-length map. | |
| virtual bool | next_fragment (Fragment &f)=0 |
| A member function that loads all mappings of the next fragment into the given Fragment object. | |
| virtual void | reset ()=0 |
| A member function that resets the parser and rewinds to the beginning of the input. | |
Protected Attributes | |
| TransIndex | _targ_index |
| The private target-to-index map. | |
| TransIndex | _targ_lengths |
| The private target-to-length map. | |
| ReadHit * | _read_buff |
| A private pointer to the current/last read mapping being parsed. | |
The Parser class is an abstract class for implementing a SAMParser or BAMParser.
It fills Fragment objects by parsing an input file in SAM/BAM format.
Definition at line 39 of file mapparser.h.
| virtual const std::string Parser::header | ( | ) | const [pure virtual] |
| virtual bool Parser::next_fragment | ( | Fragment & | f | ) | [pure virtual] |
| const TransIndex& Parser::targ_index | ( | ) | const [inline] |
An accessor for the target name to index map.
Returns a reference that does not outlive this.
Definition at line 69 of file mapparser.h.
| const TransIndex& Parser::targ_lengths | ( | ) | const [inline] |
An accessor for the target-to-length map.
Returns a reference that does not outlive this.
Definition at line 75 of file mapparser.h.