libzypp 17.31.23
|
Base class providing common iterator types based on a Solvable iterator. More...
#include <sat/SolvIterMixin.h>
Public Types | |
typedef size_t | size_type |
Public Member Functions | |
Convenience methods. | |
In case | |
bool | empty () const |
Whether the collection is epmty. | |
size_type | size () const |
Size of the collection. | |
template<class TSolv > | |
bool | contains (const TSolv &solv_r) const |
Whether collection contains a specific Solvable. | |
Iterate as Solvable | |
typedef DerivedSolvable_iterator | Solvable_iterator |
Solvable_iterator | solvableBegin () const |
Solvable_iterator | solvableEnd () const |
Iterable< Solvable_iterator > | solvable () const |
Iterate as PoolItem | |
typedef transform_iterator< asPoolItem, Solvable_iterator > | PoolItem_iterator |
typedef filter_iterator< solvitermixin_detail::UnifyByIdent, Solvable_iterator > | UnifiedSolvable_iterator |
PoolItem_iterator | poolItemBegin () const |
PoolItem_iterator | poolItemEnd () const |
Iterable< PoolItem_iterator > | poolItem () const |
Iterate ui::Selectable::Ptr | |
typedef transform_iterator< ui::asSelectable, UnifiedSolvable_iterator > | Selectable_iterator |
Selectable_iterator | selectableBegin () const |
Selectable_iterator | selectableEnd () const |
Iterable< Selectable_iterator > | selectable () const |
Iterate unified Solbvables to be transformed into Selectable. | |
UnifiedSolvable_iterator | unifiedSolvableBegin () const |
UnifiedSolvable_iterator | unifiedSolvableEnd () const |
Iterable< UnifiedSolvable_iterator > | unifiedSolvable () const |
const Derived & | self () const |
SolvIterMixin () | |
~SolvIterMixin () | |
SolvIterMixin (const SolvIterMixin &) | |
void | operator= (const SolvIterMixin &) |
Base class providing common iterator types based on a Solvable iterator.
A class deriving from SolvIterMixin must provide two methods begin
and end
returning iterator over sat::Solvable.
SolvIterMixin will then provide iterators over the corresponding PoolItem and ui::Selectable_Ptr.
SolvIterMixin will also provide default implementations for empty and size by iterating from begin
to end
. In case Derived
is able to provide a more efficient implementation, the methods should be overloaded.
Definition at line 116 of file SolvIterMixin.h.
typedef size_t zypp::sat::SolvIterMixin< Derived, DerivedSolvable_iterator >::size_type |
Definition at line 119 of file SolvIterMixin.h.
typedef DerivedSolvable_iterator zypp::sat::SolvIterMixin< Derived, DerivedSolvable_iterator >::Solvable_iterator |
Definition at line 150 of file SolvIterMixin.h.
typedef transform_iterator<asPoolItem,Solvable_iterator> zypp::sat::SolvIterMixin< Derived, DerivedSolvable_iterator >::PoolItem_iterator |
Definition at line 161 of file SolvIterMixin.h.
|
private |
Definition at line 171 of file SolvIterMixin.h.
typedef transform_iterator<ui::asSelectable,UnifiedSolvable_iterator> zypp::sat::SolvIterMixin< Derived, DerivedSolvable_iterator >::Selectable_iterator |
Definition at line 175 of file SolvIterMixin.h.
|
inlineprotected |
Definition at line 198 of file SolvIterMixin.h.
|
inlineprotected |
Definition at line 199 of file SolvIterMixin.h.
|
inlineprotected |
Definition at line 200 of file SolvIterMixin.h.
|
inline |
Whether the collection is epmty.
Definition at line 128 of file SolvIterMixin.h.
|
inline |
Size of the collection.
Definition at line 132 of file SolvIterMixin.h.
|
inline |
Whether collection contains a specific Solvable.
Definition at line 137 of file SolvIterMixin.h.
|
inline |
Definition at line 151 of file SolvIterMixin.h.
|
inline |
Definition at line 153 of file SolvIterMixin.h.
|
inline |
Definition at line 155 of file SolvIterMixin.h.
|
inline |
Definition at line 162 of file SolvIterMixin.h.
|
inline |
Definition at line 164 of file SolvIterMixin.h.
|
inline |
Definition at line 166 of file SolvIterMixin.h.
|
inline |
Definition at line 176 of file SolvIterMixin.h.
|
inline |
Definition at line 178 of file SolvIterMixin.h.
|
inline |
Definition at line 180 of file SolvIterMixin.h.
|
inlineprivate |
Definition at line 187 of file SolvIterMixin.h.
|
inlineprivate |
Definition at line 189 of file SolvIterMixin.h.
|
inlineprivate |
Definition at line 191 of file SolvIterMixin.h.
|
inlineprivate |
Definition at line 195 of file SolvIterMixin.h.
|
inlineprotected |
Definition at line 201 of file SolvIterMixin.h.