Thrill  0.1

Detailed Description

Simple randomized parallel disk block allocation scheme functor.

Remarks
model of allocation_strategy concept

Definition at line 92 of file block_alloc_strategy.hpp.

+ Inheritance diagram for simple_random:
+ Collaboration diagram for simple_random:

#include <block_alloc_strategy.hpp>

Public Member Functions

 simple_random (size_t begin, size_t end)
 
 simple_random ()
 
size_t operator() (size_t i) const
 
- Public Member Functions inherited from striping
 striping (size_t begin, size_t end)
 
 striping ()
 
size_t operator() (size_t i) const
 

Static Public Member Functions

static const char * name ()
 
- Static Public Member Functions inherited from striping
static const char * name ()
 

Private Member Functions

void init ()
 

Private Attributes

size_t offset
 

Additional Inherited Members

- Public Attributes inherited from striping
size_t begin_
 
size_t diff_
 

Constructor & Destructor Documentation

◆ simple_random() [1/2]

simple_random ( size_t  begin,
size_t  end 
)
inline

Definition at line 104 of file block_alloc_strategy.hpp.

◆ simple_random() [2/2]

simple_random ( )
inline

Definition at line 109 of file block_alloc_strategy.hpp.

Member Function Documentation

◆ init()

void init ( )
inlineprivate

Definition at line 97 of file block_alloc_strategy.hpp.

◆ name()

static const char* name ( )
inlinestatic

Definition at line 119 of file block_alloc_strategy.hpp.

◆ operator()()

size_t operator() ( size_t  i) const
inline

Definition at line 114 of file block_alloc_strategy.hpp.

Member Data Documentation

◆ offset

size_t offset
private

Definition at line 95 of file block_alloc_strategy.hpp.


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