12#ifndef ZYPP_NG_SAT_REPOSITORY_H
13#define ZYPP_NG_SAT_REPOSITORY_H
42 template<>
const Pool &
poolFromType(
const Repository & );
82 explicit operator bool()
const
83 {
return get() !=
nullptr; }
101 std::string
alias()
const;
278 struct EraseFromPool;
358 {
return lhs.
get() == rhs.
get(); }
362 {
return !( lhs == rhs ); }
366 {
return lhs.
get() < rhs.
get(); }
505 {
return !(*
this == rhs); }
Store and operate on date (time_t).
Iterable< SolvableIterator > solvables() const
Iterate the repositories Solvables.
A simple forward iterator that filters a base range according to a predicate.
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.
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.
zyppng::FilterIterator< detail::ByRepository, sat::detail::SolvableIterator > SolvableIterator
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.
RepositoryIterator operator++(int)
sat::detail::CRepo ** _base
sat::detail::CRepo **const & base() const
reference operator*() const
bool operator!=(const RepositoryIterator &rhs) const
RepositoryIterator & operator++()
std::forward_iterator_tag iterator_category
std::ptrdiff_t difference_type
bool operator==(const RepositoryIterator &rhs) const
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