libzypp
13.10.6
|
ResPool::instance().proxy();. More...
#include <ResPoolProxy.h>
Classes | |
struct | Impl |
ResPoolProxy implementation. More... | |
Public Types | |
typedef MapKVIteratorTraits < SelectablePool > ::Value_const_iterator | const_iterator |
typedef SelectablePool::size_type | size_type |
typedef ResPool::repository_iterator | repository_iterator |
Public Member Functions | |
ResPoolProxy () | |
Default ctor: no pool Nonempty proxies are provided by ResPool. More... | |
~ResPoolProxy () | |
Dtor. More... | |
bool | hasInstalledObj (const ResKind &kind_r) const |
Test whether there is at least one ui::Selectable with an installed object. More... | |
template<class _Res > | |
bool | hasInstalledObj () const |
Lookup individual Selectables. | |
ui::Selectable::Ptr | lookup (const pool::ByIdent &ident_r) const |
ui::Selectable::Ptr | lookup (IdString ident_r) const |
ui::Selectable::Ptr | lookup (ResKind kind_r, const std::string &name_r) const |
ui::Selectable::Ptr | lookup (const sat::Solvable &solv_r) const |
ui::Selectable::Ptr | lookup (const ResObject::constPtr &resolvable_r) const |
ui::Selectable::Ptr | lookup (const PoolItem &pi_r) const |
Iterate through all Selectables of a all kind. | |
bool | empty () const |
size_type | size () const |
const_iterator | begin () const |
const_iterator | end () const |
Iterate through all Selectables of a certain kind. | |
bool | empty (const ResKind &kind_r) const |
True if there are items of a certain kind. More... | |
template<class _Res > | |
bool | empty () const |
size_type | size (const ResKind &kind_r) const |
Number of Items of a certain kind. More... | |
template<class _Res > | |
size_type | size () const |
const_iterator | byKindBegin (const ResKind &kind_r) const |
template<class _Res > | |
const_iterator | byKindBegin () const |
const_iterator | byKindEnd (const ResKind &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 ResKind &kind_r) const |
template<class _Res > | |
void | saveState () const |
void | restoreState () const |
void | restoreState (const ResKind &kind_r) const |
template<class _Res > | |
void | restoreState () const |
bool | diffState () const |
bool | diffState (const ResKind &kind_r) const |
template<class _Res > | |
bool | diffState () const |
Private Types | |
typedef std::multimap< ResKind, ui::Selectable::Ptr > | SelectablePool |
Private Member Functions | |
template<class _Filter > | |
filter_iterator< _Filter, const_iterator > | make_begin (_Filter filter_r, const ResKind &kind_r) const |
template<class _Filter > | |
filter_iterator< _Filter, const_iterator > | make_begin (const ResKind &kind_r) const |
template<class _Filter > | |
filter_iterator< _Filter, const_iterator > | make_end (_Filter filter_r, const ResKind &kind_r) const |
template<class _Filter > | |
filter_iterator< _Filter, const_iterator > | make_end (const ResKind &kind_r) const |
ResPoolProxy (ResPool pool_r, const pool::PoolImpl &poolImpl_r) | |
Ctor. More... | |
Private Attributes | |
RW_pointer< Impl > | _pimpl |
Pointer to implementation. More... | |
Friends | |
class | pool::PoolImpl |
std::ostream & | operator<< (std::ostream &str, const ResPoolProxy &obj) |
std::ostream & | dumpOn (std::ostream &str, const ResPoolProxy &obj) |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const ResPoolProxy &obj) |
std::ostream & | dumpOn (std::ostream &str, const ResPoolProxy &obj) |
ResPool::instance().proxy();.
Definition at line 34 of file ResPoolProxy.h.
|
private |
Definition at line 38 of file ResPoolProxy.h.
typedef MapKVIteratorTraits<SelectablePool>::Value_const_iterator zypp::ResPoolProxy::const_iterator |
Definition at line 42 of file ResPoolProxy.h.
typedef SelectablePool::size_type zypp::ResPoolProxy::size_type |
Definition at line 45 of file ResPoolProxy.h.
Definition at line 47 of file ResPoolProxy.h.
zypp::ResPoolProxy::ResPoolProxy | ( | ) |
Default ctor: no pool Nonempty proxies are provided by ResPool.
Definition at line 248 of file ResPoolProxy.cc.
zypp::ResPoolProxy::~ResPoolProxy | ( | ) |
Dtor.
Definition at line 266 of file ResPoolProxy.cc.
|
private |
Ctor.
Definition at line 257 of file ResPoolProxy.cc.
ui::Selectable::Ptr zypp::ResPoolProxy::lookup | ( | const pool::ByIdent & | ident_r | ) | const |
Definition at line 275 of file ResPoolProxy.cc.
|
inline |
Definition at line 68 of file ResPoolProxy.h.
|
inline |
Definition at line 71 of file ResPoolProxy.h.
|
inline |
Definition at line 74 of file ResPoolProxy.h.
|
inline |
Definition at line 77 of file ResPoolProxy.h.
|
inline |
Definition at line 80 of file ResPoolProxy.h.
bool zypp::ResPoolProxy::empty | ( | ) | const |
Definition at line 278 of file ResPoolProxy.cc.
ResPoolProxy::size_type zypp::ResPoolProxy::size | ( | ) | const |
Definition at line 281 of file ResPoolProxy.cc.
ResPoolProxy::const_iterator zypp::ResPoolProxy::begin | ( | ) | const |
Definition at line 284 of file ResPoolProxy.cc.
ResPoolProxy::const_iterator zypp::ResPoolProxy::end | ( | ) | const |
Definition at line 287 of file ResPoolProxy.cc.
bool zypp::ResPoolProxy::empty | ( | const ResKind & | kind_r | ) | const |
True if there are items of a certain kind.
Definition at line 290 of file ResPoolProxy.cc.
|
inline |
Definition at line 99 of file ResPoolProxy.h.
ResPoolProxy::size_type zypp::ResPoolProxy::size | ( | const ResKind & | kind_r | ) | const |
Number of Items of a certain kind.
Definition at line 293 of file ResPoolProxy.cc.
|
inline |
Definition at line 106 of file ResPoolProxy.h.
ResPoolProxy::const_iterator zypp::ResPoolProxy::byKindBegin | ( | const ResKind & | kind_r | ) | const |
Definition at line 296 of file ResPoolProxy.cc.
|
inline |
Definition at line 112 of file ResPoolProxy.h.
ResPoolProxy::const_iterator zypp::ResPoolProxy::byKindEnd | ( | const ResKind & | kind_r | ) | const |
Definition at line 299 of file ResPoolProxy.cc.
|
inline |
Definition at line 119 of file ResPoolProxy.h.
ResPoolProxy::size_type zypp::ResPoolProxy::knownRepositoriesSize | ( | ) | const |
Definition at line 302 of file ResPoolProxy.cc.
ResPoolProxy::repository_iterator zypp::ResPoolProxy::knownRepositoriesBegin | ( | ) | const |
Definition at line 305 of file ResPoolProxy.cc.
ResPoolProxy::repository_iterator zypp::ResPoolProxy::knownRepositoriesEnd | ( | ) | const |
Definition at line 308 of file ResPoolProxy.cc.
|
inline |
Test whether there is at least one ui::Selectable with an installed object.
Definition at line 138 of file ResPoolProxy.h.
|
inline |
Definition at line 145 of file ResPoolProxy.h.
void zypp::ResPoolProxy::saveState | ( | ) | const |
Definition at line 311 of file ResPoolProxy.cc.
void zypp::ResPoolProxy::saveState | ( | const ResKind & | kind_r | ) | const |
Definition at line 314 of file ResPoolProxy.cc.
|
inline |
Definition at line 162 of file ResPoolProxy.h.
void zypp::ResPoolProxy::restoreState | ( | ) | const |
Definition at line 317 of file ResPoolProxy.cc.
void zypp::ResPoolProxy::restoreState | ( | const ResKind & | kind_r | ) | const |
Definition at line 320 of file ResPoolProxy.cc.
|
inline |
Definition at line 170 of file ResPoolProxy.h.
bool zypp::ResPoolProxy::diffState | ( | ) | const |
Definition at line 323 of file ResPoolProxy.cc.
bool zypp::ResPoolProxy::diffState | ( | const ResKind & | kind_r | ) | const |
Definition at line 326 of file ResPoolProxy.cc.
|
inline |
Definition at line 178 of file ResPoolProxy.h.
|
inlineprivate |
Definition at line 185 of file ResPoolProxy.h.
|
inlineprivate |
Definition at line 193 of file ResPoolProxy.h.
|
inlineprivate |
Definition at line 201 of file ResPoolProxy.h.
|
inlineprivate |
Definition at line 209 of file ResPoolProxy.h.
|
friend |
Definition at line 215 of file ResPoolProxy.h.
|
friend |
Definition at line 329 of file ResPoolProxy.cc.
|
friend |
Definition at line 332 of file ResPoolProxy.cc.
|
related |
Stream output
Definition at line 329 of file ResPoolProxy.cc.
|
related |
Verbose stream output
Definition at line 332 of file ResPoolProxy.cc.
|
private |
Pointer to implementation.
Definition at line 219 of file ResPoolProxy.h.