libzypp  11.13.5
Collection solvable filter functors.

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

Classes

class  zypp::filter::ByLocaleSupport
 Filter solvables according to their locale support. More...
class  zypp::filter::ByKind
 Filter solvables according to their kind. More...
class  zypp::filter::ByStatus
 Filter solvables according to their status. More...
class  zypp::filter::SameItemAs
 Filter items with at least same NVRA, vendor. More...

Functions

template<class _Res >
ByKind byKind ()

Detailed Description

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
}

Function Documentation

template<class _Res >
ByKind byKind ( )
related

templated convenience ctor.

Definition at line 128 of file Filter.h.