libzypp 8.13.6
Public Types | Public Member Functions | Private Attributes | Friends

zypp::sat::SolvableSet Class Reference

Solvable set wrapper to allow adding additioanal convenience iterators. More...

#include <SolvableSet.h>

Inheritance diagram for zypp::sat::SolvableSet:
Inheritance graph
[legend]

List of all members.

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.
Containerget ()
 The set.
const Containerget () const
 The set.

Private Attributes

RWCOW_pointer< Container_pimpl
 Pointer to implementation.

Friends

std::ostream & operator<< (std::ostream &str, const SolvableSet &obj)

Detailed Description

Solvable set wrapper to allow adding additioanal convenience iterators.

Definition at line 35 of file SolvableSet.h.


Member Typedef Documentation

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

Definition at line 43 of file SolvableSet.h.


Constructor & Destructor Documentation

zypp::sat::SolvableSet::SolvableSet ( ) [inline]

Default ctor.

Definition at line 47 of file SolvableSet.h.

template<class _InputIterator >
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.


Member Function Documentation

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.

template<class _Solv >
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<<().

template<class _Solv >
bool zypp::sat::SolvableSet::insert ( const _Solv &  solv_r) [inline]

Insert a Solvable.

Returns:
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]

The set.

Definition at line 94 of file SolvableSet.h.

References _pimpl.


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const SolvableSet obj 
) [friend]

Stream output

Definition at line 31 of file SolvableSet.cc.


Member Data Documentation

Pointer to implementation.

Definition at line 99 of file SolvableSet.h.

Referenced by begin(), empty(), end(), get(), and size().


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