Thrill  0.1

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() [1/3]

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() [2/3]

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() [3/3]

offset_allocator ( )
inline

Creates functor based on default BaseAllocator functor.

Definition at line 235 of file block_alloc_strategy.hpp.

Member Function Documentation

◆ get_offset()

int get_offset ( ) const
inline

Definition at line 242 of file block_alloc_strategy.hpp.

◆ operator()()

size_t operator() ( size_t  i) const
inline

Definition at line 237 of file block_alloc_strategy.hpp.

◆ set_offset()

void set_offset ( int  i)
inline

Definition at line 247 of file block_alloc_strategy.hpp.

Member Data Documentation

◆ base_

BaseAllocator base_

Definition at line 219 of file block_alloc_strategy.hpp.

◆ offset_

int offset_

Definition at line 220 of file block_alloc_strategy.hpp.


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