libzypp 17.37.10

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