Class
LimitRecordReaderInScope
manipulates a RecordReader -Object so that it operates only on one buffer
LimitRecordReaderInScope<TStream, TSpec>
Include Headers
seqan/stream.h
Parameters
TStream
TSpec
The specialization of the RecordReader.
Remarks
This class is intended for situations, where you do not wish the RecordReader to rebuffer and where you wish to return to the original reading position after reading, e.g. when detecting the file format of the stream.
It is used by passing the RecordReader-object on construction (this already does the necessary changes in the RecordReader). Upon deconstruction of this object, the RecordReader is reset to its original state, including all iterators.
This works on all RecordReader-objects, independent of the underlying stream-object. It also works, if the underlying stream does not support seeking.
SeqAn - Sequence Analysis Library - www.seqan.de
 

Page built @2013/07/11 09:12:34