Stxxl
1.4.0
|
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_ . | |
offset_allocator (const BaseAllocator_ &base_) | |
Creates functor based on instance of BaseAllocator_ functor. | |
offset_allocator () | |
Creates functor based on default BaseAllocator_ functor. | |
int | operator() (int_type i) const |
int_type | get_offset () const |
void | set_offset (int_type i) |
Public Attributes | |
BaseAllocator_ | base |
int_type | offset |
Allocator functor adaptor.
Gives offset to disk number sequence defined in constructor
Definition at line 219 of file block_alloc.h.
stxxl::offset_allocator< BaseAllocator_ >::offset_allocator | ( | int_type | offset_, |
const BaseAllocator_ & | base_ | ||
) | [inline] |
Creates functor based on instance of BaseAllocator_
functor with offset offset_
.
offset_ | offset |
base_ | used to create a copy |
Definition at line 228 of file block_alloc.h.
stxxl::offset_allocator< BaseAllocator_ >::offset_allocator | ( | const BaseAllocator_ & | base_ | ) | [inline] |
Creates functor based on instance of BaseAllocator_
functor.
base_ | used to create a copy |
Definition at line 233 of file block_alloc.h.
stxxl::offset_allocator< BaseAllocator_ >::offset_allocator | ( | ) | [inline] |
Creates functor based on default BaseAllocator_
functor.
Definition at line 237 of file block_alloc.h.
int_type stxxl::offset_allocator< BaseAllocator_ >::get_offset | ( | ) | const [inline] |
Definition at line 245 of file block_alloc.h.
int stxxl::offset_allocator< BaseAllocator_ >::operator() | ( | int_type | i | ) | const [inline] |
Definition at line 240 of file block_alloc.h.
void stxxl::offset_allocator< BaseAllocator_ >::set_offset | ( | int_type | i | ) | [inline] |
Definition at line 250 of file block_alloc.h.
BaseAllocator_ stxxl::offset_allocator< BaseAllocator_ >::base |
Definition at line 221 of file block_alloc.h.
int_type stxxl::offset_allocator< BaseAllocator_ >::offset |
Definition at line 222 of file block_alloc.h.