libzypp  17.14.0
zypp::resfilter::ByArch< TCompare > Struct Template Reference

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

#include <ResFilters.h>

Inheritance diagram for zypp::resfilter::ByArch< TCompare >:

Public Member Functions

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

Public Attributes

Arch _arch
 
TCompare _cmp
 

Detailed Description

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

Select ResObject by Arch using TCompare functor.

Selects ResObject if TCompare( 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

◆ ByArch()

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

Definition at line 251 of file ResFilters.h.

Member Function Documentation

◆ operator()()

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

Definition at line 256 of file ResFilters.h.

Member Data Documentation

◆ _arch

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

Definition at line 261 of file ResFilters.h.

◆ _cmp

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

Definition at line 262 of file ResFilters.h.


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