Constructors

Synopses

Declared in <bslma_sequentialpool.h>

Create a sequential pool using an internal buffer.

explicit
SequentialPool(Allocator* basicAllocator = 0);

Create a sequential pool using an internal buffer and the specified alignment strategy.

explicit
SequentialPool(
    BufferAllocator::AlignmentStrategy strategy,
    Allocator* basicAllocator = 0);

Create a sequential pool using an internal buffer of the specified initialSize.

explicit
SequentialPool(
    int initialSize,
    Allocator* basicAllocator = 0);

Create a sequential pool using an internal buffer of the specified initialSize and alignment strategy.

SequentialPool(
    int initialSize,
    BufferAllocator::AlignmentStrategy strategy,
    Allocator* basicAllocator = 0);

Create a sequential pool using an internal buffer with a maximum buffer size.

SequentialPool(
    int initialSize,
    int maxBufferSize,
    Allocator* basicAllocator = 0);

Create a sequential pool using the specified external buffer.

SequentialPool(
    char* buffer,
    int bufferSize,
    Allocator* basicAllocator = 0);

Create a sequential pool using an internal buffer with a maximum buffer size and the specified alignment strategy.

SequentialPool(
    int initialSize,
    int maxBufferSize,
    BufferAllocator::AlignmentStrategy strategy,
    Allocator* basicAllocator = 0);

Create a sequential pool using the specified external buffer and alignment strategy.

SequentialPool(
    char* buffer,
    int bufferSize,
    BufferAllocator::AlignmentStrategy strategy,
    Allocator* basicAllocator = 0);

Create a sequential pool using the specified external buffer with a maximum buffer size.

SequentialPool(
    char* buffer,
    int bufferSize,
    int maxBufferSize,
    Allocator* basicAllocator = 0);

Create a sequential pool using the specified external buffer, maximum buffer size, and alignment strategy.

SequentialPool(
    char* buffer,
    int bufferSize,
    int maxBufferSize,
    BufferAllocator::AlignmentStrategy strategy,
    Allocator* basicAllocator = 0);

Parameters

Name

Description

basicAllocator

The allocator used to supply memory.

strategy

The alignment strategy used for allocations.

initialSize

The initial internal buffer size (in bytes).

maxBufferSize

The maximum internal buffer size (in bytes).

buffer

The external buffer used for initial allocations.

bufferSize

The size (in bytes) of buffer.

Created with MrDocs