RC::Signal Class Reference
[base]

Class declared in <X3DTK/kernel.h> providing a signal-slot mechanism. More...

Inheritance diagram for RC::Signal:

RC::TSignal< A, B, T > RC::TSignal< A, B, void > List of all members.

Public Member Functions

Static Public Member Functions


Detailed Description

Class declared in <X3DTK/kernel.h> providing a signal-slot mechanism.

Indeed Qt doesn't allow to write template Q_OBJECT.


Member Function Documentation

template<class A, class SA, class B, class SB>
void RC::Signal::connect A *  a,
void(SA::*  getPtr)() const,
B *  b,
void(SB::*  setPtr)()
[inline, static]
 

Connects two objects which don't exchange datas.

template<class A, class SA, class B, class SB, class T>
void RC::Signal::connect A *  a,
T(SA::*  getPtr)() const,
B *  b,
void(SB::*  setPtr)(T t)
[inline, static]
 

Connects two objects.

template<class A, class SA, class B, class SB>
void RC::Signal::disconnect A *  a,
void(SA::*  getPtr)() const,
B *  b,
void(SB::*  setPtr)()
[inline, static]
 

Disconnects two connected objects which don't exchange datas.

template<class A, class SA, class B, class SB, class T>
void RC::Signal::disconnect A *  a,
T(SA::*  getPtr)() const,
B *  b,
void(SB::*  setPtr)(T t)
[inline, static]
 

Disconnects two connected objects.

template<class A, class SA, class T>
void RC::Signal::send A *  a,
T(SA::*  getPtr)() const
[inline, static]
 

Sends the datas from the object a to all the connected objects to a by the method of which pointer is getPtr.

virtual void RC::Signal::transmit  )  [pure virtual]
 

Implemented in RC::TSignal< A, B, T >, and RC::TSignal< A, B, void >.


Generated on Fri Jul 30 12:02:33 2004 for X3DToolKit by doxygen 1.3.6