Child class of instream for creating documents from FASTA genome sequence files.
More...
#include <instream_document_fasta.h>
|
|
static void | unittest (void) |
| | Unit test this class.
|
| |
|
|
size_t | buffer_size |
| | Size of the disk read buffer. Normally 16MB.
|
| |
|
uint8_t * | buffer |
| | Pointer to the interal buffer from which documents are extracted. Filled by calling source.read()
|
| |
|
uint8_t * | buffer_end |
| | Pointer to the end of the buffer (used to prevent read past EOF).
|
| |
|
size_t | buffer_used |
| | The number of bytes of buffer that have already been used from buffer (buffer + buffer_used is a pointer to the unused data in buffer)
|
| |
|
std::shared_ptr< instream > | source |
| | If this object is reading from another instream then this is that instream.
|
| |
|
std::shared_ptr< allocator > | memory |
| | Any and all memory allocation must happen using this object.
|
| |
Child class of instream for creating documents from FASTA genome sequence files.
See the Wikipedia article on the FASTA file format here: https://en.wikipedia.org/wiki/FASTA_format
◆ instream_document_fasta() [1/3]
| JASS::instream_document_fasta::instream_document_fasta |
( |
std::shared_ptr< instream > & |
source, |
|
|
size_t |
buffer_size |
|
) |
| |
|
protected |
Protected constructor used to set the size of the internal buffer in the unittest.
- Parameters
-
| source | [in] The instream responsible for providing data to this class. |
| buffer_size | [in] The size of the internal buffer filled from source. |
◆ instream_document_fasta() [2/3]
Copy constructor (not available).
- Parameters
-
| previous | [in] The instance to copy. |
◆ instream_document_fasta() [3/3]
| JASS::instream_document_fasta::instream_document_fasta |
( |
std::shared_ptr< instream > & |
source | ) |
|
Constructor.
- Parameters
-
| source | [in] The instream responsible for providing data to this class. |
◆ fetch()
| void JASS::instream_document_fasta::fetch |
( |
void * |
buffer, |
|
|
size_t |
bytes |
|
) |
| |
|
inlineprotected |
Fetch another block of data from the source.
- Parameters
-
| buffer | [out] Write bytes amount of data into this memory location. |
| bytes | [in] Read this amount of data from the source. |
◆ read()
| void JASS::instream_document_fasta::read |
( |
document & |
buffer | ) |
|
|
virtual |
Read the next document from the source instream into document.
- Parameters
-
| buffer | [out] The next document in the source instream. |
Implements JASS::instream.
The documentation for this class was generated from the following files: