12 #ifndef ZYPP_RESPOOL_H
13 #define ZYPP_RESPOOL_H
101 {
return( resolvable_r ?
find( resolvable_r->satSolvable() ) :
PoolItem() ); }
106 template<
class _Filter>
107 filter_iterator<_Filter,const_iterator>
filterBegin(
const _Filter & filter_r )
const
110 template<
class _Filter>
111 filter_iterator<_Filter,const_iterator>
filterEnd(
const _Filter & filter_r )
const
149 return make_transform_iterator(
id2item().equal_range( ident_r.
get() ).first,
180 return make_transform_iterator(
id2item().equal_range( ident_r.
get() ).second,
407 #endif // ZYPP_RESPOOL_H
transform_iterator< Id2ItemValueSelector, Id2ItemT::const_iterator > byIdent_iterator
autoSoftLocks_iterator autoSoftLocksEnd() const
void getActiveSoftLocks(AutoSoftLocks &activeLocks_r)
Suggest a new soft-lock list based on the current selection.
ItemContainerT::size_type size_type
A Solvable object within the sat Pool.
const_iterator begin() const
byIdent_iterator byIdentBegin(sat::Solvable slv_r) const
Derive name and kind from sat::Solvable.
zypp::resfilter::ByName ByName
byName_iterator byNameBegin(const std::string &name_r) const
byIdent_iterator byIdentBegin(const PoolItem &pi_r) const
Derive name and kind from PoolItem.
byIdent_iterator byIdentBegin(ResKind kind_r, IdString name_r) const
byIdent_iterator byIdentEnd(const PoolItem &pi_r) const
Derive name and kind from PoolItem.
byKind_iterator byKindBegin(const ResKind &kind_r) const
std::vector< PoolItem > ItemContainerT
pure items
Filter solvables according to their status.
pool::PoolTraits::repository_iterator repository_iterator
byName_iterator byNameEnd(const std::string &name_r) const
pool::PoolTraits::size_type size_type
friend std::ostream & operator<<(std::ostream &str, const ResPool &obj)
bool isRequestedLocale(const Locale &locale_r) const
Whether this Locale is in the set of requested locales.
const pool::PoolTraits::Id2ItemT & id2item() const
byIdent_iterator byIdentBegin(IdString name_r) const
filter_iterator< _Filter, const_iterator > filterBegin(const _Filter &filter_r) const
In CXX0X std::_Select2nd does no longer derive from std::unary_function.
filter_iterator< _Filter, const_iterator > filterEnd(const _Filter &filter_r) const
Access to the sat-pools string space.
void setAutoSoftLocks(const AutoSoftLocks &newLocks_r)
Set a new soft-lock list.
pool::PoolTraits::HardLockQueries HardLockQueries
const_iterator end() const
bool hardLockQueriesEmpty() const
filter_iterator< _Filter, typename _Container::const_iterator > make_filter_begin(_Filter f, const _Container &c)
Convenience to create filter_iterator from container::begin().
TraitsType::constPtrType constPtr
std::list< PoolQuery > HardLockQueries
hard locks from etc/zypp/locks
byKind_iterator byKindEnd(const ResKind &kind_r) const
byIdent_iterator byIdentEnd(const ByIdent &ident_r) const
byKind_iterator byKindBegin() const
Select ResObject by name.
ResPool::instance().proxy();.
bool eraseRequestedLocale(const Locale &locale_r)
Erase one Locale from the set of requested locales.
filter_iterator< filter::ByStatus, const_iterator > byStatusEnd(const filter::ByStatus &filter_r) const
Repository reposFind(const std::string &alias_r) const
Find a Repository named alias_r.
shared_ptr< PoolImpl > Impl_Ptr
byIdent_iterator byIdentEnd(IdString name_r) const
filter_iterator< ByKind, const_iterator > byKind_iterator
byIdent_iterator byIdentEnd(const C_Str &name_r) const
filter_iterator< ByName, const_iterator > byName_iterator
pool::PoolTraits::autoSoftLocks_iterator autoSoftLocks_iterator
repository_iterator knownRepositoriesEnd() const
ResPoolProxy proxy() const
preliminary
Dependency resolver interface.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
pool::PoolTraits::byIdent_iterator byIdent_iterator
Convenience char* constructible from std::string and char*, it maps (char*)0 to an empty string...
Provides API related macros.
void getHardLockQueries(HardLockQueries &activeLocks_r)
Suggest a new set of queries based on the current selection.
byIdent_iterator byIdentEnd(sat::Solvable slv_r) const
Derive name and kind from sat::Solvable.
autoSoftLocks_iterator autoSoftLocksBegin() const
byIdent_iterator byIdentBegin(ResKind kind_r, const C_Str &name_r) const
PoolItem value_type
PoolItem
const LocaleSet & getRequestedLocales() const
Return the requested locales.
std::tr1::unordered_set< Locale > LocaleSet
filter_iterator< ByPoolItem, ItemContainerT::const_iterator > const_iterator
hardLockQueries_iterator hardLockQueriesBegin() const
sat::detail::IdType get() const
byIdent_iterator byIdentEnd(ResKind kind_r, IdString name_r) const
size_type autoSoftLocksSize() const
Simple serial number provider.
void setHardLockQueries(const HardLockQueries &newLocks_r)
Set a new set of queries.
pool::PoolTraits::AutoSoftLocks AutoSoftLocks
repository_iterator knownRepositoriesBegin() const
byIdent_iterator byIdentEnd(IdString ident_r) const
Takes a sat::Solvable::ident string.
size_type knownRepositoriesSize() const
hardLockQueries_iterator hardLockQueriesEnd() const
PoolItem find(const ResObject::constPtr &resolvable_r) const
Resolver & resolver() const
The Resolver.
bool addRequestedLocale(const Locale &locale_r)
Add one Locale to the set of requested locales.
pool::PoolTraits::hardLockQueries_iterator hardLockQueries_iterator
std::tr1::unordered_set< IdString > AutoSoftLocks
soft locks
sat::Solvable satSolvable() const
Return the corresponding sat::Solvable.
HardLockQueries::const_iterator hardLockQueries_iterator
const SerialNumber & serial() const
The pools serial number.
filter_iterator< _Filter, typename _Container::const_iterator > make_filter_end(_Filter f, const _Container &c)
Convenience to create filter_iterator from container::end().
byIdent_iterator byIdentEnd(ResKind kind_r, const C_Str &name_r) const
Reference to a PoolItem connecting ResObject and ResStatus.
const LocaleSet & getAvailableLocales() const
Get the set of available locales.
pool::PoolTraits::const_iterator const_iterator
size_type hardLockQueriesSize() const
PoolItem find(const sat::Solvable &slv_r) const
Return the corresponding PoolItem.
bool autoSoftLocksEmpty() const
byKind_iterator byKindEnd() const
Pool internal filter skiping invalid/unwanted PoolItems.
RW_pointer< pool::PoolTraits::Impl > _pimpl
Access to implementation.
std::tr1::unordered_multimap< sat::detail::IdType, PoolItem > Id2ItemT
ident index
byIdent_iterator byIdentBegin(const ByIdent &ident_r) const
ResPool(pool::PoolTraits::Impl_Ptr impl_r)
Ctor.
void setRequestedLocales(const LocaleSet &locales_r)
Set the requested locales.
const pool::PoolTraits::ItemContainerT & store() const
byIdent_iterator byIdentBegin(IdString ident_r) const
Takes a sat::Solvable::ident string.
byIdent_iterator byIdentBegin(const C_Str &name_r) const
Main filter selecting PoolItems by name and kind.
bool isAvailableLocale(const Locale &locale_r) const
Whether this Locale is in the set of available locales.
AutoSoftLocks::const_iterator autoSoftLocks_iterator
Filter solvables according to their kind.
static ResPool instance()
Singleton ctor.
filter_iterator< filter::ByStatus, const_iterator > byStatusBegin(const filter::ByStatus &filter_r) const