|
Boost : |
Subject: [boost] [signals2] combiner + groups -> topmost only (missing code)
From: Oliver Kowalke (k-oli_at_[hidden])
Date: 2009-10-12 10:03:43
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk