BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlbb::SimpleBlobBufferFactory Class Reference

#include <bdlbb_simpleblobbufferfactory.h>

Inheritance diagram for bdlbb::SimpleBlobBufferFactory:
bdlbb::BlobBufferFactory

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (SimpleBlobBufferFactory, bslmf::IsBitwiseMoveable)
 
 BSLMF_NESTED_TRAIT_DECLARATION (SimpleBlobBufferFactory, bslma::UsesBslmaAllocator)
 
 SimpleBlobBufferFactory (int bufferSize, bslma::Allocator *basicAllocator=0)
 
 ~SimpleBlobBufferFactory () BSLS_KEYWORD_OVERRIDE
 Destroy this SimpleBlobBufferFactory object.
 
void allocate (bdlbb::BlobBuffer *buffer) BSLS_KEYWORD_OVERRIDE
 
void setBufferSize (int bufferSize)
 
int bufferSize () const
 
- Public Member Functions inherited from bdlbb::BlobBufferFactory
virtual ~BlobBufferFactory ()
 Destroy this blob buffer factory.
 

Detailed Description

This class declares an implementation of BlobBufferFactory where each segment loaded to a BlobBuffer is created with a separate calls to the allocator specified at construction, or the default allocator is no allocator was specified.

See bdlbb_simpleblobbufferfactory

Constructor & Destructor Documentation

◆ SimpleBlobBufferFactory()

bdlbb::SimpleBlobBufferFactory::SimpleBlobBufferFactory ( int  bufferSize,
bslma::Allocator basicAllocator = 0 
)
explicit

Create a SimpleBlobBufferFactory object that will create blob buffers of specified length bufferSize. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

◆ ~SimpleBlobBufferFactory()

bdlbb::SimpleBlobBufferFactory::~SimpleBlobBufferFactory ( )

Member Function Documentation

◆ allocate()

void bdlbb::SimpleBlobBufferFactory::allocate ( bdlbb::BlobBuffer buffer)
virtual

Allocate a blob buffer from this blob buffer factory, and load it into the specified buffer.

Implements bdlbb::BlobBufferFactory.

◆ BSLMF_NESTED_TRAIT_DECLARATION() [1/2]

bdlbb::SimpleBlobBufferFactory::BSLMF_NESTED_TRAIT_DECLARATION ( SimpleBlobBufferFactory  ,
bslma::UsesBslmaAllocator   
)

◆ BSLMF_NESTED_TRAIT_DECLARATION() [2/2]

bdlbb::SimpleBlobBufferFactory::BSLMF_NESTED_TRAIT_DECLARATION ( SimpleBlobBufferFactory  ,
bslmf::IsBitwiseMoveable   
)

◆ bufferSize()

int bdlbb::SimpleBlobBufferFactory::bufferSize ( ) const

Return the current size with which this factory will allocate buffers.

◆ setBufferSize()

void bdlbb::SimpleBlobBufferFactory::setBufferSize ( int  bufferSize)

Set the buffer size for future buffers created by this factory to the specified bufferSize.


The documentation for this class was generated from the following file: