BloombergLP::bdlcc::ObjectCatalog_AutoCleanup

This class provides a specialized proctor object that, upon destruction and unless the release method is called (1) removes a managed node from the ObjectCatalog, and (2) deallocates all associated memory as necessary.

Synopsis

Declared in <bdlcc_objectcatalog.h>

template<class TYPE>
class ObjectCatalog_AutoCleanup;

Member Functions

NameDescription
ObjectCatalog_AutoCleanup [constructor]Create a proctor to manage the specified catalog.
~ObjectCatalog_AutoCleanup [destructor]Remove a managed node from the ObjectCatalog (by returning it to the catalog's free list or node pool, as specified in manageNode), deallocate all associated memory, and destroy this object.
manageNode Release from management the catalog node, if any, currently managed by this object and begin managing the specified catalog node. The specified deallocateFlag tells the destructor how to dispose of node if node is managed during the destruction of this object.
release Release from management all resources currently managed by this object, if any.
releaseNode Release from management the catalog node, if any, currently managed by this object, if any.