STXXL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::offset_allocator< BaseAllocator > Struct Template Reference

Detailed Description

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

Allocator functor adaptor.

Gives offset to disk number sequence defined in constructor

Definition at line 220 of file block_alloc.h.

+ Collaboration diagram for stxxl::offset_allocator< BaseAllocator >:

Public Member Functions

 offset_allocator (int_type offset_, const BaseAllocator &base_)
 Creates functor based on instance of BaseAllocator functor with offset offset_. More...
 
 offset_allocator (const BaseAllocator &base_)
 Creates functor based on instance of BaseAllocator functor. More...
 
 offset_allocator ()
 Creates functor based on default BaseAllocator functor. More...
 
int_type get_offset () const
 
unsigned_type operator() (unsigned_type i) const
 
void set_offset (int_type i)
 

Public Attributes

BaseAllocator base
 
int_type offset
 

Constructor & Destructor Documentation

template<class BaseAllocator >
stxxl::offset_allocator< BaseAllocator >::offset_allocator ( int_type  offset_,
const BaseAllocator &  base_ 
)
inline

Creates functor based on instance of BaseAllocator functor with offset offset_.

Parameters
offset_offset
base_used to create a copy

Definition at line 229 of file block_alloc.h.

template<class BaseAllocator >
stxxl::offset_allocator< BaseAllocator >::offset_allocator ( const BaseAllocator &  base_)
inline

Creates functor based on instance of BaseAllocator functor.

Parameters
base_used to create a copy

Definition at line 234 of file block_alloc.h.

template<class BaseAllocator >
stxxl::offset_allocator< BaseAllocator >::offset_allocator ( )
inline

Creates functor based on default BaseAllocator functor.

Definition at line 238 of file block_alloc.h.

Member Function Documentation

template<class BaseAllocator >
int_type stxxl::offset_allocator< BaseAllocator >::get_offset ( ) const
inline

Definition at line 246 of file block_alloc.h.

template<class BaseAllocator >
unsigned_type stxxl::offset_allocator< BaseAllocator >::operator() ( unsigned_type  i) const
inline

Definition at line 241 of file block_alloc.h.

template<class BaseAllocator >
void stxxl::offset_allocator< BaseAllocator >::set_offset ( int_type  i)
inline

Definition at line 251 of file block_alloc.h.

Member Data Documentation

template<class BaseAllocator >
BaseAllocator stxxl::offset_allocator< BaseAllocator >::base

Definition at line 222 of file block_alloc.h.

template<class BaseAllocator >
int_type stxxl::offset_allocator< BaseAllocator >::offset

Definition at line 223 of file block_alloc.h.


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