12 #ifndef ZYPP_SAT_POOL_H
13 #define ZYPP_SAT_POOL_H
76 void rootDir(
const Pathname & root_r );
163 template<
class _Filter>
164 filter_iterator<_Filter,SolvableIterator>
filterBegin(
const _Filter & filter_r )
const
167 template<
class _Filter>
168 filter_iterator<_Filter,SolvableIterator>
filterEnd(
const _Filter & filter_r )
const
254 std::ostream &
operator<<( std::ostream & str,
const Pool & obj );
258 {
return lhs.
get() == rhs.
get(); }
262 {
return lhs.
get() != rhs.
get(); }
270 #endif // ZYPP_SAT_POOL_H
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.
size_type reposSize() const
Number of repos in Pool.
void setTextLocale(const Locale &locale_r)
Set the default language for retrieving translated texts.
SolvableIterator solvablesEnd() const
Iterator behind the last Solvable.
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
::_Pool CPool
Wrapped libsolv C data type exposed as backdoor.
void setAutoInstalled(const Queue &autoInstalled_r)
Set ident list of all autoinstalled solvables.
bool isRequestedLocale(const Locale &locale_r) const
Whether this Locale is in the set of requested locales.
detail::CPool * get() const
Expert backdoor.
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)
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.
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
IdStringSet::const_iterator MultiversionIterator
MultiversionIterator multiversionEnd() const
Queue autoInstalled() const
Get ident list of all autoinstalled solvables.
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.
Pathname rootDir() const
Get rootdir (for file conflicts check)
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.
Libsolv Id queue wrapper.
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.