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)
void insert (const ResStore &store_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 ()
 unsafe void erase( iterator first_r, iterator last_r ) { std::for_each( first_r, last_r, deleter() ); }

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)
 Stream output.


Detailed Description

Manage a ResObject pool.

Definition at line 30 of file ResPoolManager.h.


Member Typedef Documentation

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

Definition at line 36 of file ResPoolManager.h.

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

Definition at line 37 of file ResPoolManager.h.

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

Definition at line 38 of file ResPoolManager.h.

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

Definition at line 39 of file ResPoolManager.h.

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

Definition at line 81 of file ResPoolManager.h.

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

Definition at line 82 of file ResPoolManager.h.

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

Definition at line 83 of file ResPoolManager.h.

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

Definition at line 84 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 47 of file ResPoolManager.h.

References _pimpl.

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
Todo:
FIXIT

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 56 of file ResPoolManager.h.

References inserter().

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

void zypp::ResPoolManager::insert ( const ResStore store_r,
bool  installed = false 
) [inline]

Definition at line 59 of file ResPoolManager.h.

References zypp::ResStore::begin(), zypp::ResStore::end(), and insert().

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

Definition at line 64 of file ResPoolManager.h.

References inserter().

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

Definition at line 68 of file ResPoolManager.h.

References deleter().

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

void zypp::ResPoolManager::clear (  ) 

unsafe void erase( iterator first_r, iterator last_r ) { std::for_each( first_r, last_r, deleter() ); }

Definition at line 47 of file ResPoolManager.cc.

References _pimpl.

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

Definition at line 90 of file ResPoolManager.h.

References _pimpl.

Referenced by insert().

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

Definition at line 93 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 88 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 Tue Sep 25 19:23:16 2007 for libzypp by  doxygen 1.5.3