[#BloombergLP-bslstl-StopCallback_Node]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::StopCallback&lowbar;Node
:relfileprefix: ../../
:mrdocs:

Component&hyphen;private node storing a stop callback for `StopState`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;CALLBACK&gt;
class StopCallback&lowbar;Node
    : public xref:BloombergLP/bslstl/StopCallback_CallbackStorage-06.adoc[StopCallback&lowbar;CallbackStorage&lt;t&lowbar;CALLBACK&gt;]
    , public xref:BloombergLP/bslstl/StopStateCallbackNode.adoc[StopStateCallbackNode]
----

== Description

This component&hyphen;private class is used to implement `bsl&colon;&colon;stop&lowbar;callback`&period; It overrides the virtual `invoke` method of `bslstl&colon;&colon;StopStateCallbackNode`, which allows it to be registered and invoked by `bslstl&colon;&colon;StopState`&period;

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bslstl/StopCallback_CallbackStorage-06.adoc[StopCallback&lowbar;CallbackStorage&lt;t&lowbar;CALLBACK&gt;]`
| Stores a non&hyphen;reference `t&lowbar;CALLBACK` object for stop callbacks&period;
| `xref:BloombergLP/bslstl/StopStateCallbackNode.adoc[StopStateCallbackNode]`
| Intrusive list node that stores a registered stop&hyphen;callback invocation&period;
|===

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/StopCallback_CallbackStorage-06/allocator_type.adoc[`allocator&lowbar;type`] 
| Allocator type used when `t&lowbar;CALLBACK` is allocator&hyphen;aware&semi; otherwise an empty dummy type&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/StopCallback_Node/2constructor-08.adoc[`StopCallback&lowbar;Node`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bslstl/StopCallback_CallbackStorage-06/callback-00a.adoc[`callback`] 
| `callback` overloads
| xref:BloombergLP/bslstl/StopStateCallbackNode/invoke.adoc[`invoke`]  [.small]#[virtual]#
| Invoke the callback stored in the derived class&period;
|===



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