BloombergLP::bdlmt::SignalerConnection

Lightweight handle representing a signaler-to-slot connection.

Synopsis

Declared in <bdlmt_signaler.h>

class SignalerConnection;

Description

This class represents a connection between a signaler and a slot. It is a lightweight object that has the ability to query whether the signaler and slot are currently connected, and to disconnect the slot from the signaler. Note that, unless otherwise specified, it is safe to invoke any method of SignalerConnection from the context of its associated slot, or any other slot.

Member Functions

NameDescription
SignalerConnection [constructor]Constructors
operator= Assignment operators
disconnect Disconnect the associated slot without waiting.
disconnectAndWait Disconnect the associated slot and wait for in-progress signals.
isConnected Return whether the associated slot is still connected.
reset Disassociate this connection object from its associated slot, if any, and reset *this to a default-constructed state. Throws nothing.
swap Swap the contents of *this and other.
operator BloombergLP::bslmf::NestedTraitDeclaration<SignalerConnection, IsBitwiseMoveable> Declare that this type is bitwise moveable.

Friends

NameDescription
BloombergLP::bdlmt::operator==Return true if lhs and rhs refer to the same slot.
BloombergLP::bdlmt::operator<Return true if lhs is ordered before rhs.
BloombergLP::bdlmt::Signaler_NodeShared implementation object backing a Signaler.

Non-Member Functions

NameDescription
operator!=Return true if lhs and rhs do not refer to the same slot.
operator<=Return true if lhs is ordered before or equal to rhs.
operator>Return true if lhs is ordered after rhs.
operator>=Return true if lhs is ordered after or equal to rhs.
swapSwap the contents of a and b.