Thrill  0.1
ReadStream Class Referenceabstract

Detailed Description

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.

+ Inheritance diagram for ReadStream:
+ Collaboration diagram for ReadStream:

#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...
 
ReferenceCounteroperator= (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...
 

Constructor & Destructor Documentation

◆ ~ReadStream()

~ReadStream ( )
virtual

Definition at line 178 of file file_io.cpp.

Member Function Documentation

◆ close()

virtual void close ( )
pure virtual

close stream, release resources.

◆ read()

virtual ssize_t read ( void *  data,
size_t  size 
)
pure virtual

read up to size bytes from stream.


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