zypp::ResPoolManager Class Reference

Manage a ResObject pool. More...

#include <ResPoolManager.h>

List of all members.

Public Types

typedef pool::PoolTraits::Item Item
typedef pool::PoolTraits::size_type size_type
typedef pool::PoolTraits::iterator iterator
typedef pool::PoolTraits::const_iterator const_iterator

Public Member Functions

 ResPoolManager ()
 Default ctor.
 ~ResPoolManager ()
 Dtor.
ResPool accessor () const
ResPoolProxy proxy () const
void insert (ResObject::constPtr ptr_r, bool installed=false)
template<class _InputIterator>
void insert (_InputIterator first_r, _InputIterator last_r, bool installed=false)
void erase (ResObject::constPtr ptr_r)
void clear ()

Private Types

typedef pool::PoolTraits::ItemContainerT ContainerT
typedef pool::PoolTraits::Impl Impl
typedef pool::PoolTraits::Inserter Inserter
typedef pool::PoolTraits::Deleter Deleter

Private Member Functions

Inserter inserter (bool installed)
Deleter deleter ()

Private Attributes

RW_pointer< pool::PoolTraits::Impl_pimpl
 Pointer to implementation.

Friends

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


Detailed Description

Manage a ResObject pool.

Definition at line 29 of file ResPoolManager.h.


Member Typedef Documentation

typedef pool::PoolTraits::Item zypp::ResPoolManager::Item
 

Definition at line 35 of file ResPoolManager.h.

typedef pool::PoolTraits::size_type zypp::ResPoolManager::size_type
 

Definition at line 36 of file ResPoolManager.h.

typedef pool::PoolTraits::iterator zypp::ResPoolManager::iterator
 

Definition at line 37 of file ResPoolManager.h.

typedef pool::PoolTraits::const_iterator zypp::ResPoolManager::const_iterator
 

Definition at line 38 of file ResPoolManager.h.

typedef pool::PoolTraits::ItemContainerT zypp::ResPoolManager::ContainerT [private]
 

Definition at line 77 of file ResPoolManager.h.

typedef pool::PoolTraits::Impl zypp::ResPoolManager::Impl [private]
 

Definition at line 78 of file ResPoolManager.h.

typedef pool::PoolTraits::Inserter zypp::ResPoolManager::Inserter [private]
 

Definition at line 79 of file ResPoolManager.h.

typedef pool::PoolTraits::Deleter zypp::ResPoolManager::Deleter [private]
 

Definition at line 80 of file ResPoolManager.h.


Constructor & Destructor Documentation

zypp::ResPoolManager::ResPoolManager  ) 
 

Default ctor.

Definition at line 29 of file ResPoolManager.cc.

zypp::ResPoolManager::~ResPoolManager  ) 
 

Dtor.

Definition at line 38 of file ResPoolManager.cc.


Member Function Documentation

ResPool zypp::ResPoolManager::accessor  )  const [inline]
 

Definition at line 46 of file ResPoolManager.h.

References _pimpl, and zypp::RW_pointer< _D, _Traits >::getPtr().

Referenced by zypp::zypp_detail::ZYppImpl::pool(), and proxy().

ResPoolProxy zypp::ResPoolManager::proxy  )  const
 

Todo:
Speedup by using a data mamaber invaidated only whenever the pool content changes

Definition at line 51 of file ResPoolManager.cc.

References _pimpl, and accessor().

Referenced by zypp::zypp_detail::ZYppImpl::poolProxy().

void zypp::ResPoolManager::insert ResObject::constPtr  ptr_r,
bool  installed = false
[inline]
 

Definition at line 55 of file ResPoolManager.h.

References inserter().

Referenced by zypp::zypp_detail::ZYppImpl::addResolvables(), zypp::zypp_detail::ZYppImpl::availableLocale(), zypp::SourceFeed_Ref::Impl::insert(), and zypp::zypp_detail::ZYppImpl::setRequestedLocales().

template<class _InputIterator>
void zypp::ResPoolManager::insert _InputIterator  first_r,
_InputIterator  last_r,
bool  installed = false
[inline]
 

Definition at line 60 of file ResPoolManager.h.

References inserter().

void zypp::ResPoolManager::erase ResObject::constPtr  ptr_r  )  [inline]
 

Definition at line 64 of file ResPoolManager.h.

References deleter().

Referenced by zypp::zypp_detail::ZYppImpl::removeInstalledResolvables(), and zypp::zypp_detail::ZYppImpl::removeResolvables().

void zypp::ResPoolManager::clear  ) 
 

Definition at line 47 of file ResPoolManager.cc.

References _pimpl.

Inserter zypp::ResPoolManager::inserter bool  installed  )  [inline, private]
 

Definition at line 86 of file ResPoolManager.h.

References _pimpl.

Referenced by insert().

Deleter zypp::ResPoolManager::deleter  )  [inline, private]
 

Definition at line 89 of file ResPoolManager.h.

References _pimpl.

Referenced by erase().


Friends And Related Function Documentation

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

Stream output

Definition at line 59 of file ResPoolManager.cc.


Member Data Documentation

RW_pointer<pool::PoolTraits::Impl> zypp::ResPoolManager::_pimpl [private]
 

Pointer to implementation.

Definition at line 84 of file ResPoolManager.h.

Referenced by accessor(), clear(), deleter(), inserter(), zypp::operator<<(), and proxy().


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:07:31 2006 for zypp by  doxygen 1.4.6