BloombergLP::bdlma::Factory

Provide a protocol for a thread-safe object creator and deleter.

Synopsis

Declared in <bdlma_factory.h>

template<class TYPE>
class Factory
    : public Deleter<TYPE>

Description

This class provides a protocol (or pure interface) for a thread-safe object creator and deleter. It extends the Deleter protocol with the addition of a createObject method.

Base Classes

NameDescription
Deleter<TYPE>Provide a protocol (or pure interface) for a thread-safe object deleter.

Member Functions

NameDescription
~Factory [destructor] [virtual]Destroy this object factory.
createObject [virtual]Create a default-constructed instance of TYPE.
deleteObject [virtual]Destroy the specified instance and release its memory.

Derived Classes

NameDescription
ObjectPool Thread-safe pool of reusable objects that implements bdlma::Factory.