Class
LimitRecordReaderInScope
manipulates a RecordReader -Object so that it operates only on one buffer
LimitRecordReaderInScope<TStream, TSpec>
Include Headers
seqan/stream.h
Parameters

TStream | The StreamConcept of the RecordReader. Types: StreamConcept
TSpec | The specialization of the RecordReader. Types: 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.
See Also
RecordReader, guessStreamFormat
SeqAn - Sequence Analysis Library - www.seqan.de

Page built @2014/10/13 16:12:56