libzypp 17.31.23
Collection solvable filter functors.

All functors should be able to process Solvable as well as PoolItem.

All functors should be able to process Solvable as well as PoolItem.

// The same filter...
filter::ByLocaleSupport f( Locale("de") );
// ...can be used to iterate the sat::Pool...
sat::Pool satpool( sat::Pool::instance() );
for_( it, satpool.filterBegin(f), satpool.filterEnd(f) )
{
MIL << *it << endl; // prints sat::Solvable
}
// ...as well as the ResPool.
ResPool pool ( ResPool::instance() );
for_( it, pool.filterBegin(f), pool.filterEnd(f) )
{
MIL << *it << endl; // prints PoolItem
}
static ResPool instance()
Singleton ctor.
Definition: ResPool.cc:37
static Pool instance()
Singleton ctor.
Definition: Pool.h:55
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
Definition: Easy.h:28
#define MIL
Definition: Logger.h:96