|
libzypp
9.1.2
|
Solvable set wrapper to allow adding additioanal convenience iterators. More...
#include <SolvableSet.h>

Public Types | |
| typedef std::tr1::unordered_set < Solvable > | Container |
| typedef Container::value_type | value_type |
| typedef Container::size_type | size_type |
| typedef Solvable_iterator | const_iterator |
Public Member Functions | |
| SolvableSet () | |
| Default ctor. | |
| template<class _InputIterator > | |
| SolvableSet (_InputIterator begin_r, _InputIterator 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 _Solv > | |
| bool | contains (const _Solv &solv_r) const |
| Whether collection contains a specific Solvable. | |
| const_iterator | begin () const |
| Iterator pointing to the first Solvable. | |
| const_iterator | end () const |
| Iterator pointing behind the last Solvable. | |
| template<class _Solv > | |
| bool | insert (const _Solv &solv_r) |
| Insert a Solvable. | |
| Container & | get () |
| The set. | |
| const Container & | get () const |
| The set. | |
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) |
Solvable set wrapper to allow adding additioanal convenience iterators.
Definition at line 35 of file SolvableSet.h.
| typedef std::tr1::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 |
Reimplemented from zypp::sat::SolvIterMixin< SolvableSet, std::tr1::unordered_set< Solvable >::const_iterator >.
Definition at line 42 of file SolvableSet.h.
Definition at line 43 of file SolvableSet.h.
| zypp::sat::SolvableSet::SolvableSet | ( | ) | [inline] |
Default ctor.
Definition at line 47 of file SolvableSet.h.
| zypp::sat::SolvableSet::SolvableSet | ( | _InputIterator | begin_r, |
| _InputIterator | end_r | ||
| ) | [inline] |
Ctor building a set from a range.
Definition at line 53 of file SolvableSet.h.
| bool zypp::sat::SolvableSet::empty | ( | ) | const [inline] |
Whether the set is epmty.
Reimplemented from zypp::sat::SolvIterMixin< SolvableSet, std::tr1::unordered_set< Solvable >::const_iterator >.
Definition at line 59 of file SolvableSet.h.
References _pimpl.
| size_type zypp::sat::SolvableSet::size | ( | ) | const [inline] |
Size of the set.
Reimplemented from zypp::sat::SolvIterMixin< SolvableSet, std::tr1::unordered_set< Solvable >::const_iterator >.
Definition at line 63 of file SolvableSet.h.
References _pimpl.
| bool zypp::sat::SolvableSet::contains | ( | const _Solv & | solv_r | ) | const [inline] |
Whether collection contains a specific Solvable.
Reimplemented from zypp::sat::SolvIterMixin< SolvableSet, std::tr1::unordered_set< Solvable >::const_iterator >.
Definition at line 68 of file SolvableSet.h.
References end().
| const_iterator zypp::sat::SolvableSet::begin | ( | ) | const [inline] |
Iterator pointing to the first Solvable.
Definition at line 72 of file SolvableSet.h.
References _pimpl.
Referenced by zypp::Patch::interactive(), and zypp::sat::operator<<().
| const_iterator zypp::sat::SolvableSet::end | ( | ) | const [inline] |
Iterator pointing behind the last Solvable.
Definition at line 76 of file SolvableSet.h.
References _pimpl.
Referenced by contains(), zypp::Patch::interactive(), and zypp::sat::operator<<().
| bool zypp::sat::SolvableSet::insert | ( | const _Solv & | solv_r | ) | [inline] |
Insert a Solvable.
true if it was actually inserted, or false if already present. Definition at line 85 of file SolvableSet.h.
References insert().
Referenced by insert().
| Container& zypp::sat::SolvableSet::get | ( | ) | [inline] |
The set.
Definition at line 90 of file SolvableSet.h.
References _pimpl.
Referenced by zypp::Pattern::contents(), and zypp::Patch::contents().
| const Container& zypp::sat::SolvableSet::get | ( | ) | const [inline] |
| std::ostream& operator<< | ( | std::ostream & | str, |
| const SolvableSet & | obj | ||
| ) | [friend] |
Definition at line 31 of file SolvableSet.cc.
| std::ostream & operator<< | ( | std::ostream & | str, |
| const SolvableSet & | obj | ||
| ) | [related] |
Stream output
Definition at line 31 of file SolvableSet.cc.
RWCOW_pointer<Container> zypp::sat::SolvableSet::_pimpl [private] |
1.7.6.1