STXXL  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::SR Struct Reference

Detailed Description

Simple randomized disk allocation scheme functor.

Remarks
model of allocation_strategy concept

Definition at line 94 of file block_alloc.h.

+ Inheritance diagram for stxxl::SR:
+ Collaboration diagram for stxxl::SR:

Public Member Functions

 SR (unsigned_type b, unsigned_type e)
 
 SR ()
 
unsigned_type operator() (unsigned_type i) const
 
- Public Member Functions inherited from stxxl::striping
 striping (unsigned_type b, unsigned_type e)
 
 striping ()
 
unsigned_type operator() (unsigned_type i) const
 

Static Public Member Functions

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

Private Types

typedef random_number
< random_uniform_fast
rnd_type
 

Private Member Functions

void init ()
 

Private Attributes

unsigned_type offset
 

Additional Inherited Members

- Public Attributes inherited from stxxl::striping
unsigned_type begin
 
unsigned_type diff
 

Member Typedef Documentation

Definition at line 99 of file block_alloc.h.

Constructor & Destructor Documentation

stxxl::SR::SR ( unsigned_type  b,
unsigned_type  e 
)
inline

Definition at line 108 of file block_alloc.h.

stxxl::SR::SR ( )
inline

Definition at line 113 of file block_alloc.h.

Member Function Documentation

void stxxl::SR::init ( )
inlineprivate

Definition at line 101 of file block_alloc.h.

static const char* stxxl::SR::name ( )
inlinestatic

Definition at line 123 of file block_alloc.h.

unsigned_type stxxl::SR::operator() ( unsigned_type  i) const
inline

Definition at line 118 of file block_alloc.h.

Member Data Documentation

unsigned_type stxxl::SR::offset
private

Definition at line 97 of file block_alloc.h.


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