Stxxl  1.3.2
Public Member Functions | Public Attributes | List of all members
offset_allocator< BaseAllocator_ > Struct Template Reference

Allocator functor adaptor. More...

#include <block_alloc.h>

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 operator() (int_type i) const
 
int_type get_offset () const
 
void set_offset (int_type i)
 

Public Attributes

BaseAllocator_ base
 
int_type offset
 

Detailed Description

template<class BaseAllocator_>
struct offset_allocator< BaseAllocator_ >

Allocator functor adaptor.

Gives offset to disk number sequence defined in constructor

Constructor & Destructor Documentation

template<class BaseAllocator_ >
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
template<class BaseAllocator_ >
offset_allocator< BaseAllocator_ >::offset_allocator ( const BaseAllocator_ &  base_)
inline

Creates functor based on instance of BaseAllocator_ functor.

Parameters
base_used to create a copy
template<class BaseAllocator_ >
offset_allocator< BaseAllocator_ >::offset_allocator ( )
inline

Creates functor based on default BaseAllocator_ functor.


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