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

Detailed Description

Fully randomized parallel disk block allocation scheme functor.

Remarks
model of allocation_strategy concept

Definition at line 69 of file block_alloc_strategy.hpp.

+ Inheritance diagram for fully_random:
+ Collaboration diagram for fully_random:

#include <block_alloc_strategy.hpp>

Public Member Functions

 fully_random (size_t begin, size_t end)
 
 fully_random ()
 
size_t operator() (size_t) 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 Attributes

std::default_random_engine rng_ { std::random_device { } () }
 

Additional Inherited Members

- Public Attributes inherited from striping
size_t begin_
 
size_t diff_
 

Constructor & Destructor Documentation

fully_random ( size_t  begin,
size_t  end 
)
inline

Definition at line 75 of file block_alloc_strategy.hpp.

fully_random ( )
inline

Definition at line 77 of file block_alloc_strategy.hpp.

Member Function Documentation

static const char* name ( )
inlinestatic

Definition at line 84 of file block_alloc_strategy.hpp.

size_t operator() ( size_t  ) const
inline

Definition at line 79 of file block_alloc_strategy.hpp.

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

Member Data Documentation

std::default_random_engine rng_ { std::random_device { } () }
mutableprivate

Definition at line 72 of file block_alloc_strategy.hpp.

Referenced by fully_random::operator()().


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