Thrill  0.1
DynBlockSourceAdapter< BlockSource > Class Template Referencefinal

Detailed Description

template<typename BlockSource>
class thrill::data::DynBlockSourceAdapter< BlockSource >

Adapter class to wrap any existing BlockSource concept class into a DynBlockSourceInterface.

Definition at line 78 of file dyn_block_reader.hpp.

+ Inheritance diagram for DynBlockSourceAdapter< BlockSource >:
+ Collaboration diagram for DynBlockSourceAdapter< BlockSource >:

#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
 
DynBlockSourceAdapteroperator= (const DynBlockSourceAdapter &)=delete
 non-copyable: delete assignment operator More...
 
DynBlockSourceAdapteroperator= (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...
 
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...
 

Private Attributes

BlockSource block_source_
 

Constructor & Destructor Documentation

◆ DynBlockSourceAdapter() [1/3]

DynBlockSourceAdapter ( BlockSource &&  block_source)
inlineexplicit

Definition at line 81 of file dyn_block_reader.hpp.

References ReferenceCounter::operator=().

◆ DynBlockSourceAdapter() [2/3]

DynBlockSourceAdapter ( const DynBlockSourceAdapter< BlockSource > &  )
delete

non-copyable: delete copy-constructor

◆ DynBlockSourceAdapter() [3/3]

DynBlockSourceAdapter ( DynBlockSourceAdapter< BlockSource > &&  )
default

move-constructor: default

Member Function Documentation

◆ NextBlock()

PinnedBlock NextBlock ( )
inlinefinalvirtual

Implements DynBlockSourceInterface.

Definition at line 93 of file dyn_block_reader.hpp.

◆ operator=() [1/2]

DynBlockSourceAdapter& operator= ( const DynBlockSourceAdapter< BlockSource > &  )
delete

non-copyable: delete assignment operator

◆ operator=() [2/2]

DynBlockSourceAdapter& operator= ( DynBlockSourceAdapter< BlockSource > &&  )
default

move-assignment operator: default

◆ Prefetch()

void Prefetch ( size_t  size)
inlinefinalvirtual

set number of blocks to prefetch

Implements DynBlockSourceInterface.

Definition at line 97 of file dyn_block_reader.hpp.

Member Data Documentation

◆ block_source_

BlockSource block_source_
private

Definition at line 102 of file dyn_block_reader.hpp.


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