[signals2] combiner + groups -> topmost only (missing code)

Hello, I need a combiner which executes only the slots within the highest group. How to access to group in the combiner? What happens with the input iterators if signal::disconnect_all_slots() gest called within the combiner? someting like this: struct combiner { template< typename It > void operator( It i, It e) const { // iterate over slots // execute only slots of highest group } }; signal< void(), combiner, int, greater< int > > sig; sig.connect( 0, slot1); sig.connect( 1, slot2); sig(); // only slot2 gets called regards, Oliver -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 12 October 2009, Oliver Kowalke wrote:
Hello,
I need a combiner which executes only the slots within the highest group. How to access to group in the combiner?
You can't.
What happens with the input iterators if signal::disconnect_all_slots() gest called within the combiner?
After the next time you increment the slot iterator, it will equal the end iterator. It won't effect the slot which the iterator already corresponds to. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkrUeoIACgkQ5vihyNWuA4XiNwCdGlSRdtsRBb7SEpUgAttbYgfQ ekoAniNRJUQJ827RYeauPRhBy7efVy9w =Lws1 -----END PGP SIGNATURE-----
participants (2)
-
Frank Mori Hess
-
Oliver Kowalke