Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bdlbb::SimpleBlobBufferFactory Class Reference

#include <bdlbb_simpleblobbufferfactory.h>

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

List of all members.

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (SimpleBlobBufferFactory, bslmf::IsBitwiseMoveable)
 BSLMF_NESTED_TRAIT_DECLARATION (SimpleBlobBufferFactory, bslma::UsesBslmaAllocator)
 SimpleBlobBufferFactory (int bufferSize, bslma::Allocator *basicAllocator=0)
virtual ~SimpleBlobBufferFactory ()
virtual void allocate (bdlbb::BlobBuffer *buffer)
void setBufferSize (int bufferSize)
int bufferSize () const

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 Component bdlbb_simpleblobbufferfactory


Constructor & Destructor Documentation

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.

virtual bdlbb::SimpleBlobBufferFactory::~SimpleBlobBufferFactory (  )  [virtual]

Destroy this SimpleBlobBufferFactory object.


Member Function Documentation

bdlbb::SimpleBlobBufferFactory::BSLMF_NESTED_TRAIT_DECLARATION ( SimpleBlobBufferFactory  ,
bslmf::IsBitwiseMoveable   
)
bdlbb::SimpleBlobBufferFactory::BSLMF_NESTED_TRAIT_DECLARATION ( SimpleBlobBufferFactory  ,
bslma::UsesBslmaAllocator   
)
virtual 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.

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

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

int bdlbb::SimpleBlobBufferFactory::bufferSize (  )  const

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


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