12 #ifndef ZYPP_SAT_POOL_H 13 #define ZYPP_SAT_POOL_H 179 template<
class TFilter>
180 filter_iterator<TFilter,SolvableIterator>
filterBegin(
const TFilter & filter_r )
const 183 template<
class TFilter>
184 filter_iterator<TFilter,SolvableIterator>
filterEnd(
const TFilter & filter_r )
const 284 std::ostream &
operator<<( std::ostream &
str,
const Pool & obj );
288 {
return lhs.
get() == rhs.
get(); }
292 {
return lhs.
get() != rhs.
get(); }
303 #endif // ZYPP_SAT_POOL_H void setRebootNeededIdents(const Queue &rebootNeeded_r)
Set ident list of all solvables that trigger the "reboot needed" flag.
Repository reposInsert(const std::string &alias_r)
Return a Repository named alias_r.
Container of Solvable providing a Capability (read only).
const LocaleSet & getAddedRequestedLocales() const
Added since last initRequestedLocales.
void setRequestedLocales(const LocaleSet &locales_r)
Set the requested locales.
bool reposEmpty() const
Whether Pool contains repos.
ZYPP_DEPRECATED bool multiversionEmpty() const
void setTextLocale(const Locale &locale_r)
Set the default language for retrieving translated texts.
void reposEraseAll()
Remove all repos from the pool.
SolvableIterator solvablesBegin() const
Iterator to the first Solvable.
bool isAvailableLocale(const Locale &locale_r) const
Whether this Locale is in the set of available locales.
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
::_Pool CPool
Wrapped libsolv C data type exposed as backdoor.
RepositoryIterator reposEnd() const
Iterator behind the last Repository.
Queue rebootNeededIdents() const
Get ident list of all solvables that trigger the "reboot needed" flag.
String related utilities and Regular expression matching.
void setAutoInstalled(const Queue &autoInstalled_r)
Set ident list of all autoinstalled solvables.
What is known about a repository.
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.
filter_iterator< TFilter, SolvableIterator > filterEnd(const TFilter &filter_r) const
void reposErase(const std::string &alias_r)
Remove a Repository named alias_r.
size_type capacity() const
Internal array size for stats only.
WhatProvides whatProvides(Capability cap_r) const
Conainer of all Solvable providing cap_r.
size_type reposSize() const
Number of repos in Pool.
const LocaleSet & getAvailableLocales() const
Get the set of available locales.
Repository systemRepo()
Return the system repository, create it if missing.
void prepare() const
Update housekeeping data if necessary (e.g.
void initRequestedLocales(const LocaleSet &locales_r)
Start tracking changes based on this locales_r.
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 @System .
filter_iterator< TFilter, SolvableIterator > filterBegin(const TFilter &filter_r) const
zypp::detail::RepositoryIterator RepositoryIterator
Pathname rootDir() const
Get rootdir (for file conflicts check)
detail::CPool * get() const
Expert backdoor.
bool empty() const
Whether the set is epmty.
void updateSolvFileIndex(const Pathname &solvfile_r)
Create solv file content digest for zypper bash completion.
const SerialNumber & serial() const
Housekeeping data serial number.
size_type solvablesSize() const
Number of solvables in Pool.
detail::SolvableIterator SolvableIterator
const LocaleSet & getRequestedLocales() const
Return the requested locales.
Iterable< SolvableIterator > solvables() const
Iterate the solvables.
bool addRequestedLocale(const Locale &locale_r)
Add one Locale to the set of requested locales.
RepositoryIterator reposBegin() const
Iterator to the first Repository.
bool solvablesEmpty() const
Whether Pool contains solvables.
Simple serial number provider.
const MultiversionList & multiversion() const
'Language[_Country]' codes.
Libsolv Id queue wrapper.
Queue autoInstalled() const
Get ident list of all autoinstalled solvables.
Repository reposFind(const std::string &alias_r) const
Find a Repository named alias_r.
const LocaleSet & getRemovedRequestedLocales() const
Removed since last initRequestedLocales.
SolvableIterator solvablesEnd() const
Iterator behind the last Solvable.
detail::size_type size_type
Repository findSystemRepo() const
Return the system repository if it is on the pool.
void eraseFromPool()
Remove this Repository from it's Pool.
const SerialNumber & serialIDs() const
Serial number changing whenever resusePoolIDs==true was used.
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.
#define ZYPP_DEPRECATED
The ZYPP_DEPRECATED macro can be used to trigger compile-time warnings with gcc >= 3....
Easy-to use interface to the ZYPP dependency resolver.
Iterable< RepositoryIterator > repos() const
Iterate the repositories.
bool isRequestedLocale(const Locale &locale_r) const
Whether this Locale is in the set of requested locales.
bool eraseRequestedLocale(const Locale &locale_r)
Erase one Locale from the set of requested locales.
std::unordered_set< Locale > LocaleSet
SolvableSet MultiversionList
Solvable set wrapper to allow adding additional convenience iterators.