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 );
105 for_( it, obsoleted.begin(), obsoleted.end() )
107 if ( it->isSystem() )
114 if ( obsoletes.empty() )
118 set_type * pdata = (
_private ?
reinterpret_cast<set_type*
>(
_private.get() ) : 0 );
119 for_( it, obsoletes.begin(), obsoletes.end() )
122 IdString ident( it->detail().name() );
124 for_( iit, obsoleted.begin(), obsoleted.end() )
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() );
const_iterator begin() const
Iterator pointing to the first Solvable.
int IdType
Generic Id type.
A Solvable object within the sat Pool.
Container of Solvable providing a Capability (read only).
IdType id() const
Expert backdoor.
Container of Capability (currently read only).
WhatObsoletes()
Default ctor.
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
std::ostream & dumpRange(std::ostream &str, TIterator begin, TIterator end, const std::string &intro="{", const std::string &pfx="\ ", const std::string &sep="\ ", const std::string &sfx="\, const std::string &extro="}")
Print range defined by iterators (multiline style).
String related utilities and Regular expression matching.
Access to the sat-pools string space.
size_type size() const
Number of solvables inside.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
TraitsType::constPtrType constPtr
const_iterator end() const
Iterator pointing behind the last Solvable.
const sat::detail::IdType * _begin
shared_ptr< void > _private
void ctorAdd(const PoolItem &item_r)
bool multiversionInstall() const
Whether different versions of this package can be installed at the same time.
Container of installed Solvable which would be obsoleted by the Solvable passed to the ctor...
static const IdType noId(0)
Combining sat::Solvable and ResStatus.
Capabilities obsoletes() const
bool obsoleteUsesProvides
Easy-to use interface to the ZYPP dependency resolver.
Solvable satSolvable() const
Return the corresponding sat::Solvable.