dart
Public Types | Public Member Functions | List of all members
dart::common::SlotRegister< T > Class Template Reference

SlotRegister can be used as a public member for connecting slots to a private Signal member. More...

#include <Signal.hpp>

Public Types

using SlotType = typename T::SlotType
 
using SignalType = typename T::SignalType
 

Public Member Functions

 SlotRegister (typename T::SignalType &_signal)
 Constructor given signal.
 
Connection connect (const SlotType &_slot)
 Connect a slot to the signal.
 

Detailed Description

template<typename T>
class dart::common::SlotRegister< T >

SlotRegister can be used as a public member for connecting slots to a private Signal member.

In this way you won't have to write forwarding connect/disconnect boilerplate for your classes.


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