[#BloombergLP-bdlcc-ObjectCatalog_AutoCleanup] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::ObjectCatalog_AutoCleanup :relfileprefix: ../../ :mrdocs: Proctor that cleans up a managed `ObjectCatalog` node on destruction. == Synopsis Declared in `<bdlcc_objectcatalog.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> class ObjectCatalog_AutoCleanup; ---- == Description 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. == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlcc/ObjectCatalog_AutoCleanup/2constructor.adoc[`ObjectCatalog_AutoCleanup`] [.small]#[constructor]# | Create a proctor to manage the specified `catalog`. | xref:BloombergLP/bdlcc/ObjectCatalog_AutoCleanup/2destructor.adoc[`~ObjectCatalog_AutoCleanup`] [.small]#[destructor]# | Destroy this proctor and dispose of any managed node. | xref:BloombergLP/bdlcc/ObjectCatalog_AutoCleanup/manageNode.adoc[`manageNode`] | Begin managing the specified catalog `node`. | xref:BloombergLP/bdlcc/ObjectCatalog_AutoCleanup/release.adoc[`release`] | Release from management all resources currently managed by this object, if any. | xref:BloombergLP/bdlcc/ObjectCatalog_AutoCleanup/releaseNode.adoc[`releaseNode`] | Release from management the catalog node, if any, currently managed by this object, if any. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#