#include <ResPoolProxy.h>
Public Types | |
typedef SelectableIndex::iterator | iterator |
typedef SelectableIndex::const_iterator | const_iterator |
typedef SelectableIndex::size_type | size_type |
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 |
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) |
Classes | |
struct | Impl |
ResPoolProxy implementation. More... |
Definition at line 34 of file ResPoolProxy.h.
|
Definition at line 38 of file ResPoolProxy.h. |
|
Definition at line 39 of file ResPoolProxy.h. |
|
Definition at line 43 of file ResPoolProxy.h. |
|
Definition at line 46 of file ResPoolProxy.h. |
|
Definition at line 47 of file ResPoolProxy.h. |
|
Default ctor: no pool.
Definition at line 231 of file ResPoolProxy.cc. |
|
Ctor.
Definition at line 240 of file ResPoolProxy.cc. |
|
Dtor.
Definition at line 249 of file ResPoolProxy.cc. |
|
True if there are items of a certain kind.
Definition at line 258 of file ResPoolProxy.cc. References _pimpl. |
|
Definition at line 63 of file ResPoolProxy.h. |
|
Number of Items of a certain kind.
Definition at line 261 of file ResPoolProxy.cc. References _pimpl. |
|
Definition at line 70 of file ResPoolProxy.h. |
|
Definition at line 264 of file ResPoolProxy.cc. References _pimpl. Referenced by zypp::ui::poolProxyBegin(). |
|
Definition at line 78 of file ResPoolProxy.h. Referenced by make_begin(). |
|
Definition at line 267 of file ResPoolProxy.cc. References _pimpl. Referenced by zypp::ui::poolProxyEnd(). |
|
Definition at line 85 of file ResPoolProxy.h. Referenced by make_begin(), and make_end(). |
|
Test whether there is at least one ui::Selectable with an installed object.
Definition at line 93 of file ResPoolProxy.h. |
|
Definition at line 100 of file ResPoolProxy.h. |
|
Definition at line 270 of file ResPoolProxy.cc. References _pimpl. Referenced by saveState(). |
|
Definition at line 273 of file ResPoolProxy.cc. References _pimpl. |
|
Definition at line 117 of file ResPoolProxy.h. References saveState(). |
|
Definition at line 276 of file ResPoolProxy.cc. References _pimpl. Referenced by restoreState(). |
|
Definition at line 279 of file ResPoolProxy.cc. References _pimpl. |
|
Definition at line 125 of file ResPoolProxy.h. References restoreState(). |
|
Definition at line 282 of file ResPoolProxy.cc. References _pimpl. Referenced by diffState(). |
|
Definition at line 285 of file ResPoolProxy.cc. References _pimpl. |
|
Definition at line 133 of file ResPoolProxy.h. References diffState(). |
|
Definition at line 140 of file ResPoolProxy.h. References byKindBegin(), and byKindEnd(). Referenced by make_begin(). |
|
Definition at line 148 of file ResPoolProxy.h. References make_begin(). |
|
Definition at line 156 of file ResPoolProxy.h. References byKindEnd(). Referenced by make_end(). |
|
Definition at line 164 of file ResPoolProxy.h. References make_end(). |
|
Stream output Definition at line 293 of file ResPoolProxy.cc. |
|
Pointer to implementation.
Definition at line 171 of file ResPoolProxy.h. Referenced by byKindBegin(), byKindEnd(), diffState(), empty(), zypp::operator<<(), restoreState(), saveState(), and size(). |