Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
block_scheduler_algorithm< SwappableBlockType > Class Template Referenceabstract

Detailed Description

template<class SwappableBlockType>
class foxxll::block_scheduler_algorithm< SwappableBlockType >

Interface of a block scheduling algorithm.

Definition at line 250 of file block_scheduler.hpp.

+ Inheritance diagram for block_scheduler_algorithm< SwappableBlockType >:
+ Collaboration diagram for block_scheduler_algorithm< SwappableBlockType >:

#include <block_scheduler.hpp>

Public Member Functions

 block_scheduler_algorithm (block_scheduler_type &bs)
 
 block_scheduler_algorithm (block_scheduler_algorithm *old)
 
 block_scheduler_algorithm (const block_scheduler_algorithm &)=delete
 non-copyable: delete copy-constructor More...
 
virtual ~block_scheduler_algorithm ()
 
virtual internal_block_typeacquire (const swappable_block_identifier_type sbid, const bool uninitialized=false)=0
 
virtual void deinitialize (swappable_block_identifier_type sbid)=0
 
virtual bool evictable_blocks_empty ()=0
 
virtual
swappable_block_identifier_type 
evictable_blocks_pop ()=0
 
virtual void explicit_timestep ()
 
virtual external_block_type extract_external_block (swappable_block_identifier_type sbid)=0
 
virtual const
prediction_sequence_type
get_prediction_sequence () const
 
virtual void initialize (swappable_block_identifier_type sbid, external_block_type eblock)=0
 
virtual bool is_initialized (const swappable_block_identifier_type sbid) const
 
virtual bool is_simulating () const
 
block_scheduler_algorithmoperator= (const block_scheduler_algorithm &)=delete
 non-copyable: delete assignment operator More...
 
virtual void release (swappable_block_identifier_type sbid, const bool dirty)=0
 
virtual void swappable_blocks_resize (swappable_block_identifier_type)
 

Public Attributes

block_scheduler_typebs
 

Protected Types

using block_scheduler_type = block_scheduler< SwappableBlockType >
 
using external_block_type = typename block_scheduler_type::external_block_type
 
using internal_block_type = typename block_scheduler_type::internal_block_type
 
using prediction_sequence_type = typename block_scheduler_type::prediction_sequence_type
 
using swappable_block_identifier_type = typename block_scheduler_type::swappable_block_identifier_type
 
using time_type = typename block_scheduler_type::time_type
 

Protected Member Functions

block_scheduler_algorithmget_algorithm_from_block_scheduler ()
 
internal_block_typeget_free_internal_block_from_block_scheduler ()
 
void return_free_internal_block_to_block_scheduler (internal_block_type *iblock)
 Return an internal_block to the block_scheduler. More...
 

Protected Attributes

prediction_sequence_type prediction_sequence
 
std::vector< SwappableBlockType > & swappable_blocks
 

Member Typedef Documentation

using block_scheduler_type = block_scheduler<SwappableBlockType>
protected

Definition at line 546 of file block_scheduler.hpp.

Definition at line 548 of file block_scheduler.hpp.

Definition at line 547 of file block_scheduler.hpp.

using time_type = typename block_scheduler_type::time_type
protected

Definition at line 551 of file block_scheduler.hpp.

Constructor & Destructor Documentation

Definition at line 573 of file block_scheduler.hpp.

block_scheduler_algorithm ( block_scheduler_algorithm< SwappableBlockType > *  old)
inlineexplicit

Definition at line 578 of file block_scheduler.hpp.

block_scheduler_algorithm ( const block_scheduler_algorithm< SwappableBlockType > &  )
delete

non-copyable: delete copy-constructor

virtual ~block_scheduler_algorithm ( )
inlinevirtual

Definition at line 588 of file block_scheduler.hpp.

Member Function Documentation

virtual void explicit_timestep ( )
inlinevirtual
virtual bool is_initialized ( const swappable_block_identifier_type  sbid) const
inlinevirtual
virtual bool is_simulating ( ) const
inlinevirtual
block_scheduler_algorithm& operator= ( const block_scheduler_algorithm< SwappableBlockType > &  )
delete

non-copyable: delete assignment operator

virtual void swappable_blocks_resize ( swappable_block_identifier_type  )
inlinevirtual

Member Data Documentation

std::vector<SwappableBlockType>& swappable_blocks
protected

Definition at line 557 of file block_scheduler.hpp.

Referenced by block_scheduler_algorithm_online_lru< SwappableBlockType >::acquire(), block_scheduler_algorithm_offline_lfd< SwappableBlockType >::acquire(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::acquire(), block_scheduler_algorithm_online_lru< SwappableBlockType >::deinitialize(), block_scheduler_algorithm_offline_lfd< SwappableBlockType >::deinitialize(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::deinitialize(), block_scheduler_algorithm_online_lru< SwappableBlockType >::extract_external_block(), block_scheduler_algorithm_offline_lfd< SwappableBlockType >::extract_external_block(), block_scheduler_algorithm_online_lru< SwappableBlockType >::get_free_internal_block(), block_scheduler_algorithm_offline_lfd< SwappableBlockType >::get_free_internal_block(), block_scheduler_algorithm_simulation< SwappableBlockType >::init(), block_scheduler_algorithm_offline_lfd< SwappableBlockType >::init(), block_scheduler_algorithm_online_lru< SwappableBlockType >::initialize(), block_scheduler_algorithm_offline_lfd< SwappableBlockType >::initialize(), block_scheduler_algorithm< SwappableBlockType >::is_initialized(), block_scheduler_algorithm_online_lru< SwappableBlockType >::release(), block_scheduler_algorithm_offline_lfd< SwappableBlockType >::release(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::release(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::schedule_next_operations(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::schedule_read(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::schedule_write(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::shall_be_read(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::shall_keep_internal_block(), block_scheduler_algorithm_offline_lfd< SwappableBlockType >::~block_scheduler_algorithm_offline_lfd(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::~block_scheduler_algorithm_offline_lru_prefetching(), block_scheduler_algorithm_online_lru< SwappableBlockType >::~block_scheduler_algorithm_online_lru(), and block_scheduler_algorithm_simulation< SwappableBlockType >::~block_scheduler_algorithm_simulation().


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