4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::signal::unregister::base< T > Class Template Reference

Detailed Description

template<typename T>
class fcppt::signal::unregister::base< T >

A base class for signals providing unlinking.

Template Parameters
TThe signal's function type

See fcppt.signal for more information on unlinking.

Public Types

using function_signature = T
 A typedef for the function's return type.
 
using function = fcppt::function<T>
 A typedef for the wrapped function.
 

Public Member Functions

fcppt::signal::auto_connection connect (function &&, fcppt::signal::unregister::function &&)
 Connect a callback to this signal.
 
bool empty () const
 Return if the signal has connections attached to it.
 

Protected Types

using concrete_connection
 
using connection_list = fcppt::intrusive::list<concrete_connection>
 

Protected Member Functions

 base ()
 
 base (base &&) noexcept
 
baseoperator= (base &&) noexcept
 
 ~base ()
 
connection_listconnections () const
 

Member Typedef Documentation

◆ concrete_connection

template<typename T >
using fcppt::signal::unregister::base< T >::concrete_connection
protected
Initial value:
fcppt::signal::unregister::detail::concrete_connection<function_signature>

◆ connection_list

template<typename T >
using fcppt::signal::unregister::base< T >::connection_list = fcppt::intrusive::list<concrete_connection>
protected

◆ function

template<typename T >
using fcppt::signal::unregister::base< T >::function = fcppt::function<T>

A typedef for the wrapped function.

◆ function_signature

template<typename T >
using fcppt::signal::unregister::base< T >::function_signature = T

A typedef for the function's return type.

Constructor & Destructor Documentation

◆ base() [1/2]

template<typename T >
fcppt::signal::unregister::base< T >::base ( )
protected

◆ base() [2/2]

template<typename T >
fcppt::signal::unregister::base< T >::base ( base< T > && )
protectednoexcept

◆ ~base()

template<typename T >
fcppt::signal::unregister::base< T >::~base ( )
protected

Member Function Documentation

◆ connect()

Connect a callback to this signal.

◆ connections()

template<typename T >
connection_list & fcppt::signal::unregister::base< T >::connections ( ) const
protected

◆ empty()

template<typename T >
bool fcppt::signal::unregister::base< T >::empty ( ) const

Return if the signal has connections attached to it.

◆ operator=()

template<typename T >
base & fcppt::signal::unregister::base< T >::operator= ( base< T > && )
protectednoexcept