|
libzypp 17.37.4
|
Combining sat::Solvable and ResStatus. More...
#include <zypp/PoolItem.h>
Classes | |
| struct | Impl |
| PoolItem implementation. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const PoolItem &obj) |
Related Symbols | |
(Note that these are not member symbols.) | |
| std::ostream & | operator<< (std::ostream &str, const PoolItem::Impl &obj) |
| Stream output. | |
| std::ostream & | operator<< (std::ostream &str, const PoolItem &obj) ZYPP_API |
| Stream output. | |
| bool | operator== (const PoolItem &lhs, const PoolItem &rhs) |
| Required to disambiguate vs. | |
| bool | operator== (const PoolItem &lhs, const ResObject::constPtr &rhs) |
| Convenience compare. | |
| bool | operator== (const ResObject::constPtr &lhs, const PoolItem &rhs) |
| Convenience compare. | |
| bool | operator!= (const PoolItem &lhs, const PoolItem &rhs) |
| Required to disambiguate vs. | |
| bool | operator!= (const PoolItem &lhs, const ResObject::constPtr &rhs) |
| Convenience compare. | |
| bool | operator!= (const ResObject::constPtr &lhs, const PoolItem &rhs) |
| Convenience compare. | |
Related Symbols inherited from zypp::sat::SolvableType< PoolItem > | |
| std::ostream & | operator<< (std::ostream &str, const SolvableType< PoolItem > &obj) |
| Stream output. | |
| std::ostream & | dumpOn (std::ostream &str, const SolvableType< PoolItem > &obj) |
| More verbose stream output including dependencies. | |
| bool | operator== (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Equal. | |
| bool | operator!= (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| NotEqual. | |
| bool | operator< (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Less. | |
| bool | isKind (const SolvableType< PoolItem > &solvable_r) |
| Test whether the Solvable is of a certain ResKind. | |
| bool | identical (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Test for same content. | |
| bool | sameNVRA (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Test for same name version release and arch. | |
| int | compareByN (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Compare according to kind and name. | |
| int | compareByNVR (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Compare according to kind, name and edition. | |
| int | compareByNVRA (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Compare according to kind, name, edition and arch. | |
| bool | isKind (const SolvableType< PoolItem > &solvable_r) |
| Test whether the Solvable is of a certain ResKind. | |
| bool | identical (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Test for same content. | |
| bool | sameNVRA (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Test for same name version release and arch. | |
| std::ostream & | operator<< (std::ostream &str, const SolvableType< PoolItem > &obj) |
| Stream output. | |
| std::ostream & | dumpOn (std::ostream &str, const SolvableType< PoolItem > &obj) |
| More verbose stream output including dependencies. | |
| bool | operator== (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Equal. | |
| bool | operator!= (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| NotEqual. | |
| bool | operator< (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Less. | |
| int | compareByN (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Compare according to kind and name. | |
| int | compareByNVR (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Compare according to kind, name and edition. | |
| int | compareByNVRA (const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs) |
| Compare according to kind, name, edition and arch. | |
Status validation. | |
Performed for non-packages. | |
| class | pool::PoolImpl |
| RW_pointer< Impl > | _pimpl |
| Pointer to implementation. | |
| bool | isUndetermined () const |
| No validation is performed for packages. | |
| bool | isRelevant () const |
| Returns true if the solvable is relevant which means e.g. | |
| bool | isSatisfied () const |
| Whether a relevant items requirements are met. | |
| bool | isBroken () const |
| Whether a relevant items requirements are broken. | |
| bool | isNeeded () const |
This includes unlocked broken patches, as well as those already selected to be installed (otherwise classified as satisfied). | |
| bool | isUnwanted () const |
| Broken (needed) but locked patches. | |
| ResPool | pool () const |
| Return the ResPool the item belongs to. | |
| operator sat::Solvable () const | |
| This is a sat::SolvableType. | |
| sat::Solvable | buddy () const |
| Return the buddy we share our status object with. | |
| ResObject::constPtr | resolvable () const |
| Returns the ResObject::constPtr. | |
| operator ResObject::constPtr () const | |
| Implicit conversion into ResObject::constPtr to support query filters operating on ResObject. | |
| ResObject::constPtr | operator-> () const |
Forward -> access to ResObject. | |
| static PoolItem | makePoolItem (const sat::Solvable &solvable_r) |
| PoolItem generator for pool::PoolImpl. | |
| void | setBuddy (const sat::Solvable &solv_r) |
| Buddies are set by pool::PoolImpl. | |
| PoolItem (Impl *implptr_r) | |
| Expose type only. | |
tmp hack for save/restore state. | |
| struct | PoolItemSaver |
| void | saveState () const |
| void | restoreState () const |
| bool | sameState () const |
Additional Inherited Members | |
Public Attributes inherited from zypp::sat::SolvableType< PoolItem > | |
| Capabilities | const |
Protected Member Functions inherited from zypp::sat::SolvableType< PoolItem > | |
| SolvableType () | |
| SolvableType (const SolvableType &)=default | |
| SolvableType (SolvableType &&) noexcept=default | |
| SolvableType & | operator= (const SolvableType &)=default |
| SolvableType & | operator= (SolvableType &&) noexcept=default |
| ~SolvableType () | |
Combining sat::Solvable and ResStatus.
The "real" PoolItem is usually somewhere in the ResPool. This is a reference to it. All copies made will reference (and modify) the same PoolItem. All changes via a PoolItem are immediately visible in all copies (now COW).
const PoolItem does not refer to a const PoolItem. The reference is const, i.e. you can't change the refered PoolItem. The PoolItem (i.e. the status) is always mutable. Definition at line 50 of file PoolItem.h.
| zypp::PoolItem::PoolItem | ( | ) |
Default ctor for use in std::container.
Definition at line 184 of file PoolItem.cc.
|
explicit |
Ctor looking up the sat::Solvable in the ResPool.
Definition at line 188 of file PoolItem.cc.
|
inlineexplicit |
Ctor looking up the sat::Solvable in the ResPool.
Definition at line 62 of file PoolItem.h.
|
explicit |
Ctor looking up the ResObject in the ResPool.
Definition at line 192 of file PoolItem.cc.
| zypp::PoolItem::~PoolItem | ( | ) |
Dtor.
Definition at line 205 of file PoolItem.cc.
|
explicitprivate |
Expose type only.
Definition at line 196 of file PoolItem.cc.
| ResStatus & zypp::PoolItem::status | ( | ) | const |
Returns the current status.
Definition at line 212 of file PoolItem.cc.
| ResStatus & zypp::PoolItem::statusReset | ( | ) | const |
Resets status to the default state (KEEP_STATE bySOLVER; clears any lock!).
Definition at line 213 of file PoolItem.cc.
| ResStatus & zypp::PoolItem::statusReinit | ( | ) | const |
Resets status to it's initial state in the ResPool (KEEP_STATE bySOLVER or LOCKED byUSER).
The state depends on whether the PoolItem matched a hard lock defined in /etc/zypp/locks or not.
Definition at line 214 of file PoolItem.cc.
| bool zypp::PoolItem::isUndetermined | ( | ) | const |
No validation is performed for packages.
Definition at line 217 of file PoolItem.cc.
| bool zypp::PoolItem::isRelevant | ( | ) | const |
Returns true if the solvable is relevant which means e.g.
for patches that at least one package of the patch is installed.
Definition at line 218 of file PoolItem.cc.
| bool zypp::PoolItem::isSatisfied | ( | ) | const |
Whether a relevant items requirements are met.
Definition at line 219 of file PoolItem.cc.
| bool zypp::PoolItem::isBroken | ( | ) | const |
Whether a relevant items requirements are broken.
Definition at line 220 of file PoolItem.cc.
| bool zypp::PoolItem::isNeeded | ( | ) | const |
This includes unlocked broken patches, as well as those already selected to be installed (otherwise classified as satisfied).
Definition at line 221 of file PoolItem.cc.
| bool zypp::PoolItem::isUnwanted | ( | ) | const |
Broken (needed) but locked patches.
Definition at line 222 of file PoolItem.cc.
| ResPool zypp::PoolItem::pool | ( | ) | const |
Return the ResPool the item belongs to.
Definition at line 208 of file PoolItem.cc.
|
inlineexplicit |
This is a sat::SolvableType.
Definition at line 121 of file PoolItem.h.
| sat::Solvable zypp::PoolItem::buddy | ( | ) | const |
Return the buddy we share our status object with.
A Product e.g. may share its status with an associated reference Package.
Definition at line 215 of file PoolItem.cc.
| ResObject::constPtr zypp::PoolItem::resolvable | ( | ) | const |
|
inline |
Implicit conversion into ResObject::constPtr to support query filters operating on ResObject.
Definition at line 138 of file PoolItem.h.
|
inline |
Forward -> access to ResObject.
Definition at line 142 of file PoolItem.h.
|
staticprivate |
PoolItem generator for pool::PoolImpl.
Definition at line 200 of file PoolItem.cc.
|
private |
Buddies are set by pool::PoolImpl.
Definition at line 216 of file PoolItem.cc.
|
private |
Definition at line 224 of file PoolItem.cc.
|
private |
Definition at line 225 of file PoolItem.cc.
|
private |
Definition at line 226 of file PoolItem.cc.
|
friend |
Definition at line 146 of file PoolItem.h.
|
friend |
Definition at line 163 of file PoolItem.h.
Definition at line 230 of file PoolItem.cc.
Stream output.
Definition at line 230 of file PoolItem.cc.
Required to disambiguate vs.
(PoolItem,ResObject::constPtr) due to implicit PoolItem::operator ResObject::constPtr
Definition at line 175 of file PoolItem.h.
|
Convenience compare.
Definition at line 179 of file PoolItem.h.
|
Convenience compare.
Definition at line 183 of file PoolItem.h.
Required to disambiguate vs.
(PoolItem,ResObject::constPtr) due to implicit PoolItem::operator ResObject::constPtr
Definition at line 188 of file PoolItem.h.
|
Convenience compare.
Definition at line 192 of file PoolItem.h.
|
Convenience compare.
Definition at line 196 of file PoolItem.h.
|
private |
Pointer to implementation.
Definition at line 157 of file PoolItem.h.