libzypp 17.31.23
|
Solvable set wrapper to allow adding additional convenience iterators. More...
#include <sat/SolvableSet.h>
Public Types | |
typedef std::unordered_set< Solvable > | Container |
typedef Container::value_type | value_type |
typedef Container::size_type | size_type |
typedef Solvable_iterator | const_iterator |
Public Types inherited from zypp::sat::SolvIterMixin< SolvableSet, std::unordered_set< Solvable >::const_iterator > | |
typedef size_t | size_type |
typedef std::unordered_set< Solvable >::const_iterator | Solvable_iterator |
typedef transform_iterator< asPoolItem, Solvable_iterator > | PoolItem_iterator |
typedef transform_iterator< ui::asSelectable, UnifiedSolvable_iterator > | Selectable_iterator |
Public Member Functions | |
SolvableSet () | |
Default ctor. | |
template<class TInputIterator > | |
SolvableSet (TInputIterator begin_r, TInputIterator end_r) | |
Ctor building a set from a range. | |
bool | empty () const |
Whether the set is epmty. | |
size_type | size () const |
Size of the set. | |
template<class TSolv > | |
bool | contains (const TSolv &solv_r) const |
const_iterator | begin () const |
Iterator pointing to the first Solvable. | |
const_iterator | end () const |
Iterator pointing behind the last Solvable. | |
void | clear () |
Clear the container. | |
template<class TSolv > | |
bool | insert (const TSolv &solv_r) |
Insert a Solvable. | |
template<class TIterator > | |
void | insert (TIterator begin_r, TIterator end_r) |
Insert a range of Solvables. | |
Container & | get () |
The set. | |
const Container & | get () const |
The set. | |
Public Member Functions inherited from zypp::sat::SolvIterMixin< SolvableSet, std::unordered_set< Solvable >::const_iterator > | |
bool | empty () const |
Whether the collection is epmty. | |
size_type | size () const |
Size of the collection. | |
bool | contains (const TSolv &solv_r) const |
Whether collection contains a specific Solvable. | |
Solvable_iterator | solvableBegin () const |
Solvable_iterator | solvableEnd () const |
Iterable< Solvable_iterator > | solvable () const |
PoolItem_iterator | poolItemBegin () const |
PoolItem_iterator | poolItemEnd () const |
Iterable< PoolItem_iterator > | poolItem () const |
Selectable_iterator | selectableBegin () const |
Selectable_iterator | selectableEnd () const |
Iterable< Selectable_iterator > | selectable () const |
Private Attributes | |
RWCOW_pointer< Container > | _pimpl |
Pointer to implementation. | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const SolvableSet &obj) |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const SolvableSet &obj) |
Stream output. | |
Additional Inherited Members | |
Protected Member Functions inherited from zypp::sat::SolvIterMixin< SolvableSet, std::unordered_set< Solvable >::const_iterator > | |
SolvIterMixin () | |
SolvIterMixin (const SolvIterMixin &) | |
~SolvIterMixin () | |
void | operator= (const SolvIterMixin &) |
Solvable set wrapper to allow adding additional convenience iterators.
Definition at line 35 of file SolvableSet.h.
typedef std::unordered_set<Solvable> zypp::sat::SolvableSet::Container |
Definition at line 40 of file SolvableSet.h.
typedef Container::value_type zypp::sat::SolvableSet::value_type |
Definition at line 41 of file SolvableSet.h.
typedef Container::size_type zypp::sat::SolvableSet::size_type |
Definition at line 42 of file SolvableSet.h.
Definition at line 43 of file SolvableSet.h.
|
inline |
Default ctor.
Definition at line 47 of file SolvableSet.h.
|
inline |
Ctor building a set from a range.
Definition at line 53 of file SolvableSet.h.
|
inline |
Whether the set is epmty.
Definition at line 59 of file SolvableSet.h.
|
inline |
Size of the set.
Definition at line 63 of file SolvableSet.h.
|
inline |
Definition at line 68 of file SolvableSet.h.
|
inline |
Iterator pointing to the first Solvable.
Definition at line 72 of file SolvableSet.h.
|
inline |
Iterator pointing behind the last Solvable.
Definition at line 76 of file SolvableSet.h.
|
inline |
Clear the container.
Definition at line 81 of file SolvableSet.h.
|
inline |
Insert a Solvable.
true
if it was actually inserted, or false
if already present. Definition at line 88 of file SolvableSet.h.
|
inline |
Insert a range of Solvables.
Definition at line 93 of file SolvableSet.h.
|
inline |
The set.
Definition at line 98 of file SolvableSet.h.
|
inline |
The set.
Definition at line 102 of file SolvableSet.h.
|
friend |
Definition at line 31 of file SolvableSet.cc.
|
related |
Stream output.
Definition at line 31 of file SolvableSet.cc.
|
private |
Pointer to implementation.
Definition at line 107 of file SolvableSet.h.