libzypp  11.13.5
zypp::target::CommitPackageCacheReadAhead Class Reference

#include <CommitPackageCacheReadAhead.h>

Inheritance diagram for zypp::target::CommitPackageCacheReadAhead:

List of all members.

Public Member Functions

 CommitPackageCacheReadAhead (const Pathname &rootDir_r, const PackageProvider &packageProvider_r)
virtual ManagedFile get (const PoolItem &citem_r)
 Provide the package.
- Public Member Functions inherited from zypp::target::CommitPackageCache::Impl
 Impl (const PackageProvider &packageProvider_r)
virtual ~Impl ()
void setCommitList (std::vector< sat::Solvable > commitList_r)

Private Types

typedef std::map< PoolItem,
ManagedFile
CacheMap

Private Member Functions

bool onInteractiveMedia (const PoolItem &pi) const
 Return whether pi is located on a CD/DVD.
void cacheLastInteractive (const PoolItem &citem_r)
 Fill the cache.
void doCacheLastInteractive (const PoolItem &citem_r)
 cacheLastInteractive helper .

Private Attributes

DefaultIntegral< unsigned, 0 > _dbgChanges
IMediaKey _lastInteractive
Pathname _rootDir
shared_ptr< filesystem::TmpDir_cacheDir
CacheMap _cacheMap

Additional Inherited Members

- Public Types inherited from zypp::target::CommitPackageCache::Impl
typedef
CommitPackageCache::PackageProvider 
PackageProvider
- Protected Member Functions inherited from zypp::target::CommitPackageCache::Impl
virtual ManagedFile sourceProvidePackage (const PoolItem &pi) const
 Let the Source provide the package.
- Protected Attributes inherited from zypp::target::CommitPackageCache::Impl
std::vector< sat::Solvable_commitList

Detailed Description

Definition at line 83 of file CommitPackageCacheReadAhead.h.


Member Typedef Documentation


Constructor & Destructor Documentation

zypp::target::CommitPackageCacheReadAhead::CommitPackageCacheReadAhead ( const Pathname &  rootDir_r,
const PackageProvider packageProvider_r 
)

Definition at line 52 of file CommitPackageCacheReadAhead.cc.


Member Function Documentation

ManagedFile zypp::target::CommitPackageCacheReadAhead::get ( const PoolItem citem_r)
virtual

Provide the package.

Either from Source or from cache.

Reimplemented from zypp::target::CommitPackageCache::Impl.

Definition at line 191 of file CommitPackageCacheReadAhead.cc.

bool zypp::target::CommitPackageCacheReadAhead::onInteractiveMedia ( const PoolItem pi) const
private

Return whether pi is located on a CD/DVD.

Definition at line 63 of file CommitPackageCacheReadAhead.cc.

void zypp::target::CommitPackageCacheReadAhead::cacheLastInteractive ( const PoolItem citem_r)
private

Fill the cache.

Called before changing from one interactive media to another. Performs the read ahead of packages trying to avoid the necessity of switching back to the current media later.

Definition at line 78 of file CommitPackageCacheReadAhead.cc.

void zypp::target::CommitPackageCacheReadAhead::doCacheLastInteractive ( const PoolItem citem_r)
private

cacheLastInteractive helper .

Definition at line 97 of file CommitPackageCacheReadAhead.cc.


Member Data Documentation

DefaultIntegral<unsigned,0> zypp::target::CommitPackageCacheReadAhead::_dbgChanges
private

Definition at line 111 of file CommitPackageCacheReadAhead.h.

IMediaKey zypp::target::CommitPackageCacheReadAhead::_lastInteractive
private

Definition at line 113 of file CommitPackageCacheReadAhead.h.

Pathname zypp::target::CommitPackageCacheReadAhead::_rootDir
private

Definition at line 115 of file CommitPackageCacheReadAhead.h.

shared_ptr<filesystem::TmpDir> zypp::target::CommitPackageCacheReadAhead::_cacheDir
private

Definition at line 116 of file CommitPackageCacheReadAhead.h.

CacheMap zypp::target::CommitPackageCacheReadAhead::_cacheMap
private

Definition at line 117 of file CommitPackageCacheReadAhead.h.


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