BloombergLP::bdlma::BufferedSequentialPool::BufferedSequentialPool

Constructors

Synopses

Declared in <bdlma_bufferedsequentialpool.h>

Create a buffered sequential pool backed by the specified buffer.

BufferedSequentialPool(
    char* buffer,
    bsls::Types::size_type size,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a buffered sequential pool using the specified alignment strategy for allocations from buffer.

BufferedSequentialPool(
    char* buffer,
    bsls::Types::size_type size,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a buffered sequential pool using the specified growth strategy for allocations from buffer.

BufferedSequentialPool(
    char* buffer,
    bsls::Types::size_type size,
    bsls::BlockGrowth::Strategy growthStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a buffered sequential pool with growth limited to maxBufferSize.

BufferedSequentialPool(
    char* buffer,
    bsls::Types::size_type size,
    bsls::Types::size_type maxBufferSize,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a buffered sequential pool using the specified growth and alignment strategies for allocations from buffer.

BufferedSequentialPool(
    char* buffer,
    bsls::Types::size_type size,
    bsls::BlockGrowth::Strategy growthStrategy,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

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

BufferedSequentialPool(
    char* buffer,
    bsls::Types::size_type size,
    bsls::Types::size_type maxBufferSize,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

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

BufferedSequentialPool(
    char* buffer,
    bsls::Types::size_type size,
    bsls::Types::size_type maxBufferSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

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

BufferedSequentialPool(
    char* buffer,
    bsls::Types::size_type size,
    bsls::Types::size_type maxBufferSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
bufferexternal buffer from which to allocate
sizesize in bytes of 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