Thrill
0.1
|
Adapter class to wrap any existing BlockSource concept class into a DynBlockSourceInterface.
Definition at line 78 of file dyn_block_reader.hpp.
#include <dyn_block_reader.hpp>
Public Member Functions | |
DynBlockSourceAdapter (BlockSource &&block_source) | |
DynBlockSourceAdapter (const DynBlockSourceAdapter &)=delete | |
non-copyable: delete copy-constructor More... | |
DynBlockSourceAdapter (DynBlockSourceAdapter &&)=default | |
move-constructor: default More... | |
PinnedBlock | NextBlock () final |
DynBlockSourceAdapter & | operator= (const DynBlockSourceAdapter &)=delete |
non-copyable: delete assignment operator More... | |
DynBlockSourceAdapter & | operator= (DynBlockSourceAdapter &&)=default |
move-assignment operator: default More... | |
void | Prefetch (size_t size) final |
set number of blocks to prefetch More... | |
Public Member Functions inherited from DynBlockSourceInterface | |
virtual | ~DynBlockSourceInterface () |
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... | |
Private Attributes | |
BlockSource | block_source_ |
|
inlineexplicit |
Definition at line 81 of file dyn_block_reader.hpp.
References ReferenceCounter::operator=().
|
delete |
non-copyable: delete copy-constructor
|
default |
move-constructor: default
|
inlinefinalvirtual |
Implements DynBlockSourceInterface.
Definition at line 93 of file dyn_block_reader.hpp.
|
delete |
non-copyable: delete assignment operator
|
default |
move-assignment operator: default
|
inlinefinalvirtual |
set number of blocks to prefetch
Implements DynBlockSourceInterface.
Definition at line 97 of file dyn_block_reader.hpp.
|
private |
Definition at line 102 of file dyn_block_reader.hpp.