Hide

SigC::hide() alters a Slot in that it adds one or two parameters whose values are ignored on invocation of the Slot. More...

Functions

Slot1< R, H1 > hide (const Slot0< R > &s)
 template <class H1,class R>.

Slot2< R, P1, H1 > hide (const Slot1< R, P1 > &s)
 template <class H1,class R,class P1>.

Slot3< R, P1, P2, H1 > hide (const Slot2< R, P1, P2 > &s)
 template <class H1,class R,class P1,class P2>.

Slot4< R, P1, P2, P3, H1 > hide (const Slot3< R, P1, P2, P3 > &s)
 template <class H1,class R,class P1,class P2,class P3>.

Slot5< R, P1, P2, P3, P4, H1 > hide (const Slot4< R, P1, P2, P3, P4 > &s)
 template <class H1,class R,class P1,class P2,class P3,class P4>.

Slot0< void > hide_return (const Slot0< R > &s)
 template <class R>.

Slot1< void, P1 > hide_return (const Slot1< R, P1 > &s)
 template <class R,class P1>.

Slot2< void, P1, P2 > hide_return (const Slot2< R, P1, P2 > &s)
 template <class R,class P1,class P2>.

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

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

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

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


Detailed Description

SigC::hide() alters a Slot in that it adds one or two parameters whose values are ignored on invocation of the Slot.

Thus you can discard one or more of the arguments of a Signal. You have to specify the type of the parameters to ignore as template arguments as in

 SigC::Slot1<void, int> slot1;
 SigC::Slot0<void> slot2 = SigC::hide<int>(slot1);

SigC::hide_return() alters 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