#include <CommitPackageCache.h>
Public Types | |
typedef function< ManagedFile(const PoolItem &pi)> | PackageProvider |
Public Member Functions | |
CommitPackageCache (const Pathname &rootDir_r, const PackageProvider &packageProvider_r) | |
Ctor. | |
~CommitPackageCache () | |
Dtor. | |
void | setCommitList (std::vector< sat::Solvable > commitList_r) |
Download(commit) sequence of solvables to compute read ahead. | |
template<class _Iterator> | |
void | setCommitList (_Iterator begin_r, _Iterator end_r) |
ManagedFile | get (const PoolItem &citem_r) |
Provide a package. | |
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) |
Classes | |
class | Impl |
Base for CommitPackageCache implementations (implements no chache). More... |
Definition at line 37 of file CommitPackageCache.h.
typedef function<ManagedFile( const PoolItem & pi )> zypp::target::CommitPackageCache::PackageProvider |
Definition at line 42 of file CommitPackageCache.h.
zypp::target::CommitPackageCache::CommitPackageCache | ( | const Pathname & | rootDir_r, | |
const PackageProvider & | packageProvider_r | |||
) |
zypp::target::CommitPackageCache::~CommitPackageCache | ( | ) |
zypp::target::CommitPackageCache::CommitPackageCache | ( | Impl * | pimpl_r | ) | [explicit] |
Ctor taking an implementation.
Definition at line 35 of file CommitPackageCache.cc.
References _pimpl.
void zypp::target::CommitPackageCache::setCommitList | ( | std::vector< sat::Solvable > | commitList_r | ) |
Download(commit) sequence of solvables to compute read ahead.
Definition at line 59 of file CommitPackageCache.cc.
References _pimpl.
Referenced by zypp::target::TargetImpl::commit(), and setCommitList().
void zypp::target::CommitPackageCache::setCommitList | ( | _Iterator | begin_r, | |
_Iterator | end_r | |||
) | [inline] |
ManagedFile zypp::target::CommitPackageCache::get | ( | const PoolItem & | citem_r | ) |
Provide a package.
Definition at line 64 of file CommitPackageCache.cc.
References _pimpl.
Referenced by zypp::target::TargetImpl::commit().
std::ostream & operator<< | ( | std::ostream & | str, | |
const CommitPackageCache & | obj | |||
) | [friend] |
Stream output
Definition at line 72 of file CommitPackageCache.cc.
Pointer to implementation.
Definition at line 70 of file CommitPackageCache.h.
Referenced by CommitPackageCache(), get(), zypp::target::operator<<(), and setCommitList().