libzypp  17.24.2
Collection solvable filter functors.

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

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
}
zypp::sat::Pool::instance
static Pool instance()
Singleton ctor.
Definition: Pool.h:55
MIL
#define MIL
Definition: Logger.h:79
zypp::ResPool::instance
static ResPool instance()
Singleton ctor.
Definition: ResPool.cc:37
for_
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
Definition: Easy.h:28