sigx::connection_wrapper Class Reference
[Signals]

A threadsafe representation of a sigc::connection. More...

#include <connection_wrapper.h>


Public Member Functions

 connection_wrapper ()
 Construct an empty connection_wrapper.
 connection_wrapper (const shared_dispatchable &_A_disp, const shared_sigc_conn_ptr &_A_conn)
 Construct from a dispatchable and a late bound pointer to the server thread's sigc::connection.
 connection_wrapper (const connection_wrapper &other) throw ()
 Copy construct from another connection_wrapper.
 ~connection_wrapper () throw ()
connection_wrapperoperator= (const connection_wrapper &other)
bool empty () const
bool connected () const
bool blocked () const
bool block (bool should_block=true)
bool unblock ()
void disconnect ()
 operator bool ()

Protected Member Functions

void destroy_self ()


Detailed Description

A threadsafe representation of a sigc::connection.
Examples:

ipresolver/main.cpp.


Constructor & Destructor Documentation

sigx::connection_wrapper::connection_wrapper (  ) 

Construct an empty connection_wrapper.

sigx::connection_wrapper::connection_wrapper ( const shared_dispatchable _A_disp,
const shared_sigc_conn_ptr &  _A_conn 
)

Construct from a dispatchable and a late bound pointer to the server thread's sigc::connection.

sigx::connection_wrapper::connection_wrapper ( const connection_wrapper other  )  throw ()

Copy construct from another connection_wrapper.

sigx::connection_wrapper::~connection_wrapper (  )  throw ()

Note:
destroying is asynchronous

References destroy_self().


Member Function Documentation

bool sigx::connection_wrapper::block ( bool  should_block = true  ) 

Note:
synchronous

References sigx::open_sync_tunnel_with(), and sigx::ref().

bool sigx::connection_wrapper::blocked (  )  const

Note:
synchronous

References sigx::open_sync_tunnel_with(), and sigx::ref().

bool sigx::connection_wrapper::connected (  )  const

Note:
synchronous

References sigx::open_sync_tunnel_with(), and sigx::ref().

void sigx::connection_wrapper::destroy_self (  )  [protected]

void sigx::connection_wrapper::disconnect (  ) 

Note:
synchronous

References sigx::open_tunnel_with().

bool sigx::connection_wrapper::empty (  )  const

Note:
synchronous

References sigx::open_sync_tunnel_with(), and sigx::ref().

sigx::connection_wrapper::operator bool (  ) 

Note:
non-const because sigc::connection::operator bool is non-const

synchronous

References sigx::open_sync_tunnel_with(), and sigx::ref().

connection_wrapper & sigx::connection_wrapper::operator= ( const connection_wrapper other  ) 

Note:
nonvolatile, may only be executed by a single thread.

References destroy_self().

bool sigx::connection_wrapper::unblock (  ) 

Note:
synchronous

References sigx::open_sync_tunnel_with(), and sigx::ref().


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