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); }
550 #endif // ZYPP_SAT_REPOSITORY_H
A Solvable object within the sat Pool.
std::string alias() const
Short unique string to identify a repo.
bool operator!=(const RepositoryIterator &rhs) const
RepositoryIterator operator++(int)
ContentIdentifier contentIdentifier() const
Unique string identifying a repositories content.
reference operator*() const
bool operator==(const Capability &lhs, const Capability &rhs)
relates: Capability
Repository nextInPool() const
Return next Repository in Pool (or noRepository).
detail::RepoIdType IdType
Iterable< TIterator > makeIterable(TIterator &&begin_r, TIterator &&end_r)
relates: Iterable convenient construction.
bool solvablesEmpty() const
Hint whether the Repo may provide updates for a product.
A simple forward iterator that filters a base range according to a predicate.
static const RepoIdType noRepoId(0)
Id to denote Repo::noRepository.
SolvableIterable solvables() const
Iterate the repositories Solvables.
void addSolv(const zypp::Pathname &file_r)
Load Solvables from a solv-file.
std::string ContentRevision
sat::detail::CRepo ** _base
void addHelix(const zypp::Pathname &file_r)
Load Solvables from a helix-file.
static const std::string & systemRepoAlias()
Reserved system repository alias .
void operator()(Repository repository_r) const
bool operator==(const RepositoryIterator &rhs) const
zypp::Iterable< SolvableIterator > SolvableIterable
RepositoryIterator & operator++()
Store and operate on date (time_t).
int satInternalPriority() const
libsolv internal priorities.
detail::CRepo * get() const
Expert backdoor.
Query class for Repository related products.
static const Repository noRepository
Represents no Repository.
void addTesttags(const zypp::Pathname &file_r)
Load Solvables from a libsolv testtags-file.
SolvableIterator solvablesEnd() const
Iterator behind the last Solvable.
sat::Solvable::IdType addSolvable()
ByRepository(sat::detail::RepoIdType id_r)
Repository()
Default ctor creates noRepository.
bool operator!=(const Capability &lhs, const Capability &rhs)
relates: Capability
void eraseFromPool()
Query class for Repository related products.
ByRepository(const Repository &repository_r)
SolvableIterator solvablesBegin() const
Iterator to the first Solvable.
zypp::sat::detail::CRepo CRepo
ContentRevision contentRevision() const
Label to display for this repo.
zypp::Date suggestedExpirationTimestamp() const
Suggested expiration timestamp.
RepositoryIterator(sat::detail::CRepo **p)
detail::RepoIdType repository() const
The repo id this Solvable belongs to.
int satInternalSubPriority() const
IdType id() const
Expert backdoor.
detail::SolvableIdType IdType
std::ptrdiff_t difference_type
zypp::Date generatedTimestamp() const
Timestamp when this repository was generated.
size_type solvablesSize() const
Number of solvables in Repository.
sat::Solvable::IdType addSolvables(unsigned count_r)
Add count_r new empty Solvable to this Repository.
bool operator()(const sat::Solvable &slv_r) const
zyppng::FilterIterator< detail::ByRepository, sat::detail::SolvableIterator > SolvableIterator
bool operator<(const Capability &lhs, const Capability &rhs)
relates: Capability Arbitrary order.
bool maybeOutdated() const
repository keywords (tags)
std::string ContentIdentifier
sat::detail::CRepo **const & base() const
bool isSystemRepo() const
Return whether this is the system repository.
std::forward_iterator_tag iterator_category
bool hasContentIdentifier(const ContentIdentifier &id_r) const
Whether id_r matches this repos content identifier.
zypp::sat::detail::RepoIdType RepoIdType
Functor filtering Solvable by Repository.