BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslstl::StopCallback_Node< t_CALLBACK > Class Template Reference

#include <bslstl_stoptoken.h>

Inheritance diagram for bslstl::StopCallback_Node< t_CALLBACK >:
bslstl::StopCallback_CallbackStorage< t_CALLBACK, t_IS_REFERENCE > bslstl::StopStateCallbackNode bslstl::StopState_ListNode

Public Member Functions

template<class t_ALLOC , class t_ARG >
 StopCallback_Node (const t_ALLOC &allocator, BSLS_COMPILERFEATURES_FORWARD_REF(t_ARG) arg)
 
template<class t_ALLOC , class t_ARG >
 StopCallback_Node (const t_ALLOC &allocator, t_ARG &arg)
 
- Public Member Functions inherited from bslstl::StopCallback_CallbackStorage< t_CALLBACK, t_IS_REFERENCE >
template<class t_ARG >
 StopCallback_CallbackStorage (const allocator_type &allocator, BSLS_COMPILERFEATURES_FORWARD_REF(t_ARG) arg)
 
template<class t_ARG >
 StopCallback_CallbackStorage (const allocator_type &allocator, t_ARG &arg)
 
 ~StopCallback_CallbackStorage ()
 Destroy this object.
 
t_CALLBACK & callback ()
 Return a reference to the stored callback.
 
const t_CALLBACK & callback () const
 Return a const reference to the stored callback.
 

Additional Inherited Members

- Public Types inherited from bslstl::StopCallback_CallbackStorage< t_CALLBACK, t_IS_REFERENCE >
typedef bsl::conditional< BloombergLP::bslma::UsesBslmaAllocator< t_CALLBACK >::value, bsl::allocator< char >, StopCallback_NoAlloc >::type allocator_type
 

Detailed Description

template<class t_CALLBACK>
class bslstl::StopCallback_Node< t_CALLBACK >

This component-private class is used to implement bsl::stop_callback. It overrides the virtual invoke method of bslstl::StopStateCallbackNode, which allows it to be registered and invoked by bslstl::StopState.

Constructor & Destructor Documentation

◆ StopCallback_Node() [1/2]

template<class t_CALLBACK >
template<class t_ALLOC , class t_ARG >
bslstl::StopCallback_Node< t_CALLBACK >::StopCallback_Node ( const t_ALLOC &  allocator,
BSLS_COMPILERFEATURES_FORWARD_REF(t_ARG)  arg 
)

Create a StopCallback_Node object whose stored callable is constructed by forwarding from the specified arg; the specified allocator is used to supply memory if t_CALLBACK is allocator-aware (and ignored otherwise).

◆ StopCallback_Node() [2/2]

template<class t_CALLBACK >
template<class t_ALLOC , class t_ARG >
bslstl::StopCallback_Node< t_CALLBACK >::StopCallback_Node ( const t_ALLOC &  allocator,
t_ARG &  arg 
)

The documentation for this class was generated from the following file: