12#ifndef ZYPP_RESPOOLPROXY_H
13#define ZYPP_RESPOOLPROXY_H
17#include <zypp/base/PtrTypes.h>
128 {
return makeIterable( byKindBegin<TRes>(), byKindEnd<TRes>() ); }
152 return( make_begin<ui::selfilter::ByHasInstalledObj>( kind_r )
153 != make_end<ui::selfilter::ByHasInstalledObj>( kind_r ) );
202 struct ScopedSaveState;
215 template<
class TFilter>
216 filter_iterator<TFilter,const_iterator>
219 return make_filter_iterator( filter_r,
223 template<
class TFilter>
224 filter_iterator<TFilter,const_iterator>
231 template<
class TFilter>
232 filter_iterator<TFilter,const_iterator>
235 return make_filter_iterator( filter_r,
239 template<
class TFilter>
240 filter_iterator<TFilter,const_iterator>
243 return make_end( TFilter(), kind_r );
Access to the sat-pools string space.
Combining sat::Solvable and ResStatus.
TraitsType::constPtrType constPtr
ResPool::instance().proxy();.
MapKVIteratorTraits< SelectablePool >::Value_const_iterator const_iterator
bool hasInstalledObj(const ResKind &kind_r) const
Test whether there is at least one ui::Selectable with an installed object.
bool hasInstalledObj() const
Iterable< const_iterator > byKind(const ResKind &kind_r) const
const_iterator byKindEnd() const
ui::Selectable::Ptr lookup(const PoolItem &pi_r) const
ui::Selectable::Ptr lookup(ResKind kind_r, const std::string &name_r) const
ui::Selectable::Ptr lookup(const sat::Solvable &solv_r) const
ui::Selectable::Ptr lookup(IdString ident_r) const
filter_iterator< TFilter, const_iterator > make_begin(const ResKind &kind_r) const
size_type knownRepositoriesSize() const
Iterable< const_iterator > byKind() const
friend std::ostream & operator<<(std::ostream &str, const ResPoolProxy &obj)
const_iterator begin() const
Iterable< repository_iterator > knownRepositories() const
ResPool::repository_iterator repository_iterator
filter_iterator< TFilter, const_iterator > make_end(const ResKind &kind_r) const
const_iterator end() const
std::multimap< ResKind, ui::Selectable::Ptr > SelectablePool
ui::Selectable::Ptr lookup(const ResObject::constPtr &resolvable_r) const
ResPoolProxy()
Default ctor: no pool Nonempty proxies are provided by ResPool.
RW_pointer< Impl > _pimpl
Pointer to implementation.
filter_iterator< TFilter, const_iterator > make_end(TFilter filter_r, const ResKind &kind_r) const
filter_iterator< TFilter, const_iterator > make_begin(TFilter filter_r, const ResKind &kind_r) const
void restoreState() const
ScopedSaveState && scopedSaveState() const
repository_iterator knownRepositoriesBegin() const
SelectablePool::size_type size_type
ui::Selectable::Ptr lookup(const pool::ByIdent &ident_r) const
friend std::ostream & dumpOn(std::ostream &str, const ResPoolProxy &obj)
void restoreState() const
repository_iterator knownRepositoriesEnd() const
ScopedSaveState scopedSaveState() const
const_iterator byKindBegin() const
Main filter selecting PoolItems by name and kind.
A Solvable object within the sat Pool.
intrusive_ptr< Selectable > Ptr
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
transform_iterator< GetPairSecond< typename MapType::value_type >, typename MapType::const_iterator > Value_const_iterator
The value iterator type.
Wrapper for const correct access via Smart pointer types.
ResPoolProxy implementation.
scoped_ptr< ResKind > _kind
Impl(const ResPoolProxy &pool_r, const ResKind &kind_r)
Impl(const ResPoolProxy &pool_r)
Exception safe scoped save/restore state.
NON_COPYABLE_BUT_MOVE(ScopedSaveState)
ScopedSaveState(const ResPoolProxy &pool_r)
ScopedSaveState(const ResPoolProxy &pool_r, const ResKind &kind_r)
std::unique_ptr< Impl > _pimpl
Solvable satSolvable() const
Return the corresponding sat::Solvable.