14#include <zypp/base/LogTools.h>
15#include <zypp/base/Hash.h>
17#include <zypp/sat/detail/PoolImpl.h>
41 typedef std::unordered_set<detail::IdType> set_type;
42 typedef std::vector<sat::detail::IdType> vector_type;
67 ctorAdd( item_r->satSolvable() );
76 {
if ( item_r )
ctorAdd( item_r->satSolvable() ); }
82 inline void addToSet(
Solvable item, set_type *& pdata, shared_ptr<void>& _private )
86 _private.reset( (pdata =
new set_type) );
88 pdata->insert( item.
id() );
100 if ( obsoleted.
empty() )
104 set_type * pdata = (
_private ?
reinterpret_cast<set_type*
>(
_private.get() ) : 0 );
107 if ( it->isSystem() )
114 if ( obsoletes.
empty() )
118 set_type * pdata = (
_private ?
reinterpret_cast<set_type*
>(
_private.get() ) : 0 );
122 IdString ident( it->detail().name() );
126 if ( iit->isSystem() && iit->ident() == ident )
138 set_type * sdata =
reinterpret_cast<set_type*
>(
_private.get() );
140 vector_type * pdata =
new vector_type( sdata->begin(), sdata->end() );
Container of Capability (currently read only).
const_iterator begin() const
Iterator pointing to the first Capability.
const_iterator end() const
Iterator pointing behind the last Capability.
bool empty() const
Whether the container is empty.
Access to the sat-pools string space.
Combining sat::Solvable and ResStatus.
TraitsType::constPtrType constPtr
A Solvable object within the sat Pool.
IdType id() const
Expert backdoor.
bool multiversionInstall() const
Whether different versions of this package can be installed at the same time.
Capabilities obsoletes() const
Container of installed Solvable which would be obsoleted by the Solvable passed to the ctor.
const_iterator end() const
Iterator pointing behind the last Solvable.
void ctorAdd(const PoolItem &item_r)
WhatObsoletes()
Default ctor.
size_type size() const
Number of solvables inside.
const sat::detail::IdType * _begin
shared_ptr< void > _private
const_iterator begin() const
Iterator pointing to the first Solvable.
Container of Solvable providing a Capability (read only).
const_iterator end() const
Iterator pointing behind the last Solvable.
bool empty() const
Whether the container is empty.
const_iterator begin() const
Iterator pointing to the first Solvable.
String related utilities and Regular expression matching.
static const IdType noId(0)
int IdType
Generic Id type.
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
bool obsoleteUsesProvides
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & dumpRange(std::ostream &str, TIterator begin, TIterator end, const std::string &intro="{", const std::string &pfx="\n ", const std::string &sep="\n ", const std::string &sfx="\n", const std::string &extro="}")
Print range defined by iterators (multiline style).
Solvable satSolvable() const
Return the corresponding sat::Solvable.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.