Retype

retype() alters a Slot to change arguments and return type. More...

Functions

Slot0< R1 > retype (const Slot0< R2 > &s)
 template <class R1,class R2>.

Slot1< R1, P1 > retype (const Slot1< R2, C1 > &s)
 template <class R1,class P1,class R2,class C1>.

Slot2< R1, P1, P2 > retype (const Slot2< R2, C1, C2 > &s)
 template <class R1,class P1,class P2,class R2,class C1,class C2>.

Slot3< R1, P1, P2, P3 > retype (const Slot3< R2, C1, C2, C3 > &s)
 template <class R1,class P1,class P2,class P3,class R2,class C1,class C2,class C3>.

Slot4< R1, P1, P2, P3, P4 > retype (const Slot4< R2, C1, C2, C3, C4 > &s)
 template <class R1,class P1,class P2,class P3,class P4,class R2,class C1,class C2,class C3,class C4>.

Slot5< R1, P1, P2, P3, P4,
P5 > 
retype (const Slot5< R2, C1, C2, C3, C4, C5 > &s)
 template <class R1,class P1,class P2,class P3,class P4,class P5,class R2,class C1,class C2,class C3,class C4,class C5>.

Slot6< R1, P1, P2, P3, P4,
P5, P6 > 
retype (const Slot6< R2, C1, C2, C3, C4, C5, C6 > &s)
 template <class R1,class P1,class P2,class P3,class P4,class P5,class P6,class R2,class C1,class C2,class C3,class C4,class C5,class C6>.

Slot0< R2 > retype_return (const Slot0< R > &s)
 template <class R2,class R>.

Slot1< R2, P1 > retype_return (const Slot1< R, P1 > &s)
 template <class R2,class R,class P1>.

Slot2< R2, P1, P2 > retype_return (const Slot2< R, P1, P2 > &s)
 template <class R2,class R,class P1,class P2>.

Slot3< R2, P1, P2, P3 > retype_return (const Slot3< R, P1, P2, P3 > &s)
 template <class R2,class R,class P1,class P2,class P3>.

Slot4< R2, P1, P2, P3, P4 > retype_return (const Slot4< R, P1, P2, P3, P4 > &s)
 template <class R2,class R,class P1,class P2,class P3,class P4>.

Slot5< R2, P1, P2, P3, P4,
P5 > 
retype_return (const Slot5< R, P1, P2, P3, P4, P5 > &s)
 template <class R2,class R,class P1,class P2,class P3,class P4,class P5>.

Slot6< R2, P1, P2, P3, P4,
P5, P6 > 
retype_return (const Slot6< R, P1, P2, P3, P4, P5, P6 > &s)
 template <class R2,class R,class P1,class P2,class P3,class P4,class P5,class P6>.


Detailed Description

retype() alters a Slot to change arguments and return type.

Only allowed conversions or conversions to void can properly be implemented. The types of the return and all arguments must always be specified as a template parameters.

Simple sample usage:

  float f(float,float);

  SigC::Slot1<int, int, int>  s1 = SigC::retype<int, int, int>(slot(&f));

SigC::retype_return() alters a Slot by changing the return type.

Only allowed conversions or conversions to void can properly be implemented. The type must always be specified as a template parameter.

Simple sample usage:

 int f(int);

 SigC::Slot1<void, int> s1 = SigC::retype_return<void>(slot(&f));
 SigC::Slot1<float, int> s2 = SigC::retype_return<float>(slot(&f));

SigC::hide_return() is an easy-to-use variant that converts the Slot by dropping its return value, thus converting it to a void slot.

Simple Sample usage:

 int f(int);
 SigC::Slot1<void, int> s = SigC::hide_return( slot(&f) );

Generated on Fri Oct 11 18:16:04 2002 for libsigc++ by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002