BloombergLP::bdlma::SequentialPool::SequentialPool

Constructors

Synopses

Declared in <bdlma_sequentialpool.h>

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

explicit
SequentialPool(int initialSize);
» more...

Create a sequential pool of dynamically-allocated buffers.

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

Create a sequential pool using the specified alignment strategy.

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

Create a sequential pool using the specified growth strategy.

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

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

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

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);
» more...

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);
» more...

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);
» more...

Create a sequential pool with growth limited to maxBufferSize.

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

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);
» more...

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);
» more...

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);
» more...

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);
» more...

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);
» more...

Parameters

NameDescription
initialSizeinitial size in bytes of the internal buffer
basicAllocatormemory allocator; null uses the default
alignmentStrategystrategy used to align allocated memory blocks
growthStrategystrategy controlling growth of internal buffers
maxBufferSizemaximum dynamically allocated buffer size in bytes
allocateInitialBuffertrue to allocate the initial buffer now