STXXL  1.4.0
 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 221 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 230 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 235 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 239 of file block_alloc.h.

Member Function Documentation

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

Definition at line 247 of file block_alloc.h.

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

Definition at line 242 of file block_alloc.h.

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

Definition at line 252 of file block_alloc.h.

Member Data Documentation

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

Definition at line 223 of file block_alloc.h.

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

Definition at line 224 of file block_alloc.h.


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