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

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

#include <ResFilters.h>

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

Public Member Functions

 ByEdition (const Edition &edition_r, _Compare cmp_r)
 
bool operator() (ResObject::constPtr p) const
 

Public Attributes

Edition _edition
 
_Compare _cmp
 

Detailed Description

template<class _Compare = CompareByEQ<Edition>>
struct zypp::resfilter::ByEdition< _Compare >

Select ResObject by Edition using _Compare functor.

Selects ResObject if _Compare( ResObject->edition(), _edition ) is true.

* // use the convenience funktions to create ByEdition:
*
* byEdition( someedition ); // selects ResObjects with edition == someedition
*
* byEdition( someedition, CompareByGT<Edition>() ) // edition > someedition
*

Definition at line 206 of file ResFilters.h.

Constructor & Destructor Documentation

template<class _Compare = CompareByEQ<Edition>>
zypp::resfilter::ByEdition< _Compare >::ByEdition ( const Edition edition_r,
_Compare  cmp_r 
)
inline

Definition at line 208 of file ResFilters.h.

Member Function Documentation

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

Definition at line 214 of file ResFilters.h.

Member Data Documentation

template<class _Compare = CompareByEQ<Edition>>
Edition zypp::resfilter::ByEdition< _Compare >::_edition

Definition at line 219 of file ResFilters.h.

template<class _Compare = CompareByEQ<Edition>>
_Compare zypp::resfilter::ByEdition< _Compare >::_cmp

Definition at line 220 of file ResFilters.h.


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