CLAM-Development  1.1
Public Member Functions
SigSlot::Slot Class Reference

The receiver of a Signal. More...

#include <Slot.hxx>

List of all members.

Public Member Functions

void Bind (const Connection &conn)
 Binds the Slot with a Signal.
void Unbind ()
 Disconnects the Slot.
void Unbind (Connection::tConnectionId conn)
 Disconnects the Slot.
unsigned ActiveConnections () const
 Tells how many signals are connected.
 ~Slot ()
 Destructor.

Detailed Description

The receiver of a Signal.

If the Signal represents the concept of Event Notifying, the Slot represents the 'Event handler'

See also:
Signal

Definition at line 39 of file Slot.hxx.


Constructor & Destructor Documentation

Destructor.

Destructor method.

Definition at line 47 of file Slot.cxx.

References Unbind().


Member Function Documentation

Tells how many signals are connected.

This method tells the client how many connections are already established with Signals for the present Slot.

Returns:
The number of Signals connected to the Slot

Definition at line 76 of file Slot.hxx.

void SigSlot::Slot::Bind ( const Connection conn)

Disconnects the Slot.

Calling this method severs all the existing connections between the present slot and any signal.

Definition at line 52 of file Slot.cxx.

Referenced by ~Slot().

Disconnects the Slot.

Calling this method severs the connection between the Slot and the Signal identified by the connection Id number.

Parameters:
connThe connection to be severed.

Definition at line 62 of file Slot.cxx.


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