zypp::ResPoolProxy Class Reference

#include <ResPoolProxy.h>

List of all members.

Public Types

typedef
SelectableIndex::iterator 
iterator
typedef
SelectableIndex::const_iterator 
const_iterator
typedef
SelectableIndex::size_type 
size_type
typedef
ResPool::repository_iterator 
repository_iterator

Public Member Functions

 ResPoolProxy ()
 Default ctor: no pool.
 ResPoolProxy (ResPool_Ref pool_r)
 Ctor.
 ~ResPoolProxy ()
 Dtor.
bool empty (const ResObject::Kind &kind_r) const
 True if there are items of a certain kind.
template<class _Res>
bool empty () const
size_type size (const ResObject::Kind &kind_r) const
 Number of Items of a certain kind.
template<class _Res>
size_type size () const
bool hasInstalledObj (const ResObject::Kind &kind_r) const
 Test whether there is at least one ui::Selectable with an installed object.
template<class _Res>
bool hasInstalledObj () const
Iterate through all Selectables of a certain kind.
const_iterator byKindBegin (const ResObject::Kind &kind_r) const
template<class _Res>
const_iterator byKindBegin () const
const_iterator byKindEnd (const ResObject::Kind &kind_r) const
template<class _Res>
const_iterator byKindEnd () const
Iterate through all Repositories that contribute ResObjects.
size_type knownRepositoriesSize () const
repository_iterator knownRepositoriesBegin () const
repository_iterator knownRepositoriesEnd () const
Save and restore state per kind of resolvable.
Simple version, no savety net.

So don't restore or diff, if you didn't save before.

Diff returns true, if current stat differs from the saved state.

void saveState () const
void saveState (const ResObject::Kind &kind_r) const
template<class _Res>
void saveState () const
void restoreState () const
void restoreState (const ResObject::Kind &kind_r) const
template<class _Res>
void restoreState () const
bool diffState () const
bool diffState (const ResObject::Kind &kind_r) const
template<class _Res>
bool diffState () const

Private Types

typedef std::set
< ui::Selectable::Ptr
SelectableIndex
typedef std::map
< ResObject::Kind,
SelectableIndex
SelectablePool

Private Member Functions

template<class _Filter>
filter_iterator
< _Filter,
const_iterator
make_begin (_Filter filter_r, const ResObject::Kind &kind_r) const
template<class _Filter>
filter_iterator
< _Filter,
const_iterator
make_begin (const ResObject::Kind &kind_r) const
template<class _Filter>
filter_iterator
< _Filter,
const_iterator
make_end (_Filter filter_r, const ResObject::Kind &kind_r) const
template<class _Filter>
filter_iterator
< _Filter,
const_iterator
make_end (const ResObject::Kind &kind_r) const

Private Attributes

RW_pointer< Impl_pimpl
 Pointer to implementation.

Friends

std::ostream & operator<< (std::ostream &str, const ResPoolProxy &obj)
 Stream output.

Classes

struct  Impl
 ResPoolProxy implementation. More...


Detailed Description

Todo:
Make it a _Ref.

Definition at line 34 of file ResPoolProxy.h.


Member Typedef Documentation

typedef std::set<ui::Selectable::Ptr> zypp::ResPoolProxy::SelectableIndex [private]

Definition at line 38 of file ResPoolProxy.h.

typedef std::map<ResObject::Kind,SelectableIndex> zypp::ResPoolProxy::SelectablePool [private]

Definition at line 39 of file ResPoolProxy.h.

typedef SelectableIndex::iterator zypp::ResPoolProxy::iterator

Definition at line 43 of file ResPoolProxy.h.

typedef SelectableIndex::const_iterator zypp::ResPoolProxy::const_iterator

Definition at line 46 of file ResPoolProxy.h.

typedef SelectableIndex::size_type zypp::ResPoolProxy::size_type

Definition at line 47 of file ResPoolProxy.h.

typedef ResPool::repository_iterator zypp::ResPoolProxy::repository_iterator

Definition at line 49 of file ResPoolProxy.h.


Constructor & Destructor Documentation

zypp::ResPoolProxy::ResPoolProxy (  ) 

Default ctor: no pool.

Definition at line 240 of file ResPoolProxy.cc.

zypp::ResPoolProxy::ResPoolProxy ( ResPool_Ref  pool_r  ) 

Ctor.

Definition at line 249 of file ResPoolProxy.cc.

zypp::ResPoolProxy::~ResPoolProxy (  ) 

Dtor.

Definition at line 258 of file ResPoolProxy.cc.


Member Function Documentation

bool zypp::ResPoolProxy::empty ( const ResObject::Kind kind_r  )  const

True if there are items of a certain kind.

Definition at line 267 of file ResPoolProxy.cc.

References _pimpl.

template<class _Res>
bool zypp::ResPoolProxy::empty (  )  const [inline]

Definition at line 65 of file ResPoolProxy.h.

ResPoolProxy::size_type zypp::ResPoolProxy::size ( const ResObject::Kind kind_r  )  const

Number of Items of a certain kind.

Definition at line 270 of file ResPoolProxy.cc.

References _pimpl.

template<class _Res>
size_type zypp::ResPoolProxy::size (  )  const [inline]

Definition at line 72 of file ResPoolProxy.h.

ResPoolProxy::const_iterator zypp::ResPoolProxy::byKindBegin ( const ResObject::Kind kind_r  )  const

Definition at line 273 of file ResPoolProxy.cc.

References _pimpl.

Referenced by zypp::ui::poolProxyBegin().

template<class _Res>
const_iterator zypp::ResPoolProxy::byKindBegin (  )  const [inline]

Definition at line 80 of file ResPoolProxy.h.

Referenced by make_begin().

ResPoolProxy::const_iterator zypp::ResPoolProxy::byKindEnd ( const ResObject::Kind kind_r  )  const

Definition at line 276 of file ResPoolProxy.cc.

References _pimpl.

Referenced by zypp::ui::poolProxyEnd().

template<class _Res>
const_iterator zypp::ResPoolProxy::byKindEnd (  )  const [inline]

Definition at line 87 of file ResPoolProxy.h.

Referenced by make_begin(), and make_end().

ResPoolProxy::size_type zypp::ResPoolProxy::knownRepositoriesSize (  )  const

Definition at line 279 of file ResPoolProxy.cc.

References _pimpl.

ResPoolProxy::repository_iterator zypp::ResPoolProxy::knownRepositoriesBegin (  )  const

Definition at line 282 of file ResPoolProxy.cc.

References _pimpl.

ResPoolProxy::repository_iterator zypp::ResPoolProxy::knownRepositoriesEnd (  )  const

Definition at line 285 of file ResPoolProxy.cc.

References _pimpl.

bool zypp::ResPoolProxy::hasInstalledObj ( const ResObject::Kind kind_r  )  const [inline]

Test whether there is at least one ui::Selectable with an installed object.

Definition at line 106 of file ResPoolProxy.h.

template<class _Res>
bool zypp::ResPoolProxy::hasInstalledObj (  )  const [inline]

Definition at line 113 of file ResPoolProxy.h.

void zypp::ResPoolProxy::saveState (  )  const

Definition at line 288 of file ResPoolProxy.cc.

References _pimpl.

Referenced by saveState().

void zypp::ResPoolProxy::saveState ( const ResObject::Kind kind_r  )  const

Definition at line 291 of file ResPoolProxy.cc.

References _pimpl.

template<class _Res>
void zypp::ResPoolProxy::saveState (  )  const [inline]

Definition at line 130 of file ResPoolProxy.h.

References saveState().

void zypp::ResPoolProxy::restoreState (  )  const

Definition at line 294 of file ResPoolProxy.cc.

References _pimpl.

Referenced by restoreState().

void zypp::ResPoolProxy::restoreState ( const ResObject::Kind kind_r  )  const

Definition at line 297 of file ResPoolProxy.cc.

References _pimpl.

template<class _Res>
void zypp::ResPoolProxy::restoreState (  )  const [inline]

Definition at line 138 of file ResPoolProxy.h.

References restoreState().

bool zypp::ResPoolProxy::diffState (  )  const

Definition at line 300 of file ResPoolProxy.cc.

References _pimpl.

Referenced by diffState().

bool zypp::ResPoolProxy::diffState ( const ResObject::Kind kind_r  )  const

Definition at line 303 of file ResPoolProxy.cc.

References _pimpl.

template<class _Res>
bool zypp::ResPoolProxy::diffState (  )  const [inline]

Definition at line 146 of file ResPoolProxy.h.

References diffState().

template<class _Filter>
filter_iterator<_Filter,const_iterator> zypp::ResPoolProxy::make_begin ( _Filter  filter_r,
const ResObject::Kind kind_r 
) const [inline, private]

Definition at line 153 of file ResPoolProxy.h.

References byKindBegin(), and byKindEnd().

Referenced by make_begin().

template<class _Filter>
filter_iterator<_Filter,const_iterator> zypp::ResPoolProxy::make_begin ( const ResObject::Kind kind_r  )  const [inline, private]

Definition at line 161 of file ResPoolProxy.h.

References make_begin().

template<class _Filter>
filter_iterator<_Filter,const_iterator> zypp::ResPoolProxy::make_end ( _Filter  filter_r,
const ResObject::Kind kind_r 
) const [inline, private]

Definition at line 169 of file ResPoolProxy.h.

References byKindEnd().

Referenced by make_end().

template<class _Filter>
filter_iterator<_Filter,const_iterator> zypp::ResPoolProxy::make_end ( const ResObject::Kind kind_r  )  const [inline, private]

Definition at line 177 of file ResPoolProxy.h.

References make_end().


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const ResPoolProxy obj 
) [friend]

Stream output.

Definition at line 311 of file ResPoolProxy.cc.


Member Data Documentation

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

Pointer to implementation.

Definition at line 184 of file ResPoolProxy.h.

Referenced by byKindBegin(), byKindEnd(), diffState(), empty(), knownRepositoriesBegin(), knownRepositoriesEnd(), knownRepositoriesSize(), zypp::operator<<(), restoreState(), saveState(), and size().


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