libzypp  15.28.6
zypp::target::CommitPackageCache Class Reference

Target::commit helper optimizing package provision. More...

#include <CommitPackageCache.h>

Classes

class  Impl
 Base for CommitPackageCache implementations (implements no chache). More...
 

Public Types

typedef function< ManagedFile(const
PoolItem &pi, bool fromCache_r)> 
PackageProvider
 

Public Member Functions

 CommitPackageCache (const Pathname &rootDir_r, const PackageProvider &packageProvider_r=RepoProvidePackage())
 Ctor. More...
 
 ~CommitPackageCache ()
 Dtor. More...
 
void setCommitList (std::vector< sat::Solvable > commitList_r)
 Download(commit) sequence of solvables to compute read ahead. More...
 
template<class TIterator >
void setCommitList (TIterator begin_r, TIterator end_r)
 
ManagedFile get (const PoolItem &citem_r)
 Provide a package. More...
 
ManagedFile get (sat::Solvable citem_r)
 
bool preloaded () const
 Whether preloaded hint is set. More...
 
void preloaded (bool newval_r)
 Set preloaded hint. More...
 
 CommitPackageCache (Impl *pimpl_r)
 Ctor taking an implementation. More...
 

Private Attributes

RW_pointer< Impl_pimpl
 Pointer to implementation. More...
 

Friends

std::ostream & operator<< (std::ostream &str, const CommitPackageCache &obj)
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const CommitPackageCache &obj)
 

Detailed Description

Target::commit helper optimizing package provision.

Definition at line 58 of file CommitPackageCache.h.

Member Typedef Documentation

typedef function<ManagedFile( const PoolItem & pi, bool fromCache_r )> zypp::target::CommitPackageCache::PackageProvider

Definition at line 63 of file CommitPackageCache.h.

Constructor & Destructor Documentation

zypp::target::CommitPackageCache::CommitPackageCache ( const Pathname &  rootDir_r,
const PackageProvider packageProvider_r = RepoProvidePackage() 
)

Ctor.

Definition at line 117 of file CommitPackageCache.cc.

zypp::target::CommitPackageCache::~CommitPackageCache ( )

Dtor.

Definition at line 132 of file CommitPackageCache.cc.

zypp::target::CommitPackageCache::CommitPackageCache ( Impl pimpl_r)
explicit

Ctor taking an implementation.

Definition at line 111 of file CommitPackageCache.cc.

Member Function Documentation

void zypp::target::CommitPackageCache::setCommitList ( std::vector< sat::Solvable commitList_r)

Download(commit) sequence of solvables to compute read ahead.

Definition at line 135 of file CommitPackageCache.cc.

template<class TIterator >
void zypp::target::CommitPackageCache::setCommitList ( TIterator  begin_r,
TIterator  end_r 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 78 of file CommitPackageCache.h.

ManagedFile zypp::target::CommitPackageCache::get ( const PoolItem citem_r)

Provide a package.

Definition at line 138 of file CommitPackageCache.cc.

ManagedFile zypp::target::CommitPackageCache::get ( sat::Solvable  citem_r)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 84 of file CommitPackageCache.h.

bool zypp::target::CommitPackageCache::preloaded ( ) const

Whether preloaded hint is set.

If preloaded the cache tries to avoid trigering the infoInCache CB, based on the assumption this was already done when preloading the cache.

Definition at line 141 of file CommitPackageCache.cc.

void zypp::target::CommitPackageCache::preloaded ( bool  newval_r)

Set preloaded hint.

Definition at line 144 of file CommitPackageCache.cc.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  str,
const CommitPackageCache obj 
)
friend

Definition at line 152 of file CommitPackageCache.cc.

std::ostream & operator<< ( std::ostream &  str,
const CommitPackageCache obj 
)
related

Stream output

Definition at line 152 of file CommitPackageCache.cc.

Member Data Documentation

RW_pointer<Impl> zypp::target::CommitPackageCache::_pimpl
private

Pointer to implementation.

Definition at line 102 of file CommitPackageCache.h.


The documentation for this class was generated from the following files: