zypp::target::CommitPackageCache::Impl Class Reference

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

#include <CommitPackageCacheImpl.h>

Inheritance diagram for zypp::target::CommitPackageCache::Impl:

zypp::target::CommitPackageCacheReadAhead List of all members.

Public Types

typedef CommitPackageCache::const_iterator const_iterator
typedef CommitPackageCache::PackageProvider PackageProvider

Public Member Functions

 Impl (const PackageProvider &packageProvider_r)
virtual ~Impl ()
virtual ManagedFile get (const_iterator citem_r)
 Provide the package.

Protected Member Functions

ManagedFile sourceProvidePackage (const PoolItem &pi) const
 Let the Source provide the package.

Private Attributes

PackageProvider _packageProvider

Related Functions

(Note that these are not member functions.)

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

Detailed Description

Base for CommitPackageCache implementations (implements no chache).

All packages are directly retrieved from the source via the PackageProvider passed to the ctor. The PackageProvider is expected to throw or return an empty ManagedFile if the package can't be provided.

Definition at line 39 of file CommitPackageCacheImpl.h.


Member Typedef Documentation

typedef CommitPackageCache::const_iterator zypp::target::CommitPackageCache::Impl::const_iterator
 

Definition at line 42 of file CommitPackageCacheImpl.h.

typedef CommitPackageCache::PackageProvider zypp::target::CommitPackageCache::Impl::PackageProvider
 

Definition at line 43 of file CommitPackageCacheImpl.h.


Constructor & Destructor Documentation

zypp::target::CommitPackageCache::Impl::Impl const PackageProvider packageProvider_r  )  [inline]
 

Definition at line 46 of file CommitPackageCacheImpl.h.

virtual zypp::target::CommitPackageCache::Impl::~Impl  )  [inline, virtual]
 

Definition at line 50 of file CommitPackageCacheImpl.h.


Member Function Documentation

virtual ManagedFile zypp::target::CommitPackageCache::Impl::get const_iterator  citem_r  )  [inline, virtual]
 

Provide the package.

Derived classes overload this.

Definition at line 57 of file CommitPackageCacheImpl.h.

References sourceProvidePackage().

ManagedFile zypp::target::CommitPackageCache::Impl::sourceProvidePackage const PoolItem pi  )  const [inline, protected]
 

Let the Source provide the package.

Definition at line 64 of file CommitPackageCacheImpl.h.

References _packageProvider, zypp::AutoDispose< _Tp >::value(), and ZYPP_THROW.

Referenced by zypp::target::CommitPackageCacheReadAhead::get(), and get().


Friends And Related Function Documentation

std::ostream & operator<< std::ostream &  str,
const CommitPackageCache::Impl obj
[related]
 

Stream output

Definition at line 86 of file CommitPackageCacheImpl.h.


Member Data Documentation

PackageProvider zypp::target::CommitPackageCache::Impl::_packageProvider [private]
 

Definition at line 81 of file CommitPackageCacheImpl.h.

Referenced by sourceProvidePackage().


The documentation for this class was generated from the following file:
Generated on Thu Apr 24 02:25:16 2008 for zypp by  doxygen 1.4.6