libzypp 17.37.10

DeltaCandidates.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9
10#ifndef ZYPP_REPO_DELTACANDIDATES_H
11#define ZYPP_REPO_DELTACANDIDATES_H
12
13#include <iosfwd>
14#include <list>
15
16#include <zypp/base/PtrTypes.h>
17#include <zypp/base/Function.h>
18#include <zypp/repo/PackageDelta.h>
19#include <zypp/Repository.h>
20#include <zypp/Package.h>
21
23 namespace zypp
24{
26 namespace repo
27 {
28
36 class ZYPP_API DeltaCandidates
37 {
38 friend std::ostream & operator<<( std::ostream & str, const DeltaCandidates & obj );
39
40 public:
42 struct Impl;
43
44 public:
45 DeltaCandidates();
46
47 DeltaCandidates(const DeltaCandidates &) = default;
48 DeltaCandidates(DeltaCandidates &&) noexcept = default;
49 DeltaCandidates &operator=(const DeltaCandidates &) = default;
50 DeltaCandidates &operator=(DeltaCandidates &&) noexcept = default;
55 DeltaCandidates( std::list<Repository> repos, std::string pkgname = "" );
57 ~DeltaCandidates();
58
59 std::list<packagedelta::DeltaRpm> deltaRpms(const Package::constPtr & package) const;
60
61 private:
63 RWCOW_pointer<Impl> _pimpl;
64 };
65
66
68 std::ostream & operator<<( std::ostream & str, const DeltaCandidates & obj ) ZYPP_API;
69
71
75 template<class RepoIter>
76 inline DeltaCandidates makeDeltaCandidates( RepoIter begin_r, RepoIter end_r )
77 { return DeltaCandidates( std::list<Repository>( begin_r, end_r ) ); }
78
82 template<class RepoContainer>
83 inline DeltaCandidates makeDeltaCandidates( const RepoContainer & cont_r )
84 { return makeDeltaCandidates( cont_r.begin(), cont_r.end() ); }
85
86
88 } // namespace repo
91} // namespace zypp
93#endif // ZYPP_REPO_DELTACANDIDATES_H
operator<<
std::ostream & operator<<(std::ostream &str, const zypp::sat::detail::CDataiterator *obj)
Definition LookupAttr.cc:808
PackageDelta.h
Package.h
Repository.h
zypp::Package
Package interface.
Definition Package.h:34
zypp::Repository
Definition Repository.h:40
zypp::repo::DeltaCandidates::deltaRpms
std::list< packagedelta::DeltaRpm > deltaRpms(const Package::constPtr &package) const
Definition DeltaCandidates.cc:79
zypp::repo::DeltaCandidates::_pimpl
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
Definition DeltaCandidates.h:63
zypp::repo::DeltaCandidates::DeltaCandidates
DeltaCandidates(const DeltaCandidates &)=default
zypp::repo::DeltaCandidates::makeDeltaCandidates
DeltaCandidates makeDeltaCandidates(RepoIter begin_r, RepoIter end_r)
Convenient construction.
Definition DeltaCandidates.h:76
zypp::repo::DeltaCandidates::makeDeltaCandidates
DeltaCandidates makeDeltaCandidates(const RepoContainer &cont_r)
Convenient construction.
Definition DeltaCandidates.h:83
zypp::repo::DeltaCandidates::DeltaCandidates
DeltaCandidates(DeltaCandidates &&) noexcept=default
zypp::repo::DeltaCandidates::DeltaCandidates
DeltaCandidates()
Definition DeltaCandidates.cc:66
std
Definition Arch.h:364
str
String related utilities and Regular expression matching.
zypp::packagedelta
Definition PackageDelta.cc:33
zypp::repo
Definition DeltaCandidates.cc:30
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zypp::ZYPP_API
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
zypp::RWCOW_pointer
RW_pointer supporting 'copy on write' functionality.
Definition PtrTypes.h:469
zypp::repo::DeltaCandidates::Impl
DeltaCandidates implementation.
Definition DeltaCandidates.cc:34
Function.h
PtrTypes.h