12 #ifndef ZYPP_SAT_POOL_H
13 #define ZYPP_SAT_POOL_H
156 template<
class _Filter>
157 filter_iterator<_Filter,SolvableIterator>
filterBegin(
const _Filter & filter_r )
const
160 template<
class _Filter>
161 filter_iterator<_Filter,SolvableIterator>
filterEnd(
const _Filter & filter_r )
const
245 ::_Pool *
get()
const;
253 std::ostream &
operator<<( std::ostream & str,
const Pool & obj );
257 {
return lhs.
get() == rhs.
get(); }
261 {
return lhs.
get() != rhs.
get(); }
269 #endif // ZYPP_SAT_POOL_H
::_Pool * get() const
Expert backdoor.
Repository reposInsert(const std::string &alias_r)
Return a Repository named alias_r.
Container of Solvable providing a Capability (read only).
void setRequestedLocales(const LocaleSet &locales_r)
Set the requested locales.
OnSystemByUserIterator onSystemByUserBegin() const
size_type reposSize() const
Number of repos in Pool.
std::ostream & operator<<(std::ostream &str, const LocaleSupport &obj)
void setTextLocale(const Locale &locale_r)
Set the default language for retrieving translated texts.
bool onSystemByUserEmpty() const
SolvableIterator solvablesEnd() const
Iterator behind the last Solvable.
bool isRequestedLocale(const Locale &locale_r) const
Whether this Locale is in the set of requested locales.
bool isMultiversion(IdString ident_r) const
What is known about a repository.
Access to the sat-pools string space.
filter_iterator< _Filter, SolvableIterator > filterEnd(const _Filter &filter_r) const
bool operator==(const Pool &lhs, const Pool &rhs)
IdStringSet::const_iterator OnSystemByUserIterator
Repository addRepoHelix(const Pathname &file_r, const std::string &name_r)
Load Solvables from a helix-file into a Repository named name_r.
void reposErase(const std::string &alias_r)
Remove a Repository named alias_r.
const SerialNumber & serial() const
Housekeeping data serial number.
size_type solvablesSize() const
Number of solvables in Pool.
size_t onSystemByUserSize() const
RepositoryIterator reposEnd() const
Iterator behind the last Repository.
size_type capacity() const
Internal array size for stats only.
Repository systemRepo()
Return the system repository, create it if missing.
Pool(const detail::PoolMember &)
Ctor from PoolMember.
static Pool instance()
Singleton ctor.
Backlink to the associated PoolImpl.
static const std::string & systemRepoAlias()
Reserved system repository alias .
zypp::detail::RepositoryIterator RepositoryIterator
bool isOnSystemByUser(IdString ident_r) const
IdStringSet::const_iterator MultiversionIterator
MultiversionIterator multiversionEnd() const
bool reposEmpty() const
Whether Pool contains repos.
Repository reposFind(const std::string &alias_r) const
Find a Repository named alias_r.
RepositoryIterator reposBegin() const
Iterator to the first Repository.
std::tr1::unordered_set< Locale > LocaleSet
bool multiversionEmpty() const
detail::SolvableIterator SolvableIterator
bool addRequestedLocale(const Locale &locale_r)
Add one Locale to the set of requested locales.
Simple serial number provider.
WhatProvides whatProvides(Capability cap_r) const
Conainer of all Solvable providing cap_r.
OnSystemByUserIterator onSystemByUserEnd() const
size_t multiversionSize() const
detail::size_type size_type
const LocaleSet & getRequestedLocales() const
Return the requested locales.
bool isAvailableLocale(const Locale &locale_r) const
Whether this Locale is in the set of available locales.
void prepare() const
Update housekeeping data if necessary (e.g.
void eraseFromPool()
Remove this Repository from it's Pool.
SolvableIterator solvablesBegin() const
Iterator to the first Solvable.
filter_iterator< _Filter, SolvableIterator > filterBegin(const _Filter &filter_r) const
const LocaleSet & getAvailableLocales() const
Get the set of available locales.
bool operator!=(const Pool &lhs, const Pool &rhs)
Repository addRepoSolv(const Pathname &file_r, const std::string &name_r)
Load Solvables from a solv-file into a Repository named name_r.
bool solvablesEmpty() const
Whether Pool contains solvables.
MultiversionIterator multiversionBegin() const
Repository findSystemRepo() const
Return the system repository if it is on the pool.
bool eraseRequestedLocale(const Locale &locale_r)
Erase one Locale from the set of requested locales.
void prepareForSolving() const
prepare plus some expensive checks done before solving only.