Thrill
0.1
|
Reader object from any source.
Streams can be created for any supported URI and seek to the given range's offset.
Definition at line 120 of file file_io.hpp.
#include <file_io.hpp>
Public Member Functions | |
virtual | ~ReadStream () |
virtual void | close ()=0 |
close stream, release resources. More... | |
virtual ssize_t | read (void *data, size_t size)=0 |
read up to size bytes from stream. More... | |
Public Member Functions inherited from ReferenceCounter | |
ReferenceCounter () noexcept | |
new objects have zero reference count More... | |
ReferenceCounter (const ReferenceCounter &) noexcept | |
coping still creates a new object with zero reference count More... | |
~ReferenceCounter () | |
bool | dec_reference () const noexcept |
Call whenever resetting (i.e. More... | |
void | inc_reference () const noexcept |
Call whenever setting a pointer to the object. More... | |
ReferenceCounter & | operator= (const ReferenceCounter &) noexcept |
assignment operator, leaves pointers unchanged More... | |
size_t | reference_count () const noexcept |
Return the number of references to this object (for debugging) More... | |
bool | unique () const noexcept |
Test if the ReferenceCounter is referenced by only one CountingPtr. More... | |
|
virtual |
Definition at line 178 of file file_io.cpp.
|
pure virtual |
close stream, release resources.
|
pure virtual |
read up to size bytes from stream.