libzypp  13.10.6
zypp::resfilter::ByArch< _Compare > Struct Template Reference

Select ResObject by Arch using _Compare functor. More...

#include <ResFilters.h>

Inheritance diagram for zypp::resfilter::ByArch< _Compare >:
ResObjectFilterFunctor

Public Member Functions

 ByArch (const Arch &arch_r, _Compare cmp_r)
 
bool operator() (ResObject::constPtr p) const
 

Public Attributes

Arch _arch
 
_Compare _cmp
 

Detailed Description

template<class _Compare = CompareByEQ<Arch>>
struct zypp::resfilter::ByArch< _Compare >

Select ResObject by Arch using _Compare functor.

Selects ResObject if _Compare( ResObject->arch(), _arch ) is true.

* // use the convenience funktions to create ByArch:
*
* byArch( somearch ); // selects ResObjects with arch == somearch
*
* byArch( somearch, CompareByGT<Arch>() ) // arch > somearch
*

Definition at line 247 of file ResFilters.h.

Constructor & Destructor Documentation

template<class _Compare = CompareByEQ<Arch>>
zypp::resfilter::ByArch< _Compare >::ByArch ( const Arch arch_r,
_Compare  cmp_r 
)
inline

Definition at line 249 of file ResFilters.h.

Member Function Documentation

template<class _Compare = CompareByEQ<Arch>>
bool zypp::resfilter::ByArch< _Compare >::operator() ( ResObject::constPtr  p) const
inline

Definition at line 255 of file ResFilters.h.

Member Data Documentation

template<class _Compare = CompareByEQ<Arch>>
Arch zypp::resfilter::ByArch< _Compare >::_arch

Definition at line 260 of file ResFilters.h.

template<class _Compare = CompareByEQ<Arch>>
_Compare zypp::resfilter::ByArch< _Compare >::_cmp

Definition at line 261 of file ResFilters.h.


The documentation for this struct was generated from the following file: