BDE 4.14.0 Production release
|
#include <bdlcc_objectcatalog.h>
Public Member Functions | |
ObjectCatalog_AutoCleanup (ObjectCatalog< TYPE > *catalog) | |
Create a proctor to manage the specified catalog . | |
~ObjectCatalog_AutoCleanup () | |
void | manageNode (typename ObjectCatalog< TYPE >::Node *node, bool deallocateFlag) |
void | releaseNode () |
void | release () |
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.
|
explicit |
bdlcc::ObjectCatalog_AutoCleanup< TYPE >::~ObjectCatalog_AutoCleanup | ( | ) |
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.
void bdlcc::ObjectCatalog_AutoCleanup< TYPE >::manageNode | ( | typename ObjectCatalog< TYPE >::Node * | node, |
bool | deallocateFlag | ||
) |
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.
void bdlcc::ObjectCatalog_AutoCleanup< TYPE >::release | ( | ) |
Release from management all resources currently managed by this object, if any.
void bdlcc::ObjectCatalog_AutoCleanup< TYPE >::releaseNode | ( | ) |
Release from management the catalog node, if any, currently managed by this object, if any.