#include <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) |
Protected Member Functions | |
virtual ManagedFile | sourceProvidePackage (const PoolItem &pi) const |
Let the Source provide the package. | |
Protected Attributes | |
std::vector< sat::Solvable > | _commitList |
Private Attributes | |
PackageProvider | _packageProvider |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const CommitPackageCache::Impl &obj) |
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.
zypp::target::CommitPackageCache::Impl::Impl | ( | const PackageProvider & | packageProvider_r | ) | [inline] |
Definition at line 45 of file CommitPackageCacheImpl.h.
virtual zypp::target::CommitPackageCache::Impl::~Impl | ( | ) | [inline, virtual] |
Definition at line 49 of file CommitPackageCacheImpl.h.
virtual ManagedFile zypp::target::CommitPackageCache::Impl::get | ( | const PoolItem & | citem_r | ) | [inline, virtual] |
Provide the package.
Derived classes overload this.
Reimplemented in zypp::target::CommitPackageCacheReadAhead.
Definition at line 56 of file CommitPackageCacheImpl.h.
References sourceProvidePackage().
void zypp::target::CommitPackageCache::Impl::setCommitList | ( | std::vector< sat::Solvable > | commitList_r | ) | [inline] |
virtual ManagedFile zypp::target::CommitPackageCache::Impl::sourceProvidePackage | ( | const PoolItem & | pi | ) | const [inline, protected, virtual] |
Let the Source provide the package.
Definition at line 66 of file CommitPackageCacheImpl.h.
References _packageProvider, zypp::AutoDispose< _Tp >::value(), and ZYPP_THROW.
Referenced by zypp::target::CommitPackageCacheReadAhead::doCacheLastInteractive(), zypp::target::CommitPackageCacheReadAhead::get(), and get().
std::ostream & operator<< | ( | std::ostream & | str, | |
const CommitPackageCache::Impl & | obj | |||
) | [related] |
Stream output
Definition at line 91 of file CommitPackageCacheImpl.h.
std::vector<sat::Solvable> zypp::target::CommitPackageCache::Impl::_commitList [protected] |
Definition at line 83 of file CommitPackageCacheImpl.h.
Referenced by zypp::target::CommitPackageCacheReadAhead::doCacheLastInteractive(), and setCommitList().