Concept StreamConcept
Base concept for streams.

All Subcl's BidirectionalStreamConcept, InputStreamConcept, OutputStreamConcept
Defined in <seqan/basic.h>
Signature concept StreamConcept;

Interface Function Overview

Interface Metafunction Overview

Interface Functions Detail

bool atEnd(stream);

Return whether stream is at the end.

Parameters

stream The stream to check.

Returns

bool true if the file at EOF, false otherwise.

Data Races

Thread safety unknown!

TDirIter directionIterator(stream, dirTag);

Returns direction iterator for Stream.

Parameters

stream The StreamConcept object to compute iterator for.
dirTag Direction tag, one of the DirectionTags.

Data Races

Thread safety unknown!

TPosition position(stream);

Return current stream position.

Parameters

stream The stream to query.

Returns

TPosition Current position in stream, see Position.

Data Races

Thread safety unknown!

void setPosition(stream, pos);

Set stream position.

Parameters

stream The stream to update
pos The positoin to set.

Data Races

Thread safety unknown!

Interface Metafunctions Detail

DirectionIterator<TStream>::Type;

Return the direction iterator for the given direction.

Template Parameters

TStream The stream to query for its direction iterator.

Returns

Type The resulting direction iterator.

Position<TStream>::Type;

Metafunction for retrieving the position type of a stream.

Template Parameters

TStream The stream type to query for its position type.

Returns

Type The resulting position type.

Size<TStream>::Type;

Metafunction for retrieving the type of a stream.

Template Parameters

TStream The stream type to query for its size type.

Returns

Type The resulting size type.

Value<TStream>::Type;

Metafunction for retrieving the value type of a stream.

Template Parameters

TStream The stream type to query for its value type.

Returns

Type The resulting value type.