[#BloombergLP-bdlcc-ObjectCatalog_AutoCleanup]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::ObjectCatalog&lowbar;AutoCleanup
:relfileprefix: ../../
:mrdocs:

Proctor that cleans up a managed `ObjectCatalog` node on destruction&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;objectcatalog&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
class ObjectCatalog&lowbar;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&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/ObjectCatalog_AutoCleanup/2constructor.adoc[`ObjectCatalog&lowbar;AutoCleanup`]         [.small]#[constructor]#
| Create a proctor to manage the specified `catalog`&period;
| xref:BloombergLP/bdlcc/ObjectCatalog_AutoCleanup/2destructor.adoc[`&#126;ObjectCatalog&lowbar;AutoCleanup`] [.small]#[destructor]#
| Destroy this proctor and dispose of any managed node&period;
| xref:BloombergLP/bdlcc/ObjectCatalog_AutoCleanup/manageNode.adoc[`manageNode`] 
| Begin managing the specified catalog `node`&period;
| xref:BloombergLP/bdlcc/ObjectCatalog_AutoCleanup/release.adoc[`release`] 
| Release from management all resources currently managed by this object, if any&period;
| xref:BloombergLP/bdlcc/ObjectCatalog_AutoCleanup/releaseNode.adoc[`releaseNode`] 
| Release from management the catalog node, if any, currently managed by this object, if any&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
