Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
offset_allocator< BaseAllocator > Struct Template Reference

Detailed Description

template<class BaseAllocator>
struct foxxll::offset_allocator< BaseAllocator >

Allocator functor adapter.

Gives offset to disk number sequence defined in constructor

Definition at line 217 of file block_alloc_strategy.hpp.

#include <block_alloc_strategy.hpp>

Public Member Functions

 offset_allocator (int offset, const BaseAllocator &base)
 
 offset_allocator (const BaseAllocator &base)
 
 offset_allocator ()
 Creates functor based on default BaseAllocator functor. More...
 
int get_offset () const
 
size_t operator() (size_t i) const
 
void set_offset (int i)
 

Public Attributes

BaseAllocator base_
 
int offset_
 

Constructor & Destructor Documentation

offset_allocator ( int  offset,
const BaseAllocator &  base 
)
inline

Creates functor based on instance of BaseAllocator functor with offset.

Parameters
offsetoffset
baseused to create a copy

Definition at line 226 of file block_alloc_strategy.hpp.

offset_allocator ( const BaseAllocator &  base)
inlineexplicit

Creates functor based on instance of BaseAllocator functor.

Parameters
baseused to create a copy

Definition at line 231 of file block_alloc_strategy.hpp.

offset_allocator ( )
inline

Creates functor based on default BaseAllocator functor.

Definition at line 235 of file block_alloc_strategy.hpp.

Member Function Documentation

int get_offset ( ) const
inline

Definition at line 242 of file block_alloc_strategy.hpp.

size_t operator() ( size_t  i) const
inline

Definition at line 237 of file block_alloc_strategy.hpp.

void set_offset ( int  i)
inline

Definition at line 247 of file block_alloc_strategy.hpp.

Member Data Documentation

BaseAllocator base_

Definition at line 219 of file block_alloc_strategy.hpp.

int offset_

Definition at line 220 of file block_alloc_strategy.hpp.


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