Logo Search packages:      
Sourcecode: ardour version File versions

sigc::connection Struct Reference
[Signals]

#include <connection.h>

List of all members.


Detailed Description

Convinience class for safe disconnection. Iterators must not be used beyond the lifetime of the list they work on. A connection object can be created from a slot list iterator and may safely be used to disconnect the referred slot at any time (disconnect()). If the slot has already been destroyed, disconnect() does nothing. empty() or operator bool() can be used to test whether the connection is still active. The connection can be blocked (block(), unblock()).

This is possible because the connection object gets notified when the referred slot dies (notify()).

Definition at line 40 of file connection.h.


Public Member Functions

bool block (bool should_block=true)
bool blocked () const
bool connected () const
 connection (slot_base &sl)
template<typename T_slot>
 connection (const slot_iterator< T_slot > &it)
 connection (const connection &c)
 connection ()
void disconnect ()
 Disconnects the referred slot.
bool empty () const
 operator bool ()
template<typename T_slot>
connectionoperator= (const slot_iterator< T_slot > &it)
connectionoperator= (const connection &c)
bool unblock ()

Static Public Member Functions

static void * notify (void *data)

Private Member Functions

void set_slot (slot_base *sl)

Private Attributes

slot_baseslot_

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

Generated by  Doxygen 1.6.0   Back to index