|
libzypp
9.1.2
|
PoolItem implementation. More...
Public Member Functions | |
| Impl () | |
| Impl (ResObject::constPtr res_r, const ResStatus &status_r) | |
| ResStatus & | status () const |
| sat::Solvable | buddy () const |
| void | setBuddy (sat::Solvable solv_r) |
| ResObject::constPtr | resolvable () const |
| ResStatus & | statusReset () const |
| bool | isUndetermined () const |
| bool | isRelevant () const |
| bool | isSatisfied () const |
| bool | isBroken () const |
| bool | isNeeded () const |
| bool | isUnwanted () const |
Static Public Member Functions | |
| static shared_ptr< Impl > | nullimpl () |
| Offer default Impl. | |
Private Attributes | |
| ResStatus | _status |
| ResObject::constPtr | _resolvable |
| DefaultIntegral < sat::detail::IdType, sat::detail::noId > | _buddy |
Related Functions | |
(Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &str, const PoolItem::Impl &obj) |
Poor man's save/restore state. | |
| |
| ResStatus | _savedStatus |
| void | saveState () const |
| void | restoreState () const |
| bool | sameState () const |
PoolItem implementation.
_buddy handling:
==0 no buddy >0 this uses _buddy status <0 this status used by -_buddy Definition at line 37 of file PoolItem.cc.
| zypp::PoolItem::Impl::Impl | ( | ) | [inline] |
Definition at line 40 of file PoolItem.cc.
| zypp::PoolItem::Impl::Impl | ( | ResObject::constPtr | res_r, |
| const ResStatus & | status_r | ||
| ) | [inline] |
Definition at line 42 of file PoolItem.cc.
| ResStatus& zypp::PoolItem::Impl::status | ( | ) | const [inline] |
Definition at line 48 of file PoolItem.cc.
References _buddy, _status, buddy(), and zypp::PoolItem::PoolItem().
Referenced by isBroken(), isNeeded(), isRelevant(), isSatisfied(), isUndetermined(), isUnwanted(), operator<<(), restoreState(), sameState(), saveState(), and zypp::PoolItem::status().
| sat::Solvable zypp::PoolItem::Impl::buddy | ( | ) | const [inline] |
Definition at line 51 of file PoolItem.cc.
References _buddy, and zypp::sat::Solvable::noSolvable.
Referenced by zypp::PoolItem::buddy(), and status().
| void zypp::PoolItem::Impl::setBuddy | ( | sat::Solvable | solv_r | ) | [inline] |
Definition at line 156 of file PoolItem.cc.
References _buddy, zypp::PoolItem::_pimpl, DBG, zypp::sat::Solvable::id(), resolvable(), and zypp::PoolItem::satSolvable().
Referenced by zypp::PoolItem::setBuddy().
| ResObject::constPtr zypp::PoolItem::Impl::resolvable | ( | ) | const [inline] |
Definition at line 62 of file PoolItem.cc.
References _resolvable.
Referenced by operator<<(), zypp::PoolItem::resolvable(), and setBuddy().
| ResStatus& zypp::PoolItem::Impl::statusReset | ( | ) | const [inline] |
Definition at line 65 of file PoolItem.cc.
References _status, zypp::ResStatus::resetTransact(), zypp::ResStatus::setLock(), and zypp::ResStatus::USER.
Referenced by zypp::PoolItem::statusReset().
| bool zypp::PoolItem::Impl::isUndetermined | ( | ) | const [inline] |
Definition at line 73 of file PoolItem.cc.
References zypp::ResStatus::isUndetermined(), and status().
Referenced by zypp::PoolItem::isUndetermined().
| bool zypp::PoolItem::Impl::isRelevant | ( | ) | const [inline] |
Definition at line 78 of file PoolItem.cc.
References zypp::ResStatus::isNonRelevant(), and status().
Referenced by zypp::PoolItem::isRelevant().
| bool zypp::PoolItem::Impl::isSatisfied | ( | ) | const [inline] |
Definition at line 83 of file PoolItem.cc.
References zypp::ResStatus::isSatisfied(), and status().
Referenced by zypp::PoolItem::isSatisfied().
| bool zypp::PoolItem::Impl::isBroken | ( | ) | const [inline] |
Definition at line 88 of file PoolItem.cc.
References zypp::ResStatus::isBroken(), and status().
Referenced by zypp::PoolItem::isBroken(), isNeeded(), and isUnwanted().
| bool zypp::PoolItem::Impl::isNeeded | ( | ) | const [inline] |
Definition at line 93 of file PoolItem.cc.
References isBroken(), zypp::ResStatus::isLocked(), zypp::ResStatus::isToBeInstalled(), and status().
Referenced by zypp::PoolItem::isNeeded().
| bool zypp::PoolItem::Impl::isUnwanted | ( | ) | const [inline] |
Definition at line 98 of file PoolItem.cc.
References isBroken(), zypp::ResStatus::isLocked(), and status().
Referenced by zypp::PoolItem::isUnwanted().
| void zypp::PoolItem::Impl::saveState | ( | ) | const [inline] |
Definition at line 113 of file PoolItem.cc.
References _savedStatus, and status().
Referenced by zypp::PoolItem::saveState().
| void zypp::PoolItem::Impl::restoreState | ( | ) | const [inline] |
Definition at line 115 of file PoolItem.cc.
References _savedStatus, and status().
Referenced by zypp::PoolItem::restoreState().
| bool zypp::PoolItem::Impl::sameState | ( | ) | const [inline] |
Definition at line 117 of file PoolItem.cc.
References _savedStatus, zypp::ResStatus::getTransactValue(), zypp::ResStatus::isBySolver(), zypp::ResStatus::isLicenceConfirmed(), zypp::ResStatus::LOCKED, and status().
Referenced by zypp::PoolItem::sameState().
| static shared_ptr<Impl> zypp::PoolItem::Impl::nullimpl | ( | ) | [inline, static] |
Offer default Impl.
Definition at line 137 of file PoolItem.cc.
| std::ostream & operator<< | ( | std::ostream & | str, |
| const PoolItem::Impl & | obj | ||
| ) | [related] |
ResStatus zypp::PoolItem::Impl::_status [mutable, private] |
Definition at line 104 of file PoolItem.cc.
Referenced by status(), and statusReset().
Definition at line 105 of file PoolItem.cc.
Referenced by resolvable().
Definition at line 106 of file PoolItem.cc.
Referenced by buddy(), setBuddy(), and status().
ResStatus zypp::PoolItem::Impl::_savedStatus [mutable, private] |
Definition at line 132 of file PoolItem.cc.
Referenced by restoreState(), sameState(), and saveState().
1.7.6.1