|
libzypp 17.37.0
|
Global sat-pool. More...
#include <zypp/sat/Pool.h>
Public Types | |
| using | SolvableIterator = detail::SolvableIterator |
| using | RepositoryIterator = zypp::detail::RepositoryIterator |
| using | size_type = detail::size_type |
Public Member Functions | |
| Pool (const detail::PoolMember &) | |
| Ctor from PoolMember. | |
| size_type | capacity () const |
| Internal array size for stats only. | |
| const SerialNumber & | serial () const |
| Housekeeping data serial number. | |
| const SerialNumber & | serialIDs () const |
| Serial number changing whenever resusePoolIDs==true was used. | |
| void | prepare () const |
| Update housekeeping data if necessary (e.g. | |
| Pathname | rootDir () const |
| Get rootdir (for file conflicts check) | |
| void | rootDir (const Pathname &root_r) |
| Set rootdir (for file conflicts check) | |
| bool | reposEmpty () const |
| Whether Pool contains repos. | |
| size_type | reposSize () const |
| Number of repos in Pool. | |
| RepositoryIterator | reposBegin () const |
| Iterator to the first Repository. | |
| RepositoryIterator | reposEnd () const |
| Iterator behind the last Repository. | |
| Iterable< RepositoryIterator > | repos () const |
| Iterate the repositories. | |
| Repository | reposInsert (const std::string &alias_r) |
Return a Repository named alias_r. | |
| Repository | reposFind (const std::string &alias_r) const |
Find a Repository named alias_r. | |
| void | reposErase (const std::string &alias_r) |
Remove a Repository named alias_r. | |
| void | reposEraseAll () |
| Remove all repos from the pool. | |
| Repository | findSystemRepo () const |
| Return the system repository if it is on the pool. | |
| Repository | systemRepo () |
| Return the system repository, create it if missing. | |
| Repository | addRepoSolv (const Pathname &file_r, const std::string &name_r) |
Load Solvables from a solv-file into a Repository named name_r. | |
| 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. | |
| Repository | addRepoHelix (const Pathname &file_r) |
| Repository | addRepoHelix (const Pathname &file_r, const RepoInfo &info_r) |
| bool | solvablesEmpty () const |
| Whether Pool contains solvables. | |
| size_type | solvablesSize () const |
| Number of solvables in Pool. | |
| SolvableIterator | solvablesBegin () const |
| Iterator to the first Solvable. | |
| SolvableIterator | solvablesEnd () const |
| Iterator behind the last Solvable. | |
| Iterable< SolvableIterator > | solvables () const |
| Iterate the solvables. | |
Iterate all Solvables matching a \c TFilter. | |
| template<class TFilter> | |
| filter_iterator< TFilter, SolvableIterator > | filterBegin (const TFilter &filter_r) const |
| template<class TFilter> | |
| filter_iterator< TFilter, SolvableIterator > | filterEnd (const TFilter &filter_r) const |
| WhatProvides | whatProvides (Capability cap_r) const |
Conainer of all Solvable providing cap_r. | |
| Queue | whatMatchesDep (const SolvAttr &attr, const Capability &cap) const |
| Queue | whatMatchesSolvable (const SolvAttr &attr, const Solvable &solv) const |
| Queue | whatContainsDep (const SolvAttr &attr, const Capability &cap) const |
Requested locales. | |
| void | setTextLocale (const Locale &locale_r) |
| Set the default language for retrieving translated texts. | |
| void | setRequestedLocales (const LocaleSet &locales_r) |
| Set the requested locales. | |
| bool | addRequestedLocale (const Locale &locale_r) |
| Add one Locale to the set of requested locales. | |
| bool | eraseRequestedLocale (const Locale &locale_r) |
| Erase one Locale from the set of requested locales. | |
| const LocaleSet & | getRequestedLocales () const |
| Return the requested locales. | |
| bool | isRequestedLocale (const Locale &locale_r) const |
| Whether this Locale is in the set of requested locales. | |
| void | initRequestedLocales (const LocaleSet &locales_r) |
| Start tracking changes based on this locales_r. | |
| const LocaleSet & | getAddedRequestedLocales () const |
| Added since last initRequestedLocales. | |
| const LocaleSet & | getRemovedRequestedLocales () const |
| Removed since last initRequestedLocales. | |
| const LocaleSet & | getAvailableLocales () const |
| Get the set of available locales. | |
| bool | isAvailableLocale (const Locale &locale_r) const |
| Whether this Locale is in the set of available locales. | |
Autoinstalled | |
| Queue | autoInstalled () const |
| Get ident list of all autoinstalled solvables. | |
| void | setAutoInstalled (const Queue &autoInstalled_r) |
| Set ident list of all autoinstalled solvables. | |
Static Public Member Functions | |
| static Pool | instance () |
| Singleton ctor. | |
| static const std::string & | systemRepoAlias () |
Reserved system repository alias @System . | |
Related Symbols | |
(Note that these are not member symbols.) | |
| std::ostream & | operator<< (std::ostream &str, const Pool &obj) ZYPP_API |
| Stream output. | |
| bool | operator== (const Pool &lhs, const Pool &rhs) |
| bool | operator!= (const Pool &lhs, const Pool &rhs) |
Multiversion install. | |
Whether the pool contains packages which are multiversion installable. | |
| using | MultiversionList = SolvableSet |
| const MultiversionList & | multiversion () const |
| ZYPP_DEPRECATED bool | multiversionEmpty () const |
Needreboot | |
| void | setNeedrebootSpec (sat::SolvableSpec needrebootSpec_r) |
| Solvables which should trigger the reboot-needed hint if installed/updated. | |
| detail::CPool * | get () const |
| Expert backdoor. | |
| Pool () | |
| Default ctor. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from zypp::sat::detail::PoolMember | |
| static PoolImpl & | myPool () |
|
inline |
|
inlinestatic |
| Pool::size_type zypp::sat::Pool::capacity | ( | ) | const |
| const SerialNumber & zypp::sat::Pool::serial | ( | ) | const |
| const SerialNumber & zypp::sat::Pool::serialIDs | ( | ) | const |
| void zypp::sat::Pool::prepare | ( | ) | const |
| Pathname zypp::sat::Pool::rootDir | ( | ) | const |
| void zypp::sat::Pool::rootDir | ( | const Pathname & | root_r | ) |
| 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.
|
inline |
| 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.
|
inline |
|
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 |
|
inline |
| sat::Queue zypp::sat::Pool::whatMatchesDep | ( | const SolvAttr & | attr, |
| const Capability & | cap ) const |
| Queue zypp::sat::Pool::whatContainsDep | ( | const SolvAttr & | attr, |
| const Capability & | cap ) const |
| 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 | ) |
| const LocaleSet & zypp::sat::Pool::getRequestedLocales | ( | ) | const |
| void zypp::sat::Pool::initRequestedLocales | ( | const LocaleSet & | locales_r | ) |
| const LocaleSet & zypp::sat::Pool::getAddedRequestedLocales | ( | ) | const |
| const LocaleSet & zypp::sat::Pool::getRemovedRequestedLocales | ( | ) | const |
| const LocaleSet & zypp::sat::Pool::getAvailableLocales | ( | ) | const |
| const Pool::MultiversionList & zypp::sat::Pool::multiversion | ( | ) | const |
|
inline |
| Queue zypp::sat::Pool::autoInstalled | ( | ) | const |
| void zypp::sat::Pool::setAutoInstalled | ( | const Queue & | autoInstalled_r | ) |
| void zypp::sat::Pool::setNeedrebootSpec | ( | sat::SolvableSpec | needrebootSpec_r | ) |
| detail::CPool * zypp::sat::Pool::get | ( | ) | const |
|