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 TIterator>
79 {
setCommitList( std::vector<sat::Solvable>( begin_r, end_r ) ); }
115 #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
Helper filtering the files offered by a RepomdFileReader.
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(TIterator begin_r, TIterator end_r)
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Combining sat::Solvable 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.
bool preloaded() const
Whether preloaded hint is set.