Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Inti::Signal5< R, P1, P2, P3, P4, P5, Marshal > Class Template Reference

A template for a signal passing five arguments of type P1, P2, P3, P4 and P5, and returning a value of type R. More...

#include <inti/signals.h>

Inheritance diagram for Inti::Signal5< R, P1, P2, P3, P4, P5, Marshal >:

Inti::Signal List of all members.

Public Types

Public Member Functions


Detailed Description

template<typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename Marshal = DefaultMarshal<R>>
class Inti::Signal5< R, P1, P2, P3, P4, P5, Marshal >

A template for a signal passing five arguments of type P1, P2, P3, P4 and P5, and returning a value of type R.


Member Function Documentation

template<typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename Marshal = DefaultMarshal<R>>
Connection Inti::Signal5< R, P1, P2, P3, P4, P5, Marshal >::connect const SlotType slot  )  [inline]
 

Connect a slot to the signal.

Parameters:
slot A slot of type Slot5<R, P1, P2, P3, P4, P5>.
Returns:
A connection object.

The returned connection object can be used alter or change the connection.

template<typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename Marshal = DefaultMarshal<R>>
R Inti::Signal5< R, P1, P2, P3, P4, P5, Marshal >::emit P1  p1,
P2  p2,
P3  p3,
P4  p4,
P5  p5
[inline]
 

Emit the signal.

Parameters:
p1 Passes p1 to the signal handler.
p2 Passes p2 to the signal handler.
p3 Passes p3 to the signal handler.
p4 Passes p4 to the signal handler.
p5 Passes p5 to the signal handler.
Returns:
the value returned by the signal handler.

Calls every slot connected to this signal, in order of connection.

template<typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename Marshal = DefaultMarshal<R>>
SlotType* Inti::Signal5< R, P1, P2, P3, P4, P5, Marshal >::slot  )  [inline]
 

Returns a slot for this signal.

Returns:
A new slot of type Slot5<R, P1, P2, P3, P4, P5>.

The returned slot can be passed to another signal allowing the other signal to call this signal when it gets emitted.


The documentation for this class was generated from the following file: Main Page - Footer


Generated on Sun Sep 14 20:08:07 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002