#include <signal_wrapper_base.h>
Protected Member Functions | |
signal_wrapper_base () | |
~signal_wrapper_base () throw () | |
signal_wrapper_base (const shared_dispatchable &_A_disp, const std::tr1::shared_ptr< signal_source_base > &_A_sigsource) throw () | |
std::pair< connection_wrapper, std::tr1::shared_ptr < sigc_connection_ptr > > | prepare_connection (const tunnel_base &_A_tunnel) const |
Prepare a shared sigc::connection pointer and a connection_wrapper. | |
template<typename T_functor , typename T_functor_conn_handler > | |
connection_wrapper | connect (const T_functor &_A_func, const T_functor_conn_handler &_A_func_conn_handler) const |
Call _A_func_conn_handler in the context of the server thread, _A_func_conn_handler resolves to typed_connection_handler<>::connect[_notify] connecting _A_func to the server thread's signal. | |
Protected Attributes | |
shared_dispatchable | m_disp |
std::tr1::shared_ptr < signal_source_base > | m_sigsource |
The source for the server thread's signal. |
It holds a shared_dispatchable and a shared signal source.
sigx::signal_wrapper_base::signal_wrapper_base | ( | ) | [protected] |
Might | throw a std::bad_alloc exception (from dispatchable's ctor) |
sigx::signal_wrapper_base::~signal_wrapper_base | ( | ) | throw () [protected] |
sigx::signal_wrapper_base::signal_wrapper_base | ( | const shared_dispatchable & | _A_disp, | |
const std::tr1::shared_ptr< signal_source_base > & | _A_sigsource | |||
) | throw () [protected] |
connection_wrapper sigx::signal_wrapper_base::connect | ( | const T_functor & | _A_func, | |
const T_functor_conn_handler & | _A_func_conn_handler | |||
) | const [inline, protected] |
Call _A_func_conn_handler in the context of the server thread, _A_func_conn_handler resolves to typed_connection_handler<>::connect[_notify] connecting _A_func to the server thread's signal.
References m_disp, m_sigsource, sigx::open_tunnel_with(), prepare_connection(), and SIGX_STATIC_ASSERT.
Referenced by sigx::signal_wrapper< Glib::SignalChildWatch >::connect(), sigx::signal_wrapper< Glib::SignalIO >::connect(), sigx::signal_wrapper< Glib::SignalTimeout >::connect(), sigx::signal_wrapper< Glib::SignalIdle >::connect(), sigx::signal_wrapper< T_signal, internal::SIGGROUP_GLIB_PROXY,-1 >::connect(), sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 7 >::connect(), sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 6 >::connect(), sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 5 >::connect(), sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 4 >::connect(), sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 3 >::connect(), sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 2 >::connect(), sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 1 >::connect(), sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 0 >::connect(), and sigx::signal_wrapper< T_signal, internal::SIGGROUP_GLIB_PROXY,-1 >::connect_notify().
std::pair< connection_wrapper, std::tr1::shared_ptr< sigc_connection_ptr > > sigx::signal_wrapper_base::prepare_connection | ( | const tunnel_base & | _A_tunnel | ) | const [protected] |
Prepare a shared sigc::connection pointer and a connection_wrapper.
The sigc::connection itself will be created in the context of the server thread
References sigx::tunnel_validity_tracker::add_connection(), m_disp, and sigx::tunnel_base::validity_tracker().
Referenced by connect().
shared_dispatchable sigx::signal_wrapper_base::m_disp [protected] |
The server thread's shared dispatchable to operate on for making connections or emitting the signal
Referenced by connect(), and prepare_connection().
std::tr1::shared_ptr<signal_source_base> sigx::signal_wrapper_base::m_sigsource [protected] |