zypp::resfilter::ByArch< _Compare > Struct Template Reference
[Filter functors operating on ResObjects.]

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

#include <ResFilters.h>

Inheritance diagram for zypp::resfilter::ByArch< _Compare >:
[legend]

List of all members.

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 249 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 251 of file ResFilters.h.


Member Function Documentation

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


Member Data Documentation

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

Definition at line 262 of file ResFilters.h.

Referenced by zypp::resfilter::ByArch< _Compare >::operator()().

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

Definition at line 263 of file ResFilters.h.

Referenced by zypp::resfilter::ByArch< _Compare >::operator()().


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

doxygen