libzypp 17.31.23
zypp::sat::WhatObsoletes Class Reference

Container of installed Solvable which would be obsoleted by the Solvable passed to the ctor. More...

#include <sat/WhatObsoletes.h>

Inheritance diagram for zypp::sat::WhatObsoletes:

Public Types

typedef Solvable value_type
 
typedef unsigned size_type
 
typedef detail::WhatProvidesIterator const_iterator
 
- Public Types inherited from zypp::sat::SolvIterMixin< WhatObsoletes, detail::WhatProvidesIterator >
typedef size_t size_type
 
typedef detail::WhatProvidesIterator Solvable_iterator
 
typedef transform_iterator< asPoolItem, Solvable_iteratorPoolItem_iterator
 
typedef transform_iterator< ui::asSelectable, UnifiedSolvable_iteratorSelectable_iterator
 

Public Member Functions

 WhatObsoletes ()
 Default ctor.
 
 WhatObsoletes (Solvable item_r)
 Ctor from Solvable.
 
 WhatObsoletes (const PoolItem &item_r)
 Ctor from PoolItem.
 
 WhatObsoletes (const ResObject_constPtr item_r)
 Ctor from ResObject::constPtr.
 
template<class TIterator >
 WhatObsoletes (TIterator begin, TIterator end)
 Ctor from a range of Solvable, PoolItem or ResObject::constPtr.
 
bool empty () const
 Whether the container is empty.
 
size_type size () const
 Number of solvables inside.
 
const_iterator begin () const
 Iterator pointing to the first Solvable.
 
const_iterator end () const
 Iterator pointing behind the last Solvable.
 
- Public Member Functions inherited from zypp::sat::SolvIterMixin< WhatObsoletes, detail::WhatProvidesIterator >
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_iteratorsolvable () const
 
PoolItem_iterator poolItemBegin () const
 
PoolItem_iterator poolItemEnd () const
 
Iterable< PoolItem_iteratorpoolItem () const
 
Selectable_iterator selectableBegin () const
 
Selectable_iterator selectableEnd () const
 
Iterable< Selectable_iteratorselectable () const
 

Private Member Functions

void ctorAdd (const PoolItem &item_r)
 
void ctorAdd (ResObject_constPtr item_r)
 
void ctorAdd (Solvable item_r)
 
void ctorDone ()
 

Private Attributes

const sat::detail::IdType_begin
 
shared_ptr< void > _private
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const WhatObsoletes &obj)
 Stream output.
 

Additional Inherited Members

- Protected Member Functions inherited from zypp::sat::SolvIterMixin< WhatObsoletes, detail::WhatProvidesIterator >
 SolvIterMixin ()
 
 SolvIterMixin (const SolvIterMixin &)
 
 ~SolvIterMixin ()
 
void operator= (const SolvIterMixin &)
 
- Static Protected Member Functions inherited from zypp::sat::detail::PoolMember
static PoolImplmyPool ()
 

Detailed Description

Container of installed Solvable which would be obsoleted by the Solvable passed to the ctor.

Todo:
Publish obsoleteUsesProvides config option.

Definition at line 36 of file WhatObsoletes.h.

Member Typedef Documentation

◆ value_type

Definition at line 40 of file WhatObsoletes.h.

◆ size_type

Definition at line 41 of file WhatObsoletes.h.

◆ const_iterator

Constructor & Destructor Documentation

◆ WhatObsoletes() [1/5]

zypp::sat::WhatObsoletes::WhatObsoletes ( )
inline

Default ctor.

Definition at line 45 of file WhatObsoletes.h.

◆ WhatObsoletes() [2/5]

zypp::sat::WhatObsoletes::WhatObsoletes ( Solvable  item_r)
explicit

Ctor from Solvable.

Definition at line 48 of file WhatObsoletes.cc.

◆ WhatObsoletes() [3/5]

zypp::sat::WhatObsoletes::WhatObsoletes ( const PoolItem item_r)
explicit

Ctor from PoolItem.

Definition at line 55 of file WhatObsoletes.cc.

◆ WhatObsoletes() [4/5]

zypp::sat::WhatObsoletes::WhatObsoletes ( const ResObject_constPtr  item_r)
explicit

Ctor from ResObject::constPtr.

◆ WhatObsoletes() [5/5]

template<class TIterator >
zypp::sat::WhatObsoletes::WhatObsoletes ( TIterator  begin,
TIterator  end 
)
inline

Ctor from a range of Solvable, PoolItem or ResObject::constPtr.

Definition at line 63 of file WhatObsoletes.h.

Member Function Documentation

◆ empty()

bool zypp::sat::WhatObsoletes::empty ( ) const
inline

Whether the container is empty.

Definition at line 73 of file WhatObsoletes.h.

◆ size()

WhatObsoletes::size_type zypp::sat::WhatObsoletes::size ( ) const

Number of solvables inside.

Definition at line 148 of file WhatObsoletes.cc.

◆ begin()

const_iterator zypp::sat::WhatObsoletes::begin ( ) const
inline

Iterator pointing to the first Solvable.

Definition at line 83 of file WhatObsoletes.h.

◆ end()

const_iterator zypp::sat::WhatObsoletes::end ( ) const
inline

Iterator pointing behind the last Solvable.

Definition at line 87 of file WhatObsoletes.h.

◆ ctorAdd() [1/3]

void zypp::sat::WhatObsoletes::ctorAdd ( const PoolItem item_r)
private

Definition at line 72 of file WhatObsoletes.cc.

◆ ctorAdd() [2/3]

void zypp::sat::WhatObsoletes::ctorAdd ( ResObject_constPtr  item_r)
private

Definition at line 75 of file WhatObsoletes.cc.

◆ ctorAdd() [3/3]

void zypp::sat::WhatObsoletes::ctorAdd ( Solvable  item_r)
private

Definition at line 92 of file WhatObsoletes.cc.

◆ ctorDone()

void zypp::sat::WhatObsoletes::ctorDone ( )
private

Definition at line 133 of file WhatObsoletes.cc.

Friends And Related Function Documentation

◆ operator<<()

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

Stream output.

Definition at line 166 of file WhatObsoletes.cc.

Member Data Documentation

◆ _begin

const sat::detail::IdType* zypp::sat::WhatObsoletes::_begin
private

Definition at line 97 of file WhatObsoletes.h.

◆ _private

shared_ptr<void> zypp::sat::WhatObsoletes::_private
private

Definition at line 98 of file WhatObsoletes.h.


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