Constructors

Synopses

Declared in <bdlma_sequentialpool.h>

Create a sequential pool whose initial buffer has the specified initialSize.

explicit
SequentialPool(int initialSize);

Create a sequential pool of dynamically‐allocated buffers.

explicit
SequentialPool(bslma::Allocator* basicAllocator = 0);

Create a sequential pool using the specified alignment strategy.

explicit
SequentialPool(
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);

Create a sequential pool using the specified growth strategy.

explicit
SequentialPool(
    bsls::BlockGrowth::Strategy growthStrategy,
    bslma::Allocator* basicAllocator = 0);

Create a sequential pool whose initial buffer has the specified initialSize.

explicit
SequentialPool(
    bsls::Types::size_type initialSize,
    bslma::Allocator* basicAllocator = 0);

Create a sequential pool using the specified growth and alignment strategies and an implementation‐defined initial buffer size.

SequentialPool(
    bsls::BlockGrowth::Strategy growthStrategy,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);

Create a sequential pool whose initial buffer has the specified initialSize and alignment strategy.

SequentialPool(
    bsls::Types::size_type initialSize,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);

Create a sequential pool whose initial buffer has the specified initialSize and growth strategy.

SequentialPool(
    bsls::Types::size_type initialSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bslma::Allocator* basicAllocator = 0);

Create a sequential pool with growth limited to maxBufferSize.

SequentialPool(
    bsls::Types::size_type initialSize,
    bsls::Types::size_type maxBufferSize,
    bslma::Allocator* basicAllocator = 0);

Create a sequential pool whose initial buffer has the specified initialSize, growth strategy, and alignment strategy.

SequentialPool(
    bsls::Types::size_type initialSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);

Create a sequential pool with growth limited to maxBufferSize and the specified alignment strategy.

SequentialPool(
    bsls::Types::size_type initialSize,
    bsls::Types::size_type maxBufferSize,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);

Create a sequential pool with growth limited to maxBufferSize and the specified growth strategy.

SequentialPool(
    bsls::Types::size_type initialSize,
    bsls::Types::size_type maxBufferSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bslma::Allocator* basicAllocator = 0);

Create a sequential pool with growth limited to maxBufferSize and the specified growth and alignment strategies.

SequentialPool(
    bsls::Types::size_type initialSize,
    bsls::Types::size_type maxBufferSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);

Create a sequential pool, optionally deferring the initial buffer allocation.

SequentialPool(
    bsls::Types::size_type initialSize,
    bsls::Types::size_type maxBufferSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bsls::Alignment::Strategy alignmentStrategy,
    bool allocateInitialBuffer,
    bslma::Allocator* basicAllocator = 0);

Parameters

Name

Description

initialSize

initial size in bytes of the internal buffer

basicAllocator

memory allocator; null uses the default

alignmentStrategy

strategy used to align allocated memory blocks

growthStrategy

strategy controlling growth of internal buffers

maxBufferSize

maximum dynamically allocated buffer size in bytes

allocateInitialBuffer

true to allocate the initial buffer now

Created with MrDocs