12#ifndef ZYPP_NG_SAT_REPOSITORY_H
13#define ZYPP_NG_SAT_REPOSITORY_H
41 template<>
const Pool &
poolFromType(
const Repository & );
52 using SolvableIterator = boost::filter_iterator<detail::ByRepository, sat::detail::SolvableIterator>;
81 explicit operator bool()
const
82 {
return get() !=
nullptr; }
100 std::string
alias()
const;
277 struct EraseFromPool;
357 {
return lhs.
get() == rhs.
get(); }
361 {
return !( lhs == rhs ); }
365 {
return lhs.
get() < rhs.
get(); }
476 , sat::detail::CRepo **
478 , boost::forward_traversal_tag
Store and operate on date (time_t).
Iterable< SolvableIterator > solvables() const
Iterate the repositories Solvables.
int satInternalSubPriority() const
void addSolv(const zypp::Pathname &file_r)
Load Solvables from a solv-file.
void eraseFromPool()
Query class for Repository related products.
Repository()
Default ctor creates noRepository.
void addHelix(const zypp::Pathname &file_r)
Load Solvables from a helix-file.
bool isSystemRepo() const
Return whether this is the system repository.
static const Repository noRepository
Represents no Repository.
void addTesttags(const zypp::Pathname &file_r)
Load Solvables from a libsolv testtags-file.
bool hasContentIdentifier(const ContentIdentifier &id_r) const
Whether id_r matches this repos content identifier.
std::string alias() const
Short unique string to identify a repo.
sat::Solvable::IdType addSolvables(unsigned count_r)
Add count_r new empty Solvable to this Repository.
IdType id() const
Expert backdoor.
zypp::Date generatedTimestamp() const
Timestamp when this repository was generated.
boost::filter_iterator< detail::ByRepository, sat::detail::SolvableIterator > SolvableIterator
Repository(const Repository &)=default
ContentRevision contentRevision() const
Label to display for this repo.
std::string ContentRevision
ContentIdentifier contentIdentifier() const
Unique string identifying a repositories content.
int satInternalPriority() const
libsolv internal priorities.
bool maybeOutdated() const
repository keywords (tags)
SolvableIterable solvables() const
Iterate the repositories Solvables.
bool solvablesEmpty() const
Hint whether the Repo may provide updates for a product.
SolvableIterator solvablesEnd() const
Iterator behind the last Solvable.
sat::Solvable::IdType addSolvable()
size_type solvablesSize() const
Number of solvables in Repository.
SolvableIterator solvablesBegin() const
Iterator to the first Solvable.
detail::CRepo * get() const
Expert backdoor.
detail::RepoIdType IdType
std::string ContentIdentifier
Repository(Repository &&) noexcept=default
zypp::Iterable< SolvableIterator > SolvableIterable
static const std::string & systemRepoAlias()
Reserved system repository alias @System .
Repository nextInPool() const
Return next Repository in Pool (or noRepository).
zypp::Date suggestedExpirationTimestamp() const
Suggested expiration timestamp.
A Solvable object within the sat Pool.
detail::SolvableIdType IdType
detail::RepoIdType repository() const
The repo id this Solvable belongs to.
Repository dereference() const
friend class boost::iterator_core_access
RepositoryIterator(sat::detail::CRepo **p)
bool operator!=(const FileConflicts &lhs, const FileConflicts &rhs)
relates: FileConflicts
bool operator<(const LocaleSupport &lhs, const LocaleSupport &rhs)
relates: LocaleSupport
bool operator==(const FileConflicts &lhs, const FileConflicts &rhs)
relates: FileConflicts
Iterable< TIterator > makeIterable(TIterator &&begin_r, TIterator &&end_r)
relates: Iterable convenient construction.
CLASS NAME : detail::DIWrap.
zypp::sat::detail::RepoIdType RepoIdType
static const RepoIdType noRepoId(0)
Id to denote Repo::noRepository.
zypp::sat::detail::CRepo CRepo
This file contains private API, this might break at any time between releases.
Query class for Repository related products.
void operator()(Repository repository_r) const
Functor filtering Solvable by Repository.
ByRepository(const Repository &repository_r)
ByRepository(sat::detail::RepoIdType id_r)
bool operator()(const sat::Solvable &slv_r) const