libzypp
13.10.6
|
Global sat-pool. More...
#include <Pool.h>
Public Types | |
typedef detail::SolvableIterator | SolvableIterator |
typedef zypp::detail::RepositoryIterator | RepositoryIterator |
typedef detail::size_type | size_type |
Public Member Functions | |
Pool (const detail::PoolMember &) | |
Ctor from PoolMember. More... | |
size_type | capacity () const |
Internal array size for stats only. More... | |
const SerialNumber & | serial () const |
Housekeeping data serial number. More... | |
void | prepare () const |
Update housekeeping data if necessary (e.g. More... | |
void | prepareForSolving () const |
prepare plus some expensive checks done before solving only. More... | |
bool | reposEmpty () const |
Whether Pool contains repos. More... | |
size_type | reposSize () const |
Number of repos in Pool. More... | |
RepositoryIterator | reposBegin () const |
Iterator to the first Repository. More... | |
RepositoryIterator | reposEnd () const |
Iterator behind the last Repository. More... | |
Repository | reposInsert (const std::string &alias_r) |
Return a Repository named alias_r . More... | |
Repository | reposFind (const std::string &alias_r) const |
Find a Repository named alias_r . More... | |
void | reposErase (const std::string &alias_r) |
Remove a Repository named alias_r . More... | |
Repository | findSystemRepo () const |
Return the system repository if it is on the pool. More... | |
Repository | systemRepo () |
Return the system repository, create it if missing. More... | |
Repository | addRepoSolv (const Pathname &file_r, const std::string &name_r) |
Load Solvables from a solv-file into a Repository named name_r . More... | |
Repository | addRepoSolv (const Pathname &file_r) |
Repository | addRepoSolv (const Pathname &file_r, const RepoInfo &info_r) |
Repository | addRepoHelix (const Pathname &file_r, const std::string &name_r) |
Load Solvables from a helix-file into a Repository named name_r . More... | |
Repository | addRepoHelix (const Pathname &file_r) |
Repository | addRepoHelix (const Pathname &file_r, const RepoInfo &info_r) |
bool | solvablesEmpty () const |
Whether Pool contains solvables. More... | |
size_type | solvablesSize () const |
Number of solvables in Pool. More... | |
SolvableIterator | solvablesBegin () const |
Iterator to the first Solvable. More... | |
SolvableIterator | solvablesEnd () const |
Iterator behind the last Solvable. More... | |
WhatProvides | whatProvides (Capability cap_r) const |
Conainer of all Solvable providing cap_r . More... | |
::_Pool * | get () const |
Expert backdoor. More... | |
Iterate all Solvables matching a \c _Filter. | |
template<class _Filter > | |
filter_iterator< _Filter, SolvableIterator > | filterBegin (const _Filter &filter_r) const |
template<class _Filter > | |
filter_iterator< _Filter, SolvableIterator > | filterEnd (const _Filter &filter_r) const |
Requested locales. | |
void | setTextLocale (const Locale &locale_r) |
Set the default language for retrieving translated texts. More... | |
void | setRequestedLocales (const LocaleSet &locales_r) |
Set the requested locales. More... | |
bool | addRequestedLocale (const Locale &locale_r) |
Add one Locale to the set of requested locales. More... | |
bool | eraseRequestedLocale (const Locale &locale_r) |
Erase one Locale from the set of requested locales. More... | |
const LocaleSet & | getRequestedLocales () const |
Return the requested locales. More... | |
bool | isRequestedLocale (const Locale &locale_r) const |
Whether this Locale is in the set of requested locales. More... | |
const LocaleSet & | getAvailableLocales () const |
Get the set of available locales. More... | |
bool | isAvailableLocale (const Locale &locale_r) const |
Whether this Locale is in the set of available locales. More... | |
Static Public Member Functions | |
static Pool | instance () |
Singleton ctor. More... | |
static const std::string & | systemRepoAlias () |
Reserved system repository alias . More... | |
Private Member Functions | |
Pool () | |
Default ctor. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const Pool &obj) |
bool | operator== (const Pool &lhs, const Pool &rhs) |
bool | operator!= (const Pool &lhs, const Pool &rhs) |
Multiversion install. | |
Ident list of all packages that can be installed in different version at the same time. (
| |
typedef IdStringSet::const_iterator | MultiversionIterator |
bool | multiversionEmpty () const |
size_t | multiversionSize () const |
MultiversionIterator | multiversionBegin () const |
MultiversionIterator | multiversionEnd () const |
bool | isMultiversion (IdString ident_r) const |
Installed on behalf of a user request hint. | |
This is a hint guessed by evaluating an available install history. | |
typedef IdStringSet::const_iterator | OnSystemByUserIterator |
bool | onSystemByUserEmpty () const |
size_t | onSystemByUserSize () const |
OnSystemByUserIterator | onSystemByUserBegin () const |
OnSystemByUserIterator | onSystemByUserEnd () const |
bool | isOnSystemByUser (IdString ident_r) const |
Additional Inherited Members | |
Static Protected Member Functions inherited from zypp::sat::detail::PoolMember | |
static PoolImpl & | myPool () |
typedef IdStringSet::const_iterator zypp::sat::Pool::MultiversionIterator |
typedef IdStringSet::const_iterator zypp::sat::Pool::OnSystemByUserIterator |
|
inline |
|
inlinestatic |
Pool::size_type zypp::sat::Pool::capacity | ( | ) | const |
const SerialNumber & zypp::sat::Pool::serial | ( | ) | const |
void zypp::sat::Pool::prepare | ( | ) | const |
void zypp::sat::Pool::prepareForSolving | ( | ) | const |
bool zypp::sat::Pool::reposEmpty | ( | ) | const |
Pool::size_type zypp::sat::Pool::reposSize | ( | ) | const |
Pool::RepositoryIterator zypp::sat::Pool::reposBegin | ( | ) | const |
Iterator to the first Repository.
Pool::RepositoryIterator zypp::sat::Pool::reposEnd | ( | ) | const |
Iterator behind the last Repository.
Repository zypp::sat::Pool::reposInsert | ( | const std::string & | alias_r | ) |
Return a Repository named alias_r
.
It a such a Repository does not already exist a new empty Repository is created.
Repository zypp::sat::Pool::reposFind | ( | const std::string & | alias_r | ) | const |
Find a Repository named alias_r
.
Returns norepository if there is no such Repository.
|
inline |
Remove a Repository named alias_r
.
|
static |
Repository zypp::sat::Pool::findSystemRepo | ( | ) | const |
Repository zypp::sat::Pool::systemRepo | ( | ) |
Repository zypp::sat::Pool::addRepoSolv | ( | const Pathname & | file_r, |
const std::string & | name_r | ||
) |
Load Solvables from a solv-file into a Repository named name_r
.
In case of an exception the Repository is removed from the Pool.
Exception | if loading the solv-file fails. |
Repository zypp::sat::Pool::addRepoSolv | ( | const Pathname & | file_r | ) |
Repository zypp::sat::Pool::addRepoSolv | ( | const Pathname & | file_r, |
const RepoInfo & | info_r | ||
) |
Repository zypp::sat::Pool::addRepoHelix | ( | const Pathname & | file_r, |
const std::string & | name_r | ||
) |
Load Solvables from a helix-file into a Repository named name_r
.
Supports loading of gzip compressed files (.gz). In case of an exception the Repository is removed from the Pool.
Exception | if loading the helix-file fails. |
Repository zypp::sat::Pool::addRepoHelix | ( | const Pathname & | file_r | ) |
Repository zypp::sat::Pool::addRepoHelix | ( | const Pathname & | file_r, |
const RepoInfo & | info_r | ||
) |
bool zypp::sat::Pool::solvablesEmpty | ( | ) | const |
Pool::size_type zypp::sat::Pool::solvablesSize | ( | ) | const |
Pool::SolvableIterator zypp::sat::Pool::solvablesBegin | ( | ) | const |
Pool::SolvableIterator zypp::sat::Pool::solvablesEnd | ( | ) | const |
|
inline |
|
inline |
|
inline |
void zypp::sat::Pool::setTextLocale | ( | const Locale & | locale_r | ) |
Set the default language for retrieving translated texts.
Updated when calling ZConfig::setTextLocale.
void zypp::sat::Pool::setRequestedLocales | ( | const LocaleSet & | locales_r | ) |
bool zypp::sat::Pool::addRequestedLocale | ( | const Locale & | locale_r | ) |
bool zypp::sat::Pool::eraseRequestedLocale | ( | const Locale & | locale_r | ) |
const LocaleSet & zypp::sat::Pool::getRequestedLocales | ( | ) | const |
bool zypp::sat::Pool::isRequestedLocale | ( | const Locale & | locale_r | ) | const |
const LocaleSet & zypp::sat::Pool::getAvailableLocales | ( | ) | const |
bool zypp::sat::Pool::isAvailableLocale | ( | const Locale & | locale_r | ) | const |
Pool::MultiversionIterator zypp::sat::Pool::multiversionBegin | ( | ) | const |
Pool::MultiversionIterator zypp::sat::Pool::multiversionEnd | ( | ) | const |
bool zypp::sat::Pool::isMultiversion | ( | IdString | ident_r | ) | const |
Pool::OnSystemByUserIterator zypp::sat::Pool::onSystemByUserBegin | ( | ) | const |
Pool::OnSystemByUserIterator zypp::sat::Pool::onSystemByUserEnd | ( | ) | const |
bool zypp::sat::Pool::isOnSystemByUser | ( | IdString | ident_r | ) | const |
|
related |