Choreonoid  1.8
Public Types | Public Member Functions | List of all members
cnoid::Signal< R(Args...), Combiner > Class Template Reference

#include <Signal.h>

Public Types

typedef signal_private::function_traits< R(Args...)>::result_type result_type
 
typedef std::function< R(Args...)> function_type
 
typedef function_type Function
 

Public Member Functions

 Signal ()
 
 Signal (Signal &&)=default
 
 Signal (const Signal &org)=delete
 
Signaloperator= (const Signal &rhs)=delete
 
 ~Signal ()
 
Connection connect (const Function &func)
 
void remove (SlotHolderPtr slot)
 
void changeOrder (SlotHolderPtr slot, int orderId)
 
void disconnect_all_slots ()
 
bool empty () const
 
int numConnections () const
 
result_type operator() (Args... args)
 

Member Typedef Documentation

◆ Function

template<typename Combiner , typename R , typename... Args>
typedef function_type cnoid::Signal< R(Args...), Combiner >::Function

◆ function_type

template<typename Combiner , typename R , typename... Args>
typedef std::function<R(Args...)> cnoid::Signal< R(Args...), Combiner >::function_type

◆ result_type

template<typename Combiner , typename R , typename... Args>
typedef signal_private::function_traits<R(Args...)>::result_type cnoid::Signal< R(Args...), Combiner >::result_type

Constructor & Destructor Documentation

◆ Signal() [1/3]

template<typename Combiner , typename R , typename... Args>
cnoid::Signal< R(Args...), Combiner >::Signal ( )
inline

◆ Signal() [2/3]

template<typename Combiner , typename R , typename... Args>
cnoid::Signal< R(Args...), Combiner >::Signal ( Signal< R(Args...), Combiner > &&  )
default

◆ Signal() [3/3]

template<typename Combiner , typename R , typename... Args>
cnoid::Signal< R(Args...), Combiner >::Signal ( const Signal< R(Args...), Combiner > &  org)
delete

◆ ~Signal()

template<typename Combiner , typename R , typename... Args>
cnoid::Signal< R(Args...), Combiner >::~Signal ( )
inline

Member Function Documentation

◆ changeOrder()

template<typename Combiner , typename R , typename... Args>
void cnoid::Signal< R(Args...), Combiner >::changeOrder ( SlotHolderPtr  slot,
int  orderId 
)
inline

◆ connect()

template<typename Combiner , typename R , typename... Args>
Connection cnoid::Signal< R(Args...), Combiner >::connect ( const Function func)
inline

◆ disconnect_all_slots()

template<typename Combiner , typename R , typename... Args>
void cnoid::Signal< R(Args...), Combiner >::disconnect_all_slots ( )
inline

◆ empty()

template<typename Combiner , typename R , typename... Args>
bool cnoid::Signal< R(Args...), Combiner >::empty ( ) const
inline

◆ numConnections()

template<typename Combiner , typename R , typename... Args>
int cnoid::Signal< R(Args...), Combiner >::numConnections ( ) const
inline

◆ operator()()

template<typename Combiner , typename R , typename... Args>
result_type cnoid::Signal< R(Args...), Combiner >::operator() ( Args...  args)
inline

◆ operator=()

template<typename Combiner , typename R , typename... Args>
Signal& cnoid::Signal< R(Args...), Combiner >::operator= ( const Signal< R(Args...), Combiner > &  rhs)
delete

◆ remove()

template<typename Combiner , typename R , typename... Args>
void cnoid::Signal< R(Args...), Combiner >::remove ( SlotHolderPtr  slot)
inline

keep slot->next so that the slot call iteration can be continued even if the slot is disconnected during the iteration.


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