[#BloombergLP-bslstl-HashTable_NodeProctor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::HashTable&lowbar;NodeProctor
:relfileprefix: ../../
:mrdocs:

This class implements a proctor that, unless its `release` method has previously been invoked, automatically deallocates a managed list of nodes upon destruction by recursively invoking the `deleteNode` method of a supplied factory on each node&period; The (template parameter) type `FACTORY` shall be provide a member function that can be called as if it had the following signature&colon; &grave; void deleteNode(bslalg&colon;&colon;BidirectionalLink &ast;node)&semi; &grave;

== Synopsis

Declared in `&lt;bslstl&lowbar;hashtable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class FACTORY&gt;
class HashTable&lowbar;NodeProctor;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/HashTable_NodeProctor/2constructor.adoc[`HashTable&lowbar;NodeProctor`]         [.small]#[constructor]#
| Create a new node&hyphen;proctor that conditionally manages the specified `node` (if non&hyphen;zero), and that uses the specified `factory` to destroy the node (unless released) upon its destruction&period; The behavior is undefined unless `node` was created by the `factory`&period;
| xref:BloombergLP/bslstl/HashTable_NodeProctor/2destructor.adoc[`&#126;HashTable&lowbar;NodeProctor`] [.small]#[destructor]#
| Destroy this node proctor, and delete the node that it manages (if any) by invoking the `deleteNode` method of the factory supplied at construction&period; If no node is currently being managed, this method has no effect&period;
| xref:BloombergLP/bslstl/HashTable_NodeProctor/release.adoc[`release`] 
| Release from management the node currently managed by this proctor&period; If no object is currently being managed, this method has no effect&period;
|===



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