libzypp 17.31.23
|
Base for CommitPackageCache implementations (implements no chache). More...
#include <target/CommitPackageCacheImpl.h>
Public Types | |
typedef CommitPackageCache::PackageProvider | PackageProvider |
Public Member Functions | |
Impl (const PackageProvider &packageProvider_r) | |
virtual | ~Impl () |
virtual ManagedFile | get (const PoolItem &citem_r) |
Provide the package. | |
void | setCommitList (std::vector< sat::Solvable > commitList_r) |
const std::vector< sat::Solvable > & | commitList () const |
bool | preloaded () const |
void | preloaded (bool newval_r) |
Protected Member Functions | |
virtual ManagedFile | sourceProvidePackage (const PoolItem &pi) const |
Let the Source provide the package. | |
virtual ManagedFile | sourceProvideCachedPackage (const PoolItem &pi) const |
Let the Source provide an already cached package. | |
Private Attributes | |
std::vector< sat::Solvable > | _commitList |
PackageProvider | _packageProvider |
DefaultIntegral< bool, false > | _preloaded |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const CommitPackageCache::Impl &obj) |
Stream output. | |
Base for CommitPackageCache implementations (implements no chache).
All packages are directly retrieved from the source via the PackageProvider passed to the ctor. The PackageProvider is expected to throw or return an empty ManagedFile if the package can't be provided.
Definition at line 39 of file CommitPackageCacheImpl.h.
Definition at line 42 of file CommitPackageCacheImpl.h.
|
inline |
Definition at line 45 of file CommitPackageCacheImpl.h.
|
inlinevirtual |
Definition at line 49 of file CommitPackageCacheImpl.h.
|
inlinevirtual |
Provide the package.
Derived classes overload this.
Reimplemented in zypp::target::CommitPackageCacheReadAhead.
Definition at line 56 of file CommitPackageCacheImpl.h.
|
inline |
Definition at line 61 of file CommitPackageCacheImpl.h.
|
inline |
Definition at line 64 of file CommitPackageCacheImpl.h.
|
inline |
Definition at line 67 of file CommitPackageCacheImpl.h.
|
inline |
Definition at line 70 of file CommitPackageCacheImpl.h.
|
inlineprotectedvirtual |
Let the Source provide the package.
Definition at line 75 of file CommitPackageCacheImpl.h.
|
inlineprotectedvirtual |
Let the Source provide an already cached package.
Definition at line 92 of file CommitPackageCacheImpl.h.
|
related |
Stream output.
Definition at line 110 of file CommitPackageCacheImpl.h.
|
private |
Definition at line 103 of file CommitPackageCacheImpl.h.
|
private |
Definition at line 104 of file CommitPackageCacheImpl.h.
|
private |
Definition at line 105 of file CommitPackageCacheImpl.h.