Thrill
0.1
|
Allocator functor adapter.
Gives offset to disk number sequence defined in constructor
Definition at line 217 of file block_alloc_strategy.hpp.
#include <block_alloc_strategy.hpp>
Public Member Functions | |
offset_allocator (int offset, const BaseAllocator &base) | |
offset_allocator (const BaseAllocator &base) | |
offset_allocator () | |
Creates functor based on default BaseAllocator functor. More... | |
int | get_offset () const |
size_t | operator() (size_t i) const |
void | set_offset (int i) |
Public Attributes | |
BaseAllocator | base_ |
int | offset_ |
|
inline |
Creates functor based on instance of BaseAllocator
functor with offset.
offset | offset |
base | used to create a copy |
Definition at line 226 of file block_alloc_strategy.hpp.
|
inlineexplicit |
Creates functor based on instance of BaseAllocator
functor.
base | used to create a copy |
Definition at line 231 of file block_alloc_strategy.hpp.
|
inline |
Creates functor based on default BaseAllocator
functor.
Definition at line 235 of file block_alloc_strategy.hpp.
|
inline |
Definition at line 242 of file block_alloc_strategy.hpp.
|
inline |
Definition at line 237 of file block_alloc_strategy.hpp.
|
inline |
Definition at line 247 of file block_alloc_strategy.hpp.
BaseAllocator base_ |
Definition at line 219 of file block_alloc_strategy.hpp.
int offset_ |
Definition at line 220 of file block_alloc_strategy.hpp.