Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
random_cyclic Struct Reference

Detailed Description

Randomized cycling parallel disk block allocation scheme functor.

Remarks
model of allocation_strategy concept

Definition at line 127 of file block_alloc_strategy.hpp.

+ Inheritance diagram for random_cyclic:
+ Collaboration diagram for random_cyclic:

#include <block_alloc_strategy.hpp>

Public Member Functions

 random_cyclic (size_t begin, size_t end)
 
 random_cyclic ()
 
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

std::vector< size_t > perm_
 

Additional Inherited Members

- Public Attributes inherited from striping
size_t begin_
 
size_t diff_
 

Constructor & Destructor Documentation

random_cyclic ( size_t  begin,
size_t  end 
)
inline

Definition at line 141 of file block_alloc_strategy.hpp.

random_cyclic ( )
inline

Definition at line 147 of file block_alloc_strategy.hpp.

Member Function Documentation

void init ( )
inlineprivate

Definition at line 132 of file block_alloc_strategy.hpp.

References striping::diff_.

static const char* name ( )
inlinestatic

Definition at line 157 of file block_alloc_strategy.hpp.

size_t operator() ( size_t  i) const
inline

Definition at line 152 of file block_alloc_strategy.hpp.

References striping::begin_, and striping::diff_.

Member Data Documentation

std::vector<size_t> perm_
private

Definition at line 130 of file block_alloc_strategy.hpp.


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