#include <PoolItem.h>
Classes | |
struct | Impl |
PoolItem implementation. More... | |
Public Member Functions | |
PoolItem () | |
Default ctor for use in std::container. | |
PoolItem (const sat::Solvable &solvable_r) | |
Ctor looking up the sat::Solvable in the ResPool. | |
PoolItem (const ResObject::constPtr &resolvable_r) | |
Ctor looking up the ResObject in the ResPool. | |
~PoolItem () | |
Dtor. | |
ResPool | pool () const |
Return the ResPool the item belongs to. | |
sat::Solvable | satSolvable () const |
Return the corresponding sat::Solvable. | |
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. | |
operator ResObject::constPtr::unspecified_bool_type () const | |
Conversion to bool to allow pointer style tests for nonNULL resolvable. | |
Status related methods. | |
ResStatus & | status () const |
Returns the current status. | |
ResStatus & | statusReset () const |
Reset status. | |
Status validation. | |
Performed for non-packages. | |
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. | |
Private Member Functions | |
void | setBuddy (sat::Solvable solv_r) |
Buddies are set by pool::PoolImpl. | |
PoolItem (Impl *implptr_r) | |
internal ctor | |
Static Private Member Functions | |
static PoolItem | makePoolItem (const sat::Solvable &solvable_r) |
PoolItem generator for pool::PoolImpl. | |
Private Attributes | |
RW_pointer< Impl > | _pimpl |
Pointer to implementation. | |
Friends | |
class | Impl |
class | pool::PoolImpl |
std::ostream & | operator<< (std::ostream &str, const PoolItem &obj) |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (const PoolItem &lhs, const PoolItem &rhs) |
bool | operator== (const PoolItem &lhs, const ResObject::constPtr &rhs) |
bool | operator== (const ResObject::constPtr &lhs, const PoolItem &rhs) |
bool | operator!= (const PoolItem &lhs, const PoolItem &rhs) |
bool | operator!= (const PoolItem &lhs, const ResObject::constPtr &rhs) |
bool | operator!= (const ResObject::constPtr &lhs, const PoolItem &rhs) |
bool | identical (const PoolItem &lhs, const PoolItem &rhs) |
bool | identical (const PoolItem &lhs, sat::Solvable rhs) |
bool | identical (sat::Solvable lhs, const PoolItem &rhs) |
bool | sameNVRA (const PoolItem &lhs, const PoolItem &rhs) |
bool | sameNVRA (const PoolItem &lhs, sat::Solvable rhs) |
bool | sameNVRA (sat::Solvable lhs, const PoolItem &rhs) |
tmp hack for save/restore state. | |
class | PoolItemSaver |
void | saveState () const |
void | restoreState () const |
bool | sameState () const |
The "real" PoolItem is usg. 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 178 of file PoolItem.cc.
Referenced by makePoolItem(), and zypp::PoolItem::Impl::status().
zypp::PoolItem::PoolItem | ( | const sat::Solvable & | solvable_r | ) | [explicit] |
zypp::PoolItem::PoolItem | ( | const ResObject::constPtr & | resolvable_r | ) | [explicit] |
zypp::PoolItem::~PoolItem | ( | ) |
zypp::PoolItem::PoolItem | ( | Impl * | implptr_r | ) | [explicit, private] |
ResStatus & zypp::PoolItem::status | ( | ) | const |
Returns the current status.
Definition at line 241 of file PoolItem.cc.
References _pimpl.
Referenced by zypp::syscontent::Writer::addIf(), zypp::syscontent::Writer::addInstalled(), zypp::Locks::addLock(), zypp::solver::detail::SolverQueueItemLock::addRule(), zypp::ui::StatusBackup::backup(), zypp::solver::detail::TransactionSolutionAction::execute(), zypp::ui::Selectable::Impl::hasLicenceConfirmed(), zypp::HistoryLog::install(), zypp::ui::Selectable::Impl::modifiedBy(), zypp::ui::StatusBackup::operator()(), zypp::solver::detail::CheckIfUpdate::operator()(), zypp::solver::detail::SATCollectTransact::operator()(), zypp::solver::detail::CheckIfBest::operator()(), zypp::solver::detail::LookForReinstall::operator()(), zypp::solver::detail::LookForUpdate::operator()(), zypp::solver::detail::DoTransact::operator()(), zypp::solver::detail::UndoTransact::operator()(), zypp::resfilter::BySuggested::operator()(), zypp::resfilter::ByRecommended::operator()(), zypp::resfilter::ByKeep::operator()(), zypp::resfilter::ByLock::operator()(), zypp::resfilter::ByTransact::operator()(), zypp::resfilter::ByUninstalled::operator()(), zypp::resfilter::ByInstalled::operator()(), zypp::ApplyLock::operator()(), zypp::filter::ByStatus::operator()(), zypp::ui::Selectable::Impl::pickStatus(), zypp::HistoryLog::remove(), zypp::Locks::removeLock(), zypp::solver::detail::SATSolutionToPool(), zypp::ui::Selectable::Impl::setCandidate(), zypp::ui::StatusHelper::setInstall(), zypp::ui::Selectable::Impl::setLicenceConfirmed(), zypp::ui::Selectable::Impl::setPickStatus(), zypp::solver::detail::SATResolver::solving(), zypp::ui::Selectable::Impl::status(), and zypp::pool::PoolImpl::store().
ResStatus & zypp::PoolItem::statusReset | ( | ) | const |
bool zypp::PoolItem::isUndetermined | ( | ) | const |
No validation is performed for packages.
Definition at line 253 of file PoolItem.cc.
References _pimpl.
Referenced by zypp::ui::Selectable::Impl::isUndetermined().
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 256 of file PoolItem.cc.
References _pimpl.
Referenced by zypp::ui::Selectable::Impl::isRelevant().
bool zypp::PoolItem::isSatisfied | ( | ) | const |
Whether a relevant items requirements are met.
Definition at line 259 of file PoolItem.cc.
References _pimpl.
Referenced by zypp::ui::Selectable::Impl::isSatisfied().
bool zypp::PoolItem::isBroken | ( | ) | const |
Whether a relevant items requirements are broken.
Definition at line 262 of file PoolItem.cc.
References _pimpl.
Referenced by zypp::ui::Selectable::Impl::isBroken().
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 265 of file PoolItem.cc.
References _pimpl.
bool zypp::PoolItem::isUnwanted | ( | ) | const |
ResPool zypp::PoolItem::pool | ( | ) | const |
Return the ResPool the item belongs to.
Definition at line 232 of file PoolItem.cc.
References zypp::ResPool::instance().
sat::Solvable zypp::PoolItem::satSolvable | ( | ) | const [inline] |
Return the corresponding sat::Solvable.
Definition at line 114 of file PoolItem.h.
References zypp::sat::Solvable::noSolvable, and resolvable().
Referenced by zypp::PoolItemBest::add(), zypp::solver::detail::SolverQueueItemUpdate::addRule(), zypp::solver::detail::SolverQueueItemLock::addRule(), zypp::ResPool::byIdentBegin(), zypp::ResPool::byIdentEnd(), zypp::PoolQueryResult::contains(), zypp::sat::WhatObsoletes::ctorAdd(), zypp::DiskUsageCounter::disk_usage(), zypp::VendorAttr::equivalent(), zypp::PoolItemBest::find(), zypp::InstanceId::findSolvable(), zypp::InstanceId::getIdFor(), zypp::ui::Selectable::Impl::highestAvailableVersionObj(), identical(), zypp::solver::detail::itemToString(), zypp::ResPoolProxy::lookup(), zypp::solver::detail::SATResolver::mapSolvable(), zypp::ui::Selectable::Impl::multiversionInstall(), zypp::ui::SelectableTraits::IOrder::operator()(), zypp::ui::SelectableTraits::AVOrder::operator()(), zypp::ui::asSelectable::operator()(), zypp::solver::detail::CollectPseudoInstalled::operator()(), zypp::solver::detail::SATCollectTransact::operator()(), zypp::sat::asSolvable::operator()(), zypp::pool::ByIdent::operator()(), zypp::PoolQueryResult::operator+=(), zypp::PoolQueryResult::operator-=(), zypp::ui::Selectable::Impl::pickStatus(), sameNVRA(), zypp::PoolItem::Impl::setBuddy(), and zypp::ui::Selectable::Impl::setPickStatus().
sat::Solvable zypp::PoolItem::buddy | ( | ) | const |
Return the buddy we share our status object with.
A Product e.g. may share it's status with an associated reference Package.
Definition at line 247 of file PoolItem.cc.
References _pimpl.
Referenced by zypp::Product::droplist(), and zypp::solver::detail::SATResolver::mapItem().
ResObject::constPtr zypp::PoolItem::resolvable | ( | ) | const |
Returns the ResObject::constPtr.
Definition at line 280 of file PoolItem.cc.
References _pimpl.
Referenced by zypp::syscontent::Writer::addIf(), zypp::syscontent::Writer::addInstalled(), zypp::solver::detail::SolverQueueItemUpdate::cmp(), zypp::solver::detail::SolverQueueItemLock::cmp(), zypp::solver::detail::helixXML(), zypp::HistoryLog::install(), operator ResObject::constPtr(), operator ResObject::constPtr::unspecified_bool_type(), zypp::target::RepoProvidePackage::operator()(), zypp::solver::detail::LookForUpdate::operator()(), zypp::ApplyLock::operator()(), operator==(), zypp::solver::detail::InstallOrder::rdfsvisit(), zypp::HistoryLog::remove(), and satSolvable().
zypp::PoolItem::operator ResObject::constPtr | ( | ) | const [inline] |
Implicit conversion into ResObject::constPtr to support query filters operating on ResObject.
Definition at line 131 of file PoolItem.h.
References resolvable().
ResObject::constPtr zypp::PoolItem::operator-> | ( | ) | const [inline] |
zypp::PoolItem::operator ResObject::constPtr::unspecified_bool_type | ( | ) | const [inline] |
Conversion to bool to allow pointer style tests for nonNULL resolvable.
Definition at line 140 of file PoolItem.h.
References resolvable().
PoolItem zypp::PoolItem::makePoolItem | ( | const sat::Solvable & | solvable_r | ) | [static, private] |
PoolItem generator for pool::PoolImpl.
Definition at line 214 of file PoolItem.cc.
References Impl, zypp::sat::Solvable::isSystem(), zypp::makeResObject(), and PoolItem().
Referenced by zypp::pool::PoolImpl::store().
void zypp::PoolItem::setBuddy | ( | sat::Solvable | solv_r | ) | [private] |
void zypp::PoolItem::saveState | ( | ) | const [private] |
Definition at line 271 of file PoolItem.cc.
References _pimpl.
Referenced by zypp::PoolItemSaver::saveState().
void zypp::PoolItem::restoreState | ( | ) | const [private] |
Definition at line 274 of file PoolItem.cc.
References _pimpl.
Referenced by zypp::PoolItemSaver::restoreState().
bool zypp::PoolItem::sameState | ( | ) | const [private] |
Definition at line 277 of file PoolItem.cc.
References _pimpl.
Referenced by zypp::PoolItemSaver::diffState().
friend class Impl [friend] |
friend class pool::PoolImpl [friend] |
Definition at line 145 of file PoolItem.h.
friend class PoolItemSaver [friend] |
std::ostream & operator<< | ( | std::ostream & | str, | |
const PoolItem & | obj | |||
) | [friend] |
Stream output
Definition at line 288 of file PoolItem.cc.
bool operator== | ( | const PoolItem & | lhs, | |
const ResObject::constPtr & | rhs | |||
) | [related] |
bool operator== | ( | const ResObject::constPtr & | lhs, | |
const PoolItem & | rhs | |||
) | [related] |
Definition at line 184 of file PoolItem.h.
bool operator!= | ( | const PoolItem & | lhs, | |
const ResObject::constPtr & | rhs | |||
) | [related] |
Definition at line 188 of file PoolItem.h.
bool operator!= | ( | const ResObject::constPtr & | lhs, | |
const PoolItem & | rhs | |||
) | [related] |
Definition at line 192 of file PoolItem.h.
Test for same content.
Definition at line 197 of file PoolItem.h.
References zypp::sat::Solvable::identical(), and satSolvable().
bool identical | ( | const PoolItem & | lhs, | |
sat::Solvable | rhs | |||
) | [related] |
Test for same content.
Definition at line 201 of file PoolItem.h.
References zypp::sat::Solvable::identical(), and satSolvable().
bool identical | ( | sat::Solvable | lhs, | |
const PoolItem & | rhs | |||
) | [related] |
Test for same content.
Definition at line 205 of file PoolItem.h.
References zypp::sat::Solvable::identical(), and satSolvable().
Test for same name version release and arch.
Definition at line 210 of file PoolItem.h.
References zypp::sat::Solvable::sameNVRA(), and satSolvable().
bool sameNVRA | ( | const PoolItem & | lhs, | |
sat::Solvable | rhs | |||
) | [related] |
Test for same name version release and arch.
Definition at line 214 of file PoolItem.h.
References zypp::sat::Solvable::sameNVRA(), and satSolvable().
bool sameNVRA | ( | sat::Solvable | lhs, | |
const PoolItem & | rhs | |||
) | [related] |
Test for same name version release and arch.
Definition at line 218 of file PoolItem.h.
References zypp::sat::Solvable::sameNVRA(), and satSolvable().
RW_pointer<Impl> zypp::PoolItem::_pimpl [private] |
Pointer to implementation.
Definition at line 153 of file PoolItem.h.
Referenced by buddy(), isBroken(), isNeeded(), isRelevant(), isSatisfied(), isUndetermined(), isUnwanted(), zypp::operator<<(), resolvable(), restoreState(), sameState(), saveState(), setBuddy(), zypp::PoolItem::Impl::setBuddy(), status(), and statusReset().