zypp::ResPool Class Reference

Access to ResObject pool. More...

#include <ResPool.h>

List of all members.

Iterate through all ResObjects of a certain kind.

typedef resfilter::ByKind ByKind
typedef filter_iterator< ByKind,
const_iterator
byKind_iterator
byKind_iterator byKindBegin (const ResObject::Kind &kind_r) const
template<class _Res>
byKind_iterator byKindBegin () const
byKind_iterator byKindEnd (const ResObject::Kind &kind_r) const
template<class _Res>
byKind_iterator byKindEnd () const

Iterate through all ResObjects with a certain name (all kinds).

typedef resfilter::ByName ByName
typedef filter_iterator< ByName,
const_iterator
byName_iterator
byName_iterator byNameBegin (const std::string &name_r) const
byName_iterator byNameEnd (const std::string &name_r) const

Iterate through all ResObjects which have at least

one Capability with index index_r in dependency depType_r.

typedef resfilter::ByCapabilityIndex ByCapabilityIndex
typedef filter_iterator< ByCapabilityIndex,
const_capitemiterator
byCapabilityIndex_iterator
byCapabilityIndex_iterator byCapabilityIndexBegin (const std::string &index_r, Dep depType_r) const
byCapabilityIndex_iterator byCapabilityIndexEnd (const std::string &index_r, Dep depType_r) const

Public Types

typedef pool::PoolTraits::Item Item
 zypp::pool::PoolItem
typedef pool::PoolTraits::size_type size_type
typedef pool::PoolTraits::const_iterator const_iterator
typedef pool::PoolTraits::const_capitemiterator const_capitemiterator

Public Member Functions

 ResPool ()
 Default ctor: empty pool.
 ~ResPool ()
 Dtor.
bool empty () const
size_type size () const
Iterate through all ResObjects (all kinds).
const_iterator begin () const
const_iterator end () const

Private Member Functions

 ResPool (pool::PoolTraits::Impl_constPtr impl_r)
 Ctor.

Private Attributes

pool::PoolTraits::Impl_constPtr _pimpl
 Const access to implementation.

Friends

class ResPoolManager
std::ostream & operator<< (std::ostream &str, const ResPool &obj)


Detailed Description

Access to ResObject pool.

Note:
Filter iterators provided by ResPool are intended to operate on internal index tables for faster access. If the the index is not yet implemented, they are realized as an ordinary filter iterator. Do not provide filter iterators here, if there is no index table for it.

Definition at line 37 of file ResPool.h.


Member Typedef Documentation

typedef pool::PoolTraits::Item zypp::ResPool::Item
 

zypp::pool::PoolItem

Definition at line 43 of file ResPool.h.

typedef pool::PoolTraits::size_type zypp::ResPool::size_type
 

Definition at line 44 of file ResPool.h.

typedef pool::PoolTraits::const_iterator zypp::ResPool::const_iterator
 

Definition at line 45 of file ResPool.h.

typedef pool::PoolTraits::const_capitemiterator zypp::ResPool::const_capitemiterator
 

Definition at line 46 of file ResPool.h.

typedef resfilter::ByKind zypp::ResPool::ByKind
 

Definition at line 73 of file ResPool.h.

typedef filter_iterator<ByKind,const_iterator> zypp::ResPool::byKind_iterator
 

Definition at line 74 of file ResPool.h.

typedef resfilter::ByName zypp::ResPool::ByName
 

Definition at line 95 of file ResPool.h.

typedef filter_iterator<ByName,const_iterator> zypp::ResPool::byName_iterator
 

Definition at line 96 of file ResPool.h.

typedef resfilter::ByCapabilityIndex zypp::ResPool::ByCapabilityIndex
 

Definition at line 108 of file ResPool.h.

typedef filter_iterator<ByCapabilityIndex,const_capitemiterator> zypp::ResPool::byCapabilityIndex_iterator
 

Definition at line 109 of file ResPool.h.


Constructor & Destructor Documentation

zypp::ResPool::ResPool  ) 
 

Default ctor: empty pool.

Definition at line 39 of file ResPool.cc.

zypp::ResPool::~ResPool  ) 
 

Dtor.

Definition at line 57 of file ResPool.cc.

zypp::ResPool::ResPool pool::PoolTraits::Impl_constPtr  impl_r  )  [private]
 

Ctor.

Definition at line 48 of file ResPool.cc.


Member Function Documentation

bool zypp::ResPool::empty  )  const
 

Definition at line 66 of file ResPool.cc.

References _pimpl.

ResPool::size_type zypp::ResPool::size  )  const
 

Definition at line 69 of file ResPool.cc.

References _pimpl.

ResPool::const_iterator zypp::ResPool::begin  )  const
 

Definition at line 72 of file ResPool.cc.

References _pimpl.

Referenced by zypp::PoolItemSaver::diffState(), zypp::target::TargetImpl::getResolvablesToInsDel(), zypp::PoolItemSaver::restoreState(), zypp::PoolItemSaver::saveState(), and zypp::solver::detail::show_pool().

ResPool::const_iterator zypp::ResPool::end  )  const
 

Definition at line 75 of file ResPool.cc.

References _pimpl.

Referenced by zypp::PoolItemSaver::diffState(), zypp::target::TargetImpl::getResolvablesToInsDel(), zypp::zypp_detail::ZYppImpl::removeInstalledResolvables(), zypp::PoolItemSaver::restoreState(), zypp::PoolItemSaver::saveState(), and zypp::solver::detail::show_pool().

byKind_iterator zypp::ResPool::byKindBegin const ResObject::Kind kind_r  )  const [inline]
 

Definition at line 76 of file ResPool.h.

References zypp::make_filter_begin().

Referenced by zypp::solver::detail::assertSystemResObjectInPool(), zypp::PoolItemSaver::diffState(), zypp::zypp_detail::ZYppImpl::getAvailableLocales(), zypp::zypp_detail::ZYppImpl::getRequestedLocales(), zypp::PoolItemSaver::restoreState(), and zypp::PoolItemSaver::saveState().

template<class _Res>
byKind_iterator zypp::ResPool::byKindBegin  )  const [inline]
 

Definition at line 80 of file ResPool.h.

References zypp::make_filter_begin().

byKind_iterator zypp::ResPool::byKindEnd const ResObject::Kind kind_r  )  const [inline]
 

Definition at line 84 of file ResPool.h.

References zypp::make_filter_end().

Referenced by zypp::solver::detail::assertSystemResObjectInPool(), zypp::PoolItemSaver::diffState(), zypp::zypp_detail::ZYppImpl::getAvailableLocales(), zypp::zypp_detail::ZYppImpl::getRequestedLocales(), zypp::PoolItemSaver::restoreState(), and zypp::PoolItemSaver::saveState().

template<class _Res>
byKind_iterator zypp::ResPool::byKindEnd  )  const [inline]
 

Definition at line 88 of file ResPool.h.

References zypp::make_filter_end().

ResPool::byName_iterator zypp::ResPool::byNameBegin const std::string &  name_r  )  const
 

Definition at line 78 of file ResPool.cc.

References _pimpl.

Referenced by zypp::solver::detail::Helper::findReinstallItem(), zypp::solver::detail::Helper::findUpdateItem(), zypp::ui::PatchContents::Impl::Impl(), and zypp::NameKindProxy::NameKindProxy().

ResPool::byName_iterator zypp::ResPool::byNameEnd const std::string &  name_r  )  const
 

Definition at line 81 of file ResPool.cc.

References _pimpl.

Referenced by zypp::solver::detail::Helper::findReinstallItem(), zypp::solver::detail::Helper::findUpdateItem(), zypp::ui::PatchContents::Impl::Impl(), and zypp::NameKindProxy::NameKindProxy().

ResPool::byCapabilityIndex_iterator zypp::ResPool::byCapabilityIndexBegin const std::string &  index_r,
Dep  depType_r
const
 

Definition at line 84 of file ResPool.cc.

References _pimpl.

Referenced by zypp::solver::detail::hint_match(), and zypp::solver::detail::transactCaps().

ResPool::byCapabilityIndex_iterator zypp::ResPool::byCapabilityIndexEnd const std::string &  index_r,
Dep  depType_r
const
 

Definition at line 87 of file ResPool.cc.

References _pimpl.

Referenced by zypp::solver::detail::hint_match(), zypp::solver::detail::QueueItemUninstall::process(), zypp::solver::detail::ResolverContext::requirementIsMet(), zypp::solver::detail::ResolverContext::requirementIsPossible(), and zypp::solver::detail::transactCaps().


Friends And Related Function Documentation

friend class ResPoolManager [friend]
 

Definition at line 118 of file ResPool.h.

std::ostream & operator<< std::ostream &  str,
const ResPool obj
[friend]
 

Stream output

Definition at line 95 of file ResPool.cc.


Member Data Documentation

pool::PoolTraits::Impl_constPtr zypp::ResPool::_pimpl [private]
 

Const access to implementation.

Definition at line 123 of file ResPool.h.

Referenced by begin(), byCapabilityIndexBegin(), byCapabilityIndexEnd(), byNameBegin(), byNameEnd(), empty(), end(), zypp::operator<<(), and size().


The documentation for this class was generated from the following files:
Generated on Thu May 4 16:03:36 2006 for zypp by  doxygen 1.4.6