DART  6.10.1
dart::common::signal::detail::ConnectionBody< SignalType > Class Template Referencefinal

class ConnectionBody More...

#include <ConnectionBody.hpp>

Inheritance diagram for dart::common::signal::detail::ConnectionBody< SignalType >:
dart::common::signal::detail::ConnectionBodyBase

Public Types

using SlotType = typename SignalType::SlotType
 

Public Member Functions

 ConnectionBody (SignalType &signal, const SlotType &_slot)
 Constructor given slot. More...
 
 ConnectionBody (SignalType &signal, SlotType &&_slot)
 Move constructor given slot. More...
 
virtual ~ConnectionBody ()
 Destructor. More...
 
void disconnect () override
 Disconnect. More...
 
const SlotTypegetSlot () const
 Get slot. More...
 

Private Attributes

SignalType & mSignal
 Signal of this connection. More...
 
SlotType mSlot
 Slot. More...
 

Detailed Description

template<typename SignalType>
class dart::common::signal::detail::ConnectionBody< SignalType >

class ConnectionBody

Member Typedef Documentation

◆ SlotType

template<typename SignalType >
using dart::common::signal::detail::ConnectionBody< SignalType >::SlotType = typename SignalType::SlotType

Constructor & Destructor Documentation

◆ ConnectionBody() [1/2]

template<typename SignalType >
dart::common::signal::detail::ConnectionBody< SignalType >::ConnectionBody ( SignalType &  signal,
const SlotType _slot 
)

Constructor given slot.

◆ ConnectionBody() [2/2]

template<typename SignalType >
dart::common::signal::detail::ConnectionBody< SignalType >::ConnectionBody ( SignalType &  signal,
SlotType &&  _slot 
)

Move constructor given slot.

◆ ~ConnectionBody()

template<typename SignalType >
dart::common::signal::detail::ConnectionBody< SignalType >::~ConnectionBody
virtual

Destructor.

Member Function Documentation

◆ disconnect()

template<typename SignalType >
void dart::common::signal::detail::ConnectionBody< SignalType >::disconnect
overridevirtual

◆ getSlot()

template<typename SignalType >
const ConnectionBody< SignalType >::SlotType & dart::common::signal::detail::ConnectionBody< SignalType >::getSlot

Get slot.

Member Data Documentation

◆ mSignal

template<typename SignalType >
SignalType& dart::common::signal::detail::ConnectionBody< SignalType >::mSignal
private

Signal of this connection.

◆ mSlot

template<typename SignalType >
SlotType dart::common::signal::detail::ConnectionBody< SignalType >::mSlot
private

Slot.