sigx::signal_wrapper_base Class Reference
[Signals]

The base for a sigx::signal_wrapper. More...

#include <signal_wrapper_base.h>

Inheritance diagram for sigx::signal_wrapper_base:

sigx::nonheapallocatable sigx::signal_wrapper< Glib::SignalChildWatch > sigx::signal_wrapper< Glib::SignalIdle > sigx::signal_wrapper< Glib::SignalIO > sigx::signal_wrapper< Glib::SignalTimeout > sigx::signal_wrapper< T_signal, internal::SIGGROUP_GLIB_PROXY,-1 > sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 0 > sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 1 > sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 2 > sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 3 > sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 4 > sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 5 > sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 6 > sigx::signal_wrapper< T_signal, internal::SIGGROUP_SIGC, 7 >

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.

Detailed Description

The base for a sigx::signal_wrapper.

It holds a shared_dispatchable and a shared signal source.


Constructor & Destructor Documentation

sigx::signal_wrapper_base::signal_wrapper_base (  )  [protected]

Exceptions:
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]


Member Function Documentation

template<typename T_functor , typename T_functor_conn_handler >
connection_wrapper sigx::signal_wrapper_base::connect ( const T_functor &  _A_func,
const T_functor_conn_handler &  _A_func_conn_handler 
) const [inline, protected]

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().


Field Documentation

The server thread's shared dispatchable to operate on for making connections or emitting the signal

Referenced by connect(), and prepare_connection().

The source for the server thread's signal.

Referenced by connect().


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

Generated on Mon Aug 3 17:35:09 2009 for sigx++ by  doxygen 1.5.9