libzypp: zypp/repo/DeltaCandidates.h Source File

libzypp 17.25.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 DeltaCandidates
37 {
38 friend std::ostream & operator<<( std::ostream & str, const DeltaCandidates & obj );
39
40 public:
42 struct Impl;
43
44 public:
45 DeltaCandidates();
50 DeltaCandidates( const std::list<Repository> & repos, const std::string & pkgname = "" );
52 ~DeltaCandidates();
53
54 std::list<packagedelta::DeltaRpm> deltaRpms(const Package::constPtr & package) const;
55
56 private:
58 RWCOW_pointer<Impl> _pimpl;
59 };
61
63 std::ostream & operator<<( std::ostream & str, const DeltaCandidates & obj );
64
66
70 template<class RepoIter>
71 inline DeltaCandidates makeDeltaCandidates( RepoIter begin_r, RepoIter end_r )
72 { return DeltaCandidates( std::list<Repository>( begin_r, end_r ) ); }
73
77 template<class RepoContainer>
78 inline DeltaCandidates makeDeltaCandidates( const RepoContainer & cont_r )
79 { return makeDeltaCandidates( cont_r.begin(), cont_r.end() ); }
80
81
83 } // namespace repo
86 } // namespace zypp
88 #endif // ZYPP_REPO_DELTACANDIDATES_H
Function.h
PackageDelta.h
Package.h
PtrTypes.h
repos
RepoInfoList repos
Definition: RepoManager.cc:277
Repository.h
zypp::Package::constPtr
TraitsType::constPtrType constPtr
Definition: Package.h:38
zypp::repo::DeltaCandidates
Candidate delta and patches for a package.
Definition: DeltaCandidates.h:37
zypp::repo::DeltaCandidates::deltaRpms
std::list< packagedelta::DeltaRpm > deltaRpms(const Package::constPtr &package) const
Definition: DeltaCandidates.cc:78
zypp::repo::DeltaCandidates::_pimpl
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
Definition: DeltaCandidates.h:58
zypp::repo::DeltaCandidates::makeDeltaCandidates
DeltaCandidates makeDeltaCandidates(RepoIter begin_r, RepoIter end_r)
Convenient construction.
Definition: DeltaCandidates.h:71
zypp::repo::DeltaCandidates::~DeltaCandidates
~DeltaCandidates()
Dtor.
Definition: DeltaCandidates.cc:75
zypp::repo::DeltaCandidates::makeDeltaCandidates
DeltaCandidates makeDeltaCandidates(const RepoContainer &cont_r)
Convenient construction.
Definition: DeltaCandidates.h:78
zypp::repo::DeltaCandidates::DeltaCandidates
DeltaCandidates()
Definition: DeltaCandidates.cc:65
zypp::repo::DeltaCandidates::operator<<
friend std::ostream & operator<<(std::ostream &str, const DeltaCandidates &obj)
Definition: DeltaCandidates.cc:107
str
String related utilities and Regular expression matching.
zypp::repo::operator<<
std::ostream & operator<<(std::ostream &str, const DeltaCandidates &obj)
Definition: DeltaCandidates.cc:107
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
zypp::RWCOW_pointer
RW_pointer supporting 'copy on write' functionality.
Definition: PtrTypes.h:459
zypp::repo::DeltaCandidates::Impl
DeltaCandidates implementation.
Definition: DeltaCandidates.cc:33