BloombergLP::bdlmt::Signaler_SlotNode

Dynamically allocated container holding one connected slot.

Synopsis

Declared in <bdlmt_signaler.h>

template<class t_PROT>
class Signaler_SlotNode
    : public Signaler_SlotNode_Base

Description

Dynamically-allocated container for one slot, containing a function object that can be called by a signaler. Owned by a shared pointer in a skip list container in the Signaler_Node. Also referred to by weak pointers from SignalerConnection objects.

Base Classes

NameDescription
Signaler_SlotNode_BaseNon-template protocol base for Signaler_SlotNode.

Type Aliases

NameDescription
SlotMapKey Defines a "key" used to index slots in an associative collection. The first element of the pair is the slot call group; the second is the slot ID.

Member Functions

NameDescription
Signaler_SlotNode [constructor]Create a Signaler_SlotNode for the given signaler, key, and slot.
disconnect [virtual]Disconnect this slot without waiting for in-progress signals.
disconnectAndWait [virtual]Disconnect this slot and wait for in-progress signals to finish.
invoke Invoke the stored callback with the supplied arguments.
isConnected [virtual]Return true if this slot is connected to its associated signaler, and false otherwise.
notifyDisconnected Notify this slot that is was disconnected from its associated signaler. Throws nothing. After this function completes, isConnected() returns false.