40 {
return myPool()->nsolvables; }
52 {
return !
myPool()->urepos; }
55 {
return myPool()->urepos; }
78 if ( ! it->solvablesEmpty() )
92 ret += it->solvablesSize();
127 if ( alias_r == it->alias() )
150 tmprepo->addSolv( file_r );
158 {
return addRepoSolv( file_r, file_r.basename() ); }
174 tmprepo->addHelix( file_r );
236 return str <<
"sat::pool(" << obj.
serial() <<
")["
::_Pool * get() const
Expert backdoor.
Repository reposInsert(const std::string &alias_r)
Return a Repository named alias_r.
std::string alias() const
unique identifier for this source.
bool eraseRequestedLocale(const Locale &locale_r)
void setRequestedLocales(const LocaleSet &locales_r)
Set the requested locales.
OnSystemByUserIterator onSystemByUserBegin() const
void setAutorefresh(bool autorefresh)
enable or disable autorefresh
size_type reposSize() const
Number of repos in Pool.
std::ostream & operator<<(std::ostream &str, const LocaleSupport &obj)
void setTextLocale(const Locale &locale_r)
Set the default language for retrieving translated texts.
void resetDispose()
Set no dispose function.
bool onSystemByUserEmpty() const
::_Pool * getPool() const
SolvableIterator solvablesEnd() const
Iterator behind the last Solvable.
bool addRequestedLocale(const Locale &locale_r)
void prepareForSolving() const
prepare plus some expensive checks done before solving only.
void setEnabled(bool enabled)
enable or disable the repository
void setAlias(const std::string &alias)
set the repository alias
bool isRequestedLocale(const Locale &locale_r) const
Whether this Locale is in the set of requested locales.
bool isMultiversion(IdString ident_r) const
What is known about a repository.
bool isAvailableLocale(const Locale &locale_r) const
Access to the sat-pools string space.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
IdStringSet::const_iterator OnSystemByUserIterator
Repository addRepoHelix(const Pathname &file_r, const std::string &name_r)
Load Solvables from a helix-file into a Repository named name_r.
bool isSystemRepo() const
Return whether this is the system repository.
const SerialNumber & serial() const
Housekeeping data serial number.
const LocaleSet & getRequestedLocales() const
size_type solvablesSize() const
Number of solvables in Pool.
const SerialNumber & serial() const
Serial number changing whenever the content changes.
size_t onSystemByUserSize() const
RepositoryIterator reposEnd() const
Iterator behind the last Repository.
size_type capacity() const
Internal array size for stats only.
const LocaleSet & getAvailableLocales() const
Repository systemRepo()
Return the system repository, create it if missing.
Functor removing Repository from it's Pool.
bool isMultiversion(IdString ident_r) const
static const std::string & systemRepoAlias()
Reserved system repository alias .
void setInfo(const RepoInfo &info_r)
Set RepoInfo for this repository.
zypp::detail::RepositoryIterator RepositoryIterator
void setRequestedLocales(const LocaleSet &locales_r)
bool isOnSystemByUser(IdString ident_r) const
bool isOnSystemByUser(IdString ident_r) const
IdStringSet::const_iterator MultiversionIterator
MultiversionIterator multiversionEnd() const
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.
std::tr1::unordered_set< Locale > LocaleSet
bool multiversionEmpty() const
static PoolImpl & myPool()
detail::SolvableIterator SolvableIterator
bool addRequestedLocale(const Locale &locale_r)
Add one Locale to the set of requested locales.
Simple serial number provider.
const OnSystemByUserList & onSystemByUserList() const
OnSystemByUserIterator onSystemByUserEnd() const
size_t multiversionSize() const
detail::size_type size_type
void setTextLocale(const Locale &locale_r)
const LocaleSet & getRequestedLocales() const
Return the requested locales.
void prepare() const
Update housekeeping data (e.g.
bool isAvailableLocale(const Locale &locale_r) const
Whether this Locale is in the set of available locales.
static const std::string & systemRepoAlias()
Reserved system repository alias .
Reference counted access to a _Tp object calling a custom Dispose function when the last AutoDispose ...
void prepare() const
Update housekeeping data if necessary (e.g.
SolvableIterator solvablesBegin() const
Iterator to the first Solvable.
const LocaleSet & getAvailableLocales() const
Get the set of available locales.
bool isRequestedLocale(const Locale &locale_r) const
void setName(const std::string &name)
set the repository name
const MultiversionList & multiversionList() const
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.