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 >:

ResObjectFilterFunctor 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 258 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 260 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 266 of file ResFilters.h.

References zypp::resfilter::ByArch< _Compare >::_arch, and zypp::resfilter::ByArch< _Compare >::_cmp.


Member Data Documentation

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

Definition at line 271 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 272 of file ResFilters.h.

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


The documentation for this struct was generated from the following file:
Generated on Thu Jul 6 00:07:33 2006 for zypp by  doxygen 1.4.6