zypp::ResStore Class Reference

#include <ResStore.h>

List of all members.

Public Types

typedef ResObject ResT
 Type of Resolvable provided by ResStore.
typedef StorageT::size_type size_type
typedef StorageT::iterator iterator
typedef StorageT::const_iterator const_iterator

Public Member Functions

 ResStore ()
 Default ctor.
 ~ResStore ()
 Dtor.
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
bool empty () const
size_type size () const
iterator insert (const ResT::Ptr &ptr_r)
template<class _InputIterator>
void insert (_InputIterator first_r, _InputIterator last_r)
size_type erase (const ResT::Ptr &ptr_r)
void erase (iterator first_r, iterator last_r)
void clear ()
template<class _Function, class _Filter>
int forEach (_Filter filter_r, _Function fnc_r) const
 Query inerface.
template<class _Function>
int forEach (_Function fnc_r) const

Private Types

typedef std::set< ResT::PtrStorageT

Private Member Functions

StorageTstore ()
const StorageTstore () const

Private Attributes

StorageT _store
RW_pointer< Impl_pimpl
 Pointer to implementation.

Friends

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

Classes

struct  Impl
 ResStore implementation. More...


Detailed Description

Definition at line 31 of file ResStore.h.


Member Typedef Documentation

typedef ResObject zypp::ResStore::ResT
 

Type of Resolvable provided by ResStore.

Definition at line 37 of file ResStore.h.

typedef std::set<ResT::Ptr> zypp::ResStore::StorageT [private]
 

Definition at line 43 of file ResStore.h.

typedef StorageT::size_type zypp::ResStore::size_type
 

Definition at line 47 of file ResStore.h.

typedef StorageT::iterator zypp::ResStore::iterator
 

Definition at line 48 of file ResStore.h.

typedef StorageT::const_iterator zypp::ResStore::const_iterator
 

Definition at line 49 of file ResStore.h.


Constructor & Destructor Documentation

zypp::ResStore::ResStore  ) 
 

Default ctor.

Definition at line 67 of file ResStore.cc.

zypp::ResStore::~ResStore  ) 
 

Dtor.

Definition at line 76 of file ResStore.cc.


Member Function Documentation

iterator zypp::ResStore::begin  )  [inline]
 

Definition at line 59 of file ResStore.h.

References store().

Referenced by zypp::zypp_detail::ZYppImpl::addResolvables(), zypp::zypp_detail::ZYppImpl::removeResolvables(), and zypp::target::TargetImpl::whoOwnsFile().

iterator zypp::ResStore::end  )  [inline]
 

Definition at line 62 of file ResStore.h.

References store().

Referenced by zypp::zypp_detail::ZYppImpl::addResolvables(), zypp::zypp_detail::ZYppImpl::removeResolvables(), and zypp::target::TargetImpl::whoOwnsFile().

const_iterator zypp::ResStore::begin  )  const [inline]
 

Definition at line 65 of file ResStore.h.

References store().

const_iterator zypp::ResStore::end  )  const [inline]
 

Definition at line 68 of file ResStore.h.

References store().

bool zypp::ResStore::empty  )  const [inline]
 

Definition at line 72 of file ResStore.h.

References store().

size_type zypp::ResStore::size  )  const [inline]
 

Definition at line 75 of file ResStore.h.

References store().

Referenced by zypp::operator<<().

iterator zypp::ResStore::insert const ResT::Ptr ptr_r  )  [inline]
 

Definition at line 80 of file ResStore.h.

References store().

Referenced by zypp::solver::detail::assertSystemResObjectInPool(), zypp::source::susetags::SuseTagsImpl::providePatterns(), zypp::source::susetags::SuseTagsImpl::provideProducts(), zypp::source::susetags::SuseTagsImpl::provideSelections(), and zypp::target::TargetImpl::resolvables().

template<class _InputIterator>
void zypp::ResStore::insert _InputIterator  first_r,
_InputIterator  last_r
[inline]
 

Definition at line 84 of file ResStore.h.

References store().

size_type zypp::ResStore::erase const ResT::Ptr ptr_r  )  [inline]
 

Definition at line 87 of file ResStore.h.

References store().

void zypp::ResStore::erase iterator  first_r,
iterator  last_r
[inline]
 

Definition at line 90 of file ResStore.h.

References store().

void zypp::ResStore::clear  )  [inline]
 

Definition at line 93 of file ResStore.h.

References store().

Referenced by zypp::source::SourceImpl::factoryCtor(), and zypp::target::TargetImpl::resolvables().

template<class _Function, class _Filter>
int zypp::ResStore::forEach _Filter  filter_r,
_Function  fnc_r
const [inline]
 

Query inerface.

Both, filter_r and fnc_r are expected to be functions or functors taking a ResT::Ptr<> as argument and return a bool.

forEach iterates over all ResTs and invokes fnc_r, iff filter_r returned true. If fnc_r returnes false the loop is aborted.

forEach returns the number of fnc_r invocations. Positive if the loop succeeded. Negative if some call to fnc_r returned false. +

See also:
Filter functors operating on ResObjects. for a collection of predefined filters.

Definition at line 112 of file ResStore.h.

References _store.

template<class _Function>
int zypp::ResStore::forEach _Function  fnc_r  )  const [inline]
 

Definition at line 128 of file ResStore.h.

StorageT& zypp::ResStore::store  )  [inline, private]
 

Definition at line 144 of file ResStore.h.

Referenced by begin(), clear(), empty(), end(), erase(), insert(), and size().

const StorageT& zypp::ResStore::store  )  const [inline, private]
 

Definition at line 147 of file ResStore.h.


Friends And Related Function Documentation

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

Stream output

Definition at line 96 of file ResStore.cc.


Member Data Documentation

StorageT zypp::ResStore::_store [private]
 

Definition at line 142 of file ResStore.h.

Referenced by forEach().

RW_pointer<Impl> zypp::ResStore::_pimpl [private]
 

Pointer to implementation.

Definition at line 152 of file ResStore.h.


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