Thrill  0.1
DynBlockSource Class Reference

Detailed Description

This is the actual BlockSource used to instantiate BlockReader.

The BlockSource holds a shared pointer to the polymorphic block source, which is derived from the above virtual base class.

Think of this class being embedded into the BlockReader and delivering Blocks via the virtual function class from whatever is attached.

Definition at line 49 of file dyn_block_reader.hpp.

+ Collaboration diagram for DynBlockSource:

#include <dyn_block_reader.hpp>

Public Member Functions

 DynBlockSource ()
 
 DynBlockSource (tlx::CountingPtr< DynBlockSourceInterface > &&block_source_ptr)
 
PinnedBlock NextBlock ()
 
void Prefetch (size_t size)
 

Private Attributes

tlx::CountingPtr< DynBlockSourceInterfaceblock_source_ptr_
 

Constructor & Destructor Documentation

◆ DynBlockSource() [1/2]

DynBlockSource ( )
inline

Definition at line 52 of file dyn_block_reader.hpp.

◆ DynBlockSource() [2/2]

DynBlockSource ( tlx::CountingPtr< DynBlockSourceInterface > &&  block_source_ptr)
inlineexplicit

Definition at line 54 of file dyn_block_reader.hpp.

Member Function Documentation

◆ NextBlock()

PinnedBlock NextBlock ( )
inline

Definition at line 58 of file dyn_block_reader.hpp.

◆ Prefetch()

void Prefetch ( size_t  size)
inline

Definition at line 62 of file dyn_block_reader.hpp.

Member Data Documentation

◆ block_source_ptr_

tlx::CountingPtr<DynBlockSourceInterface> block_source_ptr_
private

Definition at line 67 of file dyn_block_reader.hpp.


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