|
libzypp 17.38.5
|
Target::commit helper optimizing package provision. More...
#include <zypp/target/CommitPackageCache.h>
Classes | |
| class | Impl |
| Base for CommitPackageCache implementations (implements no chache). More... | |
Public Types | |
| using | PackageProvider = function<ManagedFile (const PoolItem &, bool)> |
Public Member Functions | |
| CommitPackageCache (PackageProvider packageProvider_r=RepoProvidePackage()) | |
| Ctor. | |
| ~CommitPackageCache () | |
| Dtor. | |
| void | setCommitList (std::vector< sat::Solvable > commitList_r) |
| Download(commit) sequence of solvables to compute read ahead. | |
| template<class TIterator> | |
| void | setCommitList (TIterator begin_r, TIterator end_r) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| ManagedFile | get (const PoolItem &citem_r) |
| Provide a package. | |
| ManagedFile | get (sat::Solvable citem_r) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| bool | preloaded () const |
| Whether preloaded hint is set. | |
| void | preloaded (bool newval_r) |
| Set preloaded hint. | |
| CommitPackageCache (Impl *pimpl_r) | |
| Ctor taking an implementation. | |
Private Attributes | |
| RW_pointer< Impl > | _pimpl |
| Pointer to implementation. | |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const CommitPackageCache &obj) |
Related Symbols | |
(Note that these are not member symbols.) | |
| std::ostream & | operator<< (std::ostream &str, const CommitPackageCache &obj) |
| Stream output. | |
| std::ostream & | operator<< (std::ostream &str, const CommitPackageCache::Impl &obj) |
| Stream output. | |
Target::commit helper optimizing package provision.
Definition at line 58 of file CommitPackageCache.h.
| using zypp::target::CommitPackageCache::PackageProvider = function<ManagedFile (const PoolItem &, bool)> |
Definition at line 63 of file CommitPackageCache.h.
| zypp::target::CommitPackageCache::CommitPackageCache | ( | PackageProvider | packageProvider_r = RepoProvidePackage() | ) |
Ctor.
Definition at line 121 of file CommitPackageCache.cc.
| zypp::target::CommitPackageCache::~CommitPackageCache | ( | ) |
Dtor.
Definition at line 135 of file CommitPackageCache.cc.
|
explicit |
Ctor taking an implementation.
Definition at line 115 of file CommitPackageCache.cc.
| void zypp::target::CommitPackageCache::setCommitList | ( | std::vector< sat::Solvable > | commitList_r | ) |
Download(commit) sequence of solvables to compute read ahead.
Definition at line 138 of file CommitPackageCache.cc.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 77 of file CommitPackageCache.h.
| ManagedFile zypp::target::CommitPackageCache::get | ( | const PoolItem & | citem_r | ) |
Provide a package.
Definition at line 141 of file CommitPackageCache.cc.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 83 of file CommitPackageCache.h.
| bool zypp::target::CommitPackageCache::preloaded | ( | ) | const |
Whether preloaded hint is set.
If preloaded the cache tries to avoid trigering the infoInCache CB, based on the assumption this was already done when preloading the cache.
Definition at line 144 of file CommitPackageCache.cc.
| void zypp::target::CommitPackageCache::preloaded | ( | bool | newval_r | ) |
Set preloaded hint.
Definition at line 147 of file CommitPackageCache.cc.
|
friend |
Definition at line 155 of file CommitPackageCache.cc.
|
Stream output.
Definition at line 155 of file CommitPackageCache.cc.
|
private |
Pointer to implementation.
Definition at line 101 of file CommitPackageCache.h.