STXXL  1.4.1
 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 93 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 98 of file block_alloc.h.

Constructor & Destructor Documentation

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

Definition at line 107 of file block_alloc.h.

stxxl::SR::SR ( )
inline

Definition at line 112 of file block_alloc.h.

Member Function Documentation

void stxxl::SR::init ( )
inlineprivate

Definition at line 100 of file block_alloc.h.

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

Definition at line 122 of file block_alloc.h.

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

Definition at line 117 of file block_alloc.h.

Member Data Documentation

unsigned_type stxxl::SR::offset
private

Definition at line 96 of file block_alloc.h.


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