12 #ifndef ZYPP_RESFILTERS_H
13 #define ZYPP_RESFILTERS_H
15 #include <boost/function.hpp>
152 typedef boost::function<bool ( ResObject::constPtr )>
ResFilter;
168 return p->name() ==
_name;
178 :
_alias( repository_r.info().alias() )
187 return p->repoInfo().alias() ==
_alias;
205 template<
class _Compare = CompareByEQ<Edition> >
224 template<
class _Compare>
229 template<
class _Compare>
231 {
return byEdition( edition_r, _Compare() ); }
246 template<
class _Compare = CompareByEQ<Arch> >
265 template<
class _Compare>
270 template<
class _Compare>
272 {
return byArch( arch_r, _Compare() ); }
357 #endif // ZYPP_RESFILTERS_H
bool operator()(ResObject::constPtr p) const
ByRepository(const std::string &alias_r)
PoolItem which is suggested.
ByEdition(const Edition &edition_r, _Compare cmp_r)
bool operator()(ResObject::constPtr p) const
Select ResObject by Edition using _Compare functor.
bool operator()(const PoolItem &p) const
bool isUninstalled() const
bool operator()(const PoolItem &p) const
bool operator()(const PoolItem &p) const
Edition represents [epoch:]version[-release]
TraitsType::constPtrType constPtr
Select ResObject by name.
ByRepository(Repository repository_r)
Select PoolItem by installed.
std::unary_function< ResObject::constPtr, bool > ResObjectFilterFunctor
boost::function< bool(ResObject::constPtr)> ResFilter
PoolItem which is recommended.
bool operator()(ResObject::constPtr p) const
std::unary_function< PoolItem, bool > PoolItemFilterFunctor
Select ResObject by repository or repository alias.
ResStatus & status() const
Returns the current status.
ByEdition< _Compare > byEdition(const Edition &edition_r, _Compare cmp_r)
Select PoolItem by transact.
bool operator()(ResObject::constPtr p) const
Select PoolItem by uninstalled.
ByArch< _Compare > byArch(const Arch &arch_r, _Compare cmp_r)
bool operator()(const PoolItem &p) const
ByName(const std::string &name_r)
Select ResObject by Arch using _Compare functor.
bool operator()(const PoolItem &p) const
Reference to a PoolItem connecting ResObject and ResStatus.
bool operator()(const PoolItem &p) const
bool operator()(const PoolItem &p) const
ByArch(const Arch &arch_r, _Compare cmp_r)
bool isRecommended() const
Filter solvables according to their kind.