DNA Calib 1.1
Project brief
Public Member Functions | Protected Member Functions | List of all members
trio::Seekable Class Referenceabstract

#include <Concepts.h>

Inheritance diagram for trio::Seekable:
Inheritance graph
Collaboration diagram for trio::Seekable:
Collaboration graph

Public Member Functions

virtual std::uint64_t tell ()=0
 Get the current position in the stream. More...
 
virtual void seek (std::uint64_t position)=0
 Set the current position in the stream. More...
 

Protected Member Functions

virtual ~Seekable ()
 

Constructor & Destructor Documentation

◆ ~Seekable()

trio::Seekable::~Seekable ( )
protectedvirtualdefault

Member Function Documentation

◆ seek()

virtual void trio::Seekable::seek ( std::uint64_t  position)
pure virtual

Set the current position in the stream.

Parameters
positionPosition in the stream relative to it's start, with 0 denoting the start position.

Implemented in trio::FileStreamImpl, trio::MemoryMappedFileStreamFallback, and trio::MemoryStreamImpl.

Referenced by dna::FilteredInputArchive::processSubset().

◆ tell()

virtual std::uint64_t trio::Seekable::tell ( )
pure virtual

Get the current position in the stream.

Returns
Position in the stream relative to it's start, with 0 denoting the start position.

Implemented in trio::FileStreamImpl, trio::MemoryMappedFileStreamFallback, and trio::MemoryStreamImpl.

Referenced by dna::FilteredInputArchive::processSubset().


The documentation for this class was generated from the following files: