12#ifndef ZYPP_SAT_POOL_H
13#define ZYPP_SAT_POOL_H
17#include <zypp/Pathname.h>
181 template<
class TFilter>
182 filter_iterator<TFilter,SolvableIterator>
filterBegin(
const TFilter & filter_r )
const
185 template<
class TFilter>
186 filter_iterator<TFilter,SolvableIterator>
filterEnd(
const TFilter & filter_r )
const
291 std::ostream &
operator<<( std::ostream &
str,
const Pool & obj );
295 {
return lhs.
get() == rhs.
get(); }
299 {
return lhs.
get() != rhs.
get(); }
'Language[_Country]' codes.
What is known about a repository.
void eraseFromPool()
Remove this Repository from its Pool.
Simple serial number provider.
filter_iterator< TFilter, SolvableIterator > filterEnd(const TFilter &filter_r) const
SolvableSet MultiversionList
const SerialNumber & serialIDs() const
Serial number changing whenever resusePoolIDs==true was used.
Queue autoInstalled() const
Get ident list of all autoinstalled solvables.
Pool(const detail::PoolMember &)
Ctor from PoolMember.
RepositoryIterator reposEnd() const
Iterator behind the last Repository.
bool addRequestedLocale(const Locale &locale_r)
Add one Locale to the set of requested locales.
size_type reposSize() const
Number of repos in Pool.
const MultiversionList & multiversion() const
const LocaleSet & getAvailableLocales() const
Get the set of available locales.
void setAutoInstalled(const Queue &autoInstalled_r)
Set ident list of all autoinstalled solvables.
Queue whatMatchesSolvable(const SolvAttr &attr, const Solvable &solv) const
Iterable< RepositoryIterator > repos() const
Iterate the repositories.
const LocaleSet & getRemovedRequestedLocales() const
Removed since last initRequestedLocales.
Queue whatContainsDep(const SolvAttr &attr, const Capability &cap) const
bool solvablesEmpty() const
Whether Pool contains solvables.
bool isRequestedLocale(const Locale &locale_r) const
Whether this Locale is in the set of requested locales.
WhatProvides whatProvides(Capability cap_r) const
Conainer of all Solvable providing cap_r.
Repository findSystemRepo() const
Return the system repository if it is on the pool.
size_type capacity() const
Internal array size for stats only.
filter_iterator< TFilter, SolvableIterator > filterBegin(const TFilter &filter_r) const
void reposErase(const std::string &alias_r)
Remove a Repository named alias_r.
SolvableIterator solvablesEnd() const
Iterator behind the last Solvable.
void setTextLocale(const Locale &locale_r)
Set the default language for retrieving translated texts.
Iterable< SolvableIterator > solvables() const
Iterate the solvables.
detail::SolvableIterator SolvableIterator
Pathname rootDir() const
Get rootdir (for file conflicts check)
zypp::detail::RepositoryIterator RepositoryIterator
RepositoryIterator reposBegin() const
Iterator to the first Repository.
Repository reposFind(const std::string &alias_r) const
Find a Repository named alias_r.
size_type solvablesSize() const
Number of solvables in Pool.
const SerialNumber & serial() const
Housekeeping data serial number.
Repository addRepoSolv(const Pathname &file_r, const std::string &name_r)
Load Solvables from a solv-file into a Repository named name_r.
bool eraseRequestedLocale(const Locale &locale_r)
Erase one Locale from the set of requested locales.
void reposEraseAll()
Remove all repos from the pool.
static Pool instance()
Singleton ctor.
bool isAvailableLocale(const Locale &locale_r) const
Whether this Locale is in the set of available locales.
Queue whatMatchesDep(const SolvAttr &attr, const Capability &cap) const
ZYPP_DEPRECATED bool multiversionEmpty() const
static const std::string & systemRepoAlias()
Reserved system repository alias @System .
Repository addRepoHelix(const Pathname &file_r, const std::string &name_r)
Load Solvables from a helix-file into a Repository named name_r.
SolvableIterator solvablesBegin() const
Iterator to the first Solvable.
bool operator==(const Pool &lhs, const Pool &rhs)
Repository reposInsert(const std::string &alias_r)
Return a Repository named alias_r.
void prepare() const
Update housekeeping data if necessary (e.g.
detail::size_type size_type
void setNeedrebootSpec(sat::SolvableSpec needrebootSpec_r)
Solvables which should trigger the reboot-needed hint if installed/updated.
detail::CPool * get() const
Expert backdoor.
void setRequestedLocales(const LocaleSet &locales_r)
Set the requested locales.
Repository systemRepo()
Return the system repository, create it if missing.
const LocaleSet & getRequestedLocales() const
Return the requested locales.
const LocaleSet & getAddedRequestedLocales() const
Added since last initRequestedLocales.
bool reposEmpty() const
Whether Pool contains repos.
bool operator!=(const Pool &lhs, const Pool &rhs)
void initRequestedLocales(const LocaleSet &locales_r)
Start tracking changes based on this locales_r.
Libsolv Id queue wrapper.
Solvable set wrapper to allow adding additional convenience iterators.
bool empty() const
Whether the set is epmty.
Define a set of Solvables by ident and provides.
A Solvable object within the sat Pool.
Container of Solvable providing a Capability (read only).
Iterate over valid Solvables in the pool.
String related utilities and Regular expression matching.
::s_Pool CPool
Wrapped libsolv C data type exposed as backdoor.
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
void updateSolvFileIndex(const Pathname &solvfile_r)
Create solv file content digest for zypper bash completion.
Easy-to use interface to the ZYPP dependency resolver.
std::unordered_set< Locale > LocaleSet
Backlink to the associated PoolImpl.
#define ZYPP_DEPRECATED
The ZYPP_DEPRECATED macro can be used to trigger compile-time warnings with gcc >= 3....