12 #ifndef ZYPP_TARGET_COMMITPACKAGECACHE_H
13 #define ZYPP_TARGET_COMMITPACKAGECACHE_H
63 typedef function<ManagedFile( const PoolItem & pi, bool fromCache_r )>
PackageProvider;
75 void setCommitList( std::vector<sat::Solvable> commitList_r );
77 template <
class _Iterator>
79 {
setCommitList( std::vector<sat::Solvable>( begin_r, end_r ) ); }
107 #endif // ZYPP_TARGET_COMMITPACKAGECACHE_H
A Solvable object within the sat Pool.
CommitPackageCache(const Pathname &rootDir_r, const PackageProvider &packageProvider_r=RepoProvidePackage())
Ctor.
function< ManagedFile(const PoolItem &pi, bool fromCache_r)> PackageProvider
Target::commit helper optimizing package provision.
RW_pointer< Impl > _pimpl
Pointer to implementation.
ManagedFile operator()(const PoolItem &pi, bool fromCache_r)
Provide package optionally fron cache only.
~CommitPackageCache()
Dtor.
void setCommitList(_Iterator begin_r, _Iterator end_r)
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
Wrapper for const correct access via Smart pointer types.
Reference counted access to a _Tp object calling a custom Dispose function when the last AutoDispose ...
Reference to a PoolItem connecting ResObject and ResStatus.
friend std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
Default PackageProvider for CommitPackageCache.
void setCommitList(std::vector< sat::Solvable > commitList_r)
Download(commit) sequence of solvables to compute read ahead.