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

Allocator functor adaptor. More...

#include <mng.h>

Public Member Functions

 offset_allocator (int_type offset_)
 Creates functor based on BaseAllocator_ functor created with default constructor with offset offset_.
 offset_allocator (int_type offset_, BaseAllocator_ &base_)
 Creates functor based on instance of BaseAllocator_ functor with offset 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_)
inline

Creates functor based on BaseAllocator_ functor created with default constructor with offset offset_.

Parameters
offset_offset
template<class BaseAllocator_>
offset_allocator< BaseAllocator_ >::offset_allocator ( int_type  offset_,
BaseAllocator_ &  base_ 
)
inline

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

Parameters
offset_offset
base_used to create a copy

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