#include <ResolverContext.h>
Public Member Functions | |
| ResolverContext (const ResPool &pool, const Arch &arch, ResolverContext_Ptr parent=NULL) | |
| virtual | ~ResolverContext () |
| unsigned long long | downloadSize (void) const |
| unsigned long long | installSize (void) const |
| int | totalPriority (void) const |
| int | minPriority (void) const |
| int | maxPriority (void) const |
| int | otherPenalties (void) const |
| bool | isValid (void) const |
| bool | askUser (void) const |
| bool | isInvalid (void) const |
| bool | verifying (void) const |
| void | setVerifying (bool verifying) |
| bool | tryAllPossibilities (void) const |
| void | setTryAllPossibilities (bool tryAllPossibilities) |
| bool | skippedPossibilities (void) const |
| void | setSkippedPossibilities (bool skippedPossibilities) |
| bool | establishing (void) const |
| void | setEstablishing (bool establishing) |
| ResPool | pool () const |
| Arch | architecture () const |
| void | setIgnoreCababilities (const IgnoreMap ignoreConflicts, const IgnoreMap ignoreRequires, const IgnoreMap ignoreObsoletes, const PoolItemList ignoreInstalledItem, const PoolItemList ignoreArchitectureItem, const PoolItemList ignoreVendorItem) |
| const IgnoreMap | getIgnoreConflicts () const |
| const IgnoreMap | getIgnoreRequires () const |
| const IgnoreMap | getIgnoreObsoletes () const |
| const PoolItemList | getIgnoreInstalledItem () const |
| const PoolItemList | getIgnoreArchitectureItem () const |
| const PoolItemList | getIgnoreVendorItem () const |
| void | setForceResolve (const bool force) |
| const bool | forceResolve () |
| void | setEstablishContext (const ResolverContext_Ptr establish_context) |
| void | setPreferHighestVersion (const bool highestVersion) |
| const bool | preferHighestVersion () |
| void | setUpgradeMode (const bool upgrade) |
| const bool | upgradeMode () |
| void | setUserDeleteItems (const PoolItemList &deleteItems) |
| void | setUserInstallItems (const PoolItemList &installItems) |
| void | setUserLockUninstalledItems (const PoolItemList &lockItems) |
| void | setUserKeepItems (const PoolItemList &keepItems) |
| PoolItemList | userDeleteItems () |
| PoolItemList | userInstallItems () |
| PoolItemList | userLockUninstalledItems () |
| PoolItemList | userKeepItems () |
| ResStatus | getStatus (PoolItem_Ref item) |
get the state of item This is NOT the status in the pool but the status according to the context. | |
| void | setStatus (PoolItem_Ref item, const ResStatus &status) |
| state change functions they do some checking before actually changing the state of the PoolItem. | |
| bool | install (PoolItem_Ref item, bool is_soft, int other_penalty) |
set item to to-be-installed | |
| bool | satisfy (PoolItem_Ref item, int other_penalty) |
set item to satisfied | |
| bool | unneeded (PoolItem_Ref item, int other_penalty) |
set item to unneeded | |
| bool | incomplete (PoolItem_Ref item, int other_penalty) |
set item to incomplete | |
| bool | upgrade (PoolItem_Ref to, PoolItem_Ref from, bool is_soft, int other_penalty) |
upgrade from to to marks from as to-be-uninstalled and to as to-be-installed | |
| bool | uninstall (PoolItem_Ref item, bool part_of_upgrade, bool due_to_obsolete, bool due_to_unlink, bool explicitly_requested) |
set item to to-be-uninstalled | |
| bool | isPresent (PoolItem_Ref item, bool *unneeded=NULL, bool *installed=NULL) |
| |
| bool | isAbsent (PoolItem_Ref item) |
| |
| bool | requirementIsMet (const Capability &cap, const PoolItem_Ref who, const Dep &capKind, bool *unneeded=NULL, bool *installed=NULL, const bool installInfoFlag=false) |
| bool | requirementIsInstalledOrUnneeded (const Capability &capability, const PoolItem_Ref who, const Dep &capKind) |
| |
| bool | requirementIsPossible (const Capability &cap) |
| bool | itemIsPossible (const PoolItem_Ref item, Capability &failed) |
| bool | isParallelInstall (const PoolItem_Ref item) const |
| PoolItem_Ref | getParallelInstall (const PoolItem_Ref item) const |
| void | foreachMarked (MarkedPoolItemFn fn, void *data) const |
| iterate over various states | |
| PoolItemList | getMarked (int which) |
| int | foreachInstall (MarkedPoolItemFn fn, void *data) const |
| PoolItemList | getInstalls (void) const |
| int | installCount (void) const |
| int | foreachUninstall (MarkedPoolItemFn fn, void *data) |
| PoolItemList | getUninstalls (void) |
| int | uninstallCount (void) |
| int | foreachUpgrade (MarkedPoolItemPairFn fn, void *data) |
| PoolItemList | getUpgrades (void) |
| int | upgradeCount (void) |
| int | foreachSatisfy (MarkedPoolItemFn fn, void *data) const |
| PoolItemList | getSatisfies (void) const |
| int | satisfyCount (void) const |
| int | foreachIncomplete (MarkedPoolItemFn fn, void *data) const |
| PoolItemList | getIncompletes (void) const |
| int | incompleteCount (void) const |
| int | foreachImpossible (MarkedPoolItemFn fn, void *data) |
| void | addInfo (ResolverInfo_Ptr info, bool askUser=false) |
| void | addError (ResolverInfo_Ptr info, bool askUser=false) |
| void | foreachInfo (PoolItem_Ref item, int priority, ResolverInfoFn fn, void *data, const bool merge=true, const bool findImportant=true) const |
| ResolverInfoList | getInfo (void) const |
| void | collectCompareInfo (int &cmpVersion, int &cmpSource, ResolverContext_Ptr compareContext) |
| int | partialCompare (ResolverContext_Ptr context) |
| int | compare (ResolverContext_Ptr context) |
| void | spew (void) |
| void | spewInfo (void) const |
| int | getRepoPriority (Repository source) const |
Private Types | |
| typedef std::map < PoolItem_Ref, ResStatus > | Context |
Private Attributes | |
| ResolverContext_Ptr | _parent |
| ResolverContext_Ptr | _establish_context |
| Context | _context |
| ResPool | _pool |
| ResolverInfoList | _log |
| unsigned long long | _download_size |
| unsigned long long | _install_size |
| int | _total_priority |
| int | _min_priority |
| int | _max_priority |
| int | _other_penalties |
| bool | _verifying |
| bool | _establishing |
| bool | _invalid |
| bool | _askUser |
| PoolItem_Ref | _last_checked_item |
| ResStatus | _last_checked_status |
| PoolItemList | _last_getMarked |
| int | _last_getMarked_which |
| Arch | _architecture |
| IgnoreMap | _ignoreConflicts |
| IgnoreMap | _ignoreRequires |
| IgnoreMap | _ignoreObsoletes |
| PoolItemList | _ignoreInstalledItem |
| PoolItemList | _ignoreArchitectureItem |
| PoolItemList | _ignoreVendorItem |
| PoolItemList | _userDeleteItems |
| PoolItemList | _userInstallItems |
| PoolItemList | _userLockUninstalledItems |
| PoolItemList | _userKeepItems |
| bool | _forceResolve |
| bool | _upgradeMode |
| bool | _preferHighestVersion |
| bool | _tryAllPossibilities |
| bool | _skippedPossibilities |
Friends | |
| std::ostream & | operator<< (std::ostream &, const ResolverContext &context) |
Definition at line 56 of file ResolverContext.h.
typedef std::map<PoolItem_Ref,ResStatus> zypp::solver::detail::ResolverContext::Context [private] |
Definition at line 64 of file ResolverContext.h.
| zypp::solver::detail::ResolverContext::ResolverContext | ( | const ResPool & | pool, | |
| const Arch & | arch, | |||
| ResolverContext_Ptr | parent = NULL | |||
| ) |
Definition at line 87 of file ResolverContext.cc.
References _download_size, _establish_context, _establishing, _forceResolve, _ignoreArchitectureItem, _ignoreConflicts, _ignoreInstalledItem, _ignoreObsoletes, _ignoreRequires, _ignoreVendorItem, _install_size, _max_priority, _min_priority, _other_penalties, _pool, _preferHighestVersion, _skippedPossibilities, _total_priority, _tryAllPossibilities, _upgradeMode, _verifying, and _XDEBUG.
| zypp::solver::detail::ResolverContext::~ResolverContext | ( | ) | [virtual] |
Definition at line 139 of file ResolverContext.cc.
| unsigned long long zypp::solver::detail::ResolverContext::downloadSize | ( | void | ) | const [inline] |
| unsigned long long zypp::solver::detail::ResolverContext::installSize | ( | void | ) | const [inline] |
| int zypp::solver::detail::ResolverContext::totalPriority | ( | void | ) | const [inline] |
| int zypp::solver::detail::ResolverContext::minPriority | ( | void | ) | const [inline] |
| int zypp::solver::detail::ResolverContext::maxPriority | ( | void | ) | const [inline] |
| int zypp::solver::detail::ResolverContext::otherPenalties | ( | void | ) | const [inline] |
| bool zypp::solver::detail::ResolverContext::isValid | ( | void | ) | const [inline] |
| bool zypp::solver::detail::ResolverContext::askUser | ( | void | ) | const [inline] |
| bool zypp::solver::detail::ResolverContext::isInvalid | ( | void | ) | const [inline] |
| bool zypp::solver::detail::ResolverContext::verifying | ( | void | ) | const [inline] |
| void zypp::solver::detail::ResolverContext::setVerifying | ( | bool | verifying | ) | [inline] |
| bool zypp::solver::detail::ResolverContext::tryAllPossibilities | ( | void | ) | const [inline] |
| void zypp::solver::detail::ResolverContext::setTryAllPossibilities | ( | bool | tryAllPossibilities | ) | [inline] |
| bool zypp::solver::detail::ResolverContext::skippedPossibilities | ( | void | ) | const [inline] |
| void zypp::solver::detail::ResolverContext::setSkippedPossibilities | ( | bool | skippedPossibilities | ) | [inline] |
| bool zypp::solver::detail::ResolverContext::establishing | ( | void | ) | const [inline] |
| void zypp::solver::detail::ResolverContext::setEstablishing | ( | bool | establishing | ) | [inline] |
| ResPool zypp::solver::detail::ResolverContext::pool | ( | void | ) | const [inline] |
Definition at line 163 of file ResolverContext.h.
References _pool.
Referenced by requirementIsMet(), and requirementIsPossible().
| Arch zypp::solver::detail::ResolverContext::architecture | ( | ) | const [inline] |
| void zypp::solver::detail::ResolverContext::setIgnoreCababilities | ( | const IgnoreMap | ignoreConflicts, | |
| const IgnoreMap | ignoreRequires, | |||
| const IgnoreMap | ignoreObsoletes, | |||
| const PoolItemList | ignoreInstalledItem, | |||
| const PoolItemList | ignoreArchitectureItem, | |||
| const PoolItemList | ignoreVendorItem | |||
| ) | [inline] |
Definition at line 168 of file ResolverContext.h.
References _ignoreArchitectureItem, _ignoreConflicts, _ignoreInstalledItem, _ignoreObsoletes, _ignoreRequires, and _ignoreVendorItem.
| const IgnoreMap zypp::solver::detail::ResolverContext::getIgnoreConflicts | ( | ) | const [inline] |
| const IgnoreMap zypp::solver::detail::ResolverContext::getIgnoreRequires | ( | ) | const [inline] |
| const IgnoreMap zypp::solver::detail::ResolverContext::getIgnoreObsoletes | ( | ) | const [inline] |
| const PoolItemList zypp::solver::detail::ResolverContext::getIgnoreInstalledItem | ( | ) | const [inline] |
| const PoolItemList zypp::solver::detail::ResolverContext::getIgnoreArchitectureItem | ( | ) | const [inline] |
| const PoolItemList zypp::solver::detail::ResolverContext::getIgnoreVendorItem | ( | ) | const [inline] |
| void zypp::solver::detail::ResolverContext::setForceResolve | ( | const bool | force | ) | [inline] |
| const bool zypp::solver::detail::ResolverContext::forceResolve | ( | ) | [inline] |
Definition at line 190 of file ResolverContext.h.
References _forceResolve.
Referenced by uninstall().
| void zypp::solver::detail::ResolverContext::setEstablishContext | ( | const ResolverContext_Ptr | establish_context | ) | [inline] |
| void zypp::solver::detail::ResolverContext::setPreferHighestVersion | ( | const bool | highestVersion | ) | [inline] |
| const bool zypp::solver::detail::ResolverContext::preferHighestVersion | ( | ) | [inline] |
| void zypp::solver::detail::ResolverContext::setUpgradeMode | ( | const bool | upgrade | ) | [inline] |
| const bool zypp::solver::detail::ResolverContext::upgradeMode | ( | ) | [inline] |
| void zypp::solver::detail::ResolverContext::setUserDeleteItems | ( | const PoolItemList & | deleteItems | ) | [inline] |
| void zypp::solver::detail::ResolverContext::setUserInstallItems | ( | const PoolItemList & | installItems | ) | [inline] |
| void zypp::solver::detail::ResolverContext::setUserLockUninstalledItems | ( | const PoolItemList & | lockItems | ) | [inline] |
| void zypp::solver::detail::ResolverContext::setUserKeepItems | ( | const PoolItemList & | keepItems | ) | [inline] |
| PoolItemList zypp::solver::detail::ResolverContext::userDeleteItems | ( | ) | [inline] |
| PoolItemList zypp::solver::detail::ResolverContext::userInstallItems | ( | ) | [inline] |
| PoolItemList zypp::solver::detail::ResolverContext::userLockUninstalledItems | ( | ) | [inline] |
| PoolItemList zypp::solver::detail::ResolverContext::userKeepItems | ( | ) | [inline] |
| ResStatus zypp::solver::detail::ResolverContext::getStatus | ( | PoolItem_Ref | item | ) |
get the state of item This is NOT the status in the pool but the status according to the context.
Definition at line 147 of file ResolverContext.cc.
References _establish_context, _last_checked_item, _last_checked_status, zypp::ResStatus::getEstablishValue(), zypp::ResStatus::installed, zypp::ResStatus::isInstalled(), zypp::ResStatus::isUndetermined(), zypp::ResStatus::resetTransact(), zypp::ResStatus::setEstablishValue(), zypp::PoolItem_Ref::status(), zypp::ResStatus::uninstalled, and zypp::ResStatus::USER.
Referenced by collectCompareInfo(), incomplete(), install(), isAbsent(), isPresent(), satisfy(), setStatus(), uninstall(), unneeded(), and upgrade().
| void zypp::solver::detail::ResolverContext::setStatus | ( | PoolItem_Ref | item, | |
| const ResStatus & | status | |||
| ) |
state change functions they do some checking before actually changing the state of the PoolItem.
set the state of item to status If status is not the current state of item, make item part of the current transaction (the context)
Definition at line 203 of file ResolverContext.cc.
References _context, _invalid, _last_checked_item, _last_checked_status, _XDEBUG, and getStatus().
Referenced by incomplete(), install(), satisfy(), uninstall(), unneeded(), and upgrade().
| bool zypp::solver::detail::ResolverContext::install | ( | PoolItem_Ref | item, | |
| bool | is_soft, | |||
| int | other_penalty | |||
| ) |
set item to to-be-installed
Definition at line 225 of file ResolverContext.cc.
References _download_size, _install_size, _max_priority, _min_priority, _other_penalties, _XDEBUG, addError(), addInfo(), getParallelInstall(), getRepoPriority(), getStatus(), zypp::ResStatus::isBySolver(), zypp::ResStatus::isImpossible(), isParallelInstall(), zypp::ResStatus::isToBeInstalled(), zypp::ResStatus::isToBeUninstalled(), zypp::ResStatus::isToBeUninstalledDueToUnlink(), zypp::ResStatus::isUnneeded(), zypp::PoolItem_Ref::resolvable(), RESOLVER_INFO_PRIORITY_VERBOSE, zypp::solver::detail::RESOLVER_INFO_TYPE_INSTALL_PARALLEL, zypp::solver::detail::RESOLVER_INFO_TYPE_INSTALL_TO_BE_UNINSTALLED, zypp::solver::detail::RESOLVER_INFO_TYPE_INSTALL_UNNEEDED, zypp::solver::detail::RESOLVER_INFO_TYPE_UNINSTALLABLE, setStatus(), zypp::ResStatus::toBeInstalled, zypp::ResStatus::toBeInstalledSoft, and zypp::ResStatus::wasUninstalled().
| bool zypp::solver::detail::ResolverContext::satisfy | ( | PoolItem_Ref | item, | |
| int | other_penalty | |||
| ) |
set item to satisfied
Definition at line 640 of file ResolverContext.cc.
References _XDEBUG, zypp::ResStatus::complete, getStatus(), zypp::ResStatus::satisfied, setStatus(), zypp::ResStatus::wasInstalled(), and zypp::ResStatus::wasUninstalled().
| bool zypp::solver::detail::ResolverContext::unneeded | ( | PoolItem_Ref | item, | |
| int | other_penalty | |||
| ) |
set item to unneeded
Definition at line 609 of file ResolverContext.cc.
References _XDEBUG, getStatus(), zypp::ResStatus::satisfied, setStatus(), zypp::ResStatus::unneeded, zypp::ResStatus::wasInstalled(), and zypp::ResStatus::wasUninstalled().
Referenced by zypp::solver::detail::RequirementMet::operator()(), and requirementIsInstalledOrUnneeded().
| bool zypp::solver::detail::ResolverContext::incomplete | ( | PoolItem_Ref | item, | |
| int | other_penalty | |||
| ) |
set item to incomplete
Definition at line 662 of file ResolverContext.cc.
References _establishing, _XDEBUG, getStatus(), zypp::ResStatus::incomplete, zypp::ResStatus::needed, setStatus(), and zypp::ResStatus::wasInstalled().
| bool zypp::solver::detail::ResolverContext::upgrade | ( | PoolItem_Ref | to, | |
| PoolItem_Ref | from, | |||
| bool | is_soft, | |||
| int | other_penalty | |||
| ) |
upgrade from to to marks from as to-be-uninstalled and to as to-be-installed
Definition at line 323 of file ResolverContext.cc.
References _download_size, _install_size, _max_priority, _min_priority, _other_penalties, _XDEBUG, addError(), addInfo(), getParallelInstall(), getRepoPriority(), getStatus(), zypp::ResStatus::getTransactByValue(), zypp::ResStatus::isBySolver(), zypp::ResStatus::isImpossible(), isParallelInstall(), zypp::ResStatus::isToBeInstalled(), zypp::ResStatus::isToBeUninstalled(), zypp::PoolItem_Ref::resolvable(), RESOLVER_INFO_PRIORITY_VERBOSE, zypp::solver::detail::RESOLVER_INFO_TYPE_INSTALL_PARALLEL, zypp::solver::detail::RESOLVER_INFO_TYPE_INSTALL_TO_BE_UNINSTALLED, zypp::solver::detail::RESOLVER_INFO_TYPE_UNINSTALLABLE, setStatus(), zypp::ResStatus::setToBeInstalled(), zypp::ResStatus::SOLVER, zypp::PoolItem_Ref::status(), zypp::ResStatus::toBeInstalledSoft, and zypp::ResStatus::uninstalled.
| bool zypp::solver::detail::ResolverContext::uninstall | ( | PoolItem_Ref | item, | |
| bool | part_of_upgrade, | |||
| bool | due_to_obsolete, | |||
| bool | due_to_unlink, | |||
| bool | explicitly_requested | |||
| ) |
set item to to-be-uninstalled
Definition at line 423 of file ResolverContext.cc.
References _install_size, _log, _XDEBUG, addError(), addInfo(), forceResolve(), getStatus(), zypp::ResStatus::impossible, zypp::ResStatus::isBySolver(), zypp::ResStatus::isImpossible(), zypp::ResStatus::isToBeInstalled(), zypp::ResStatus::isToBeInstalledNotSoft(), zypp::ResStatus::isToBeUninstalled(), zypp::ResStatus::isToBeUninstalledDueToUnlink(), zypp::PoolItem_Ref::resolvable(), RESOLVER_INFO_PRIORITY_VERBOSE, zypp::solver::detail::RESOLVER_INFO_TYPE_CANT_SATISFY, zypp::solver::detail::RESOLVER_INFO_TYPE_CONFLICT_CANT_INSTALL, zypp::solver::detail::RESOLVER_INFO_TYPE_CONFLICTS_WITH, zypp::solver::detail::RESOLVER_INFO_TYPE_NO_OTHER_PROVIDER, zypp::solver::detail::RESOLVER_INFO_TYPE_NO_PROVIDER, zypp::solver::detail::RESOLVER_INFO_TYPE_REJECT_INSTALL, zypp::solver::detail::RESOLVER_INFO_TYPE_UNINSTALLABLE, setStatus(), zypp::PoolItem_Ref::status(), zypp::ResStatus::staysInstalled(), zypp::ResStatus::toBeUninstalled, zypp::ResStatus::toBeUninstalledDueToObsolete, zypp::ResStatus::toBeUninstalledDueToUnlink, zypp::ResStatus::toBeUninstalledDueToUpgrade, zypp::ResStatus::wasInstalled(), and zypp::ResStatus::wasUninstalled().
| bool zypp::solver::detail::ResolverContext::isPresent | ( | PoolItem_Ref | item, | |
| bool * | unneeded = NULL, |
|||
| bool * | installed = NULL | |||
| ) |
true if item is installed or to-be-installed
Definition at line 686 of file ResolverContext.cc.
References _XDEBUG, getStatus(), zypp::ResStatus::isIncomplete(), zypp::ResStatus::isNeeded(), zypp::ResStatus::isSatisfied(), zypp::ResStatus::isToBeInstalled(), zypp::ResStatus::isUnneeded(), and zypp::ResStatus::staysInstalled().
| bool zypp::solver::detail::ResolverContext::isAbsent | ( | PoolItem_Ref | item | ) |
true if item is uninstalled or to-be-uninstalled
Definition at line 709 of file ResolverContext.cc.
References _XDEBUG, getStatus(), zypp::ResStatus::isImpossible(), zypp::ResStatus::isToBeUninstalled(), and zypp::ResStatus::staysUninstalled().
| bool zypp::solver::detail::ResolverContext::requirementIsMet | ( | const Capability & | cap, | |
| const PoolItem_Ref | who, | |||
| const Dep & | capKind, | |||
| bool * | unneeded = NULL, |
|||
| bool * | installed = NULL, |
|||
| const bool | installInfoFlag = false | |||
| ) |
Definition at line 1563 of file ResolverContext.cc.
References _XDEBUG, zypp::solver::detail::RequirementMet::allAtomsSatisfied, zypp::ResPool::byCapabilityIndexEnd(), zypp::solver::detail::RequirementMet::flag, zypp::Capability::index(), zypp::invokeOnEach(), pool(), zypp::Dep::PROVIDES, and zypp::solver::detail::RequirementMet::unneeded.
Referenced by requirementIsInstalledOrUnneeded().
| bool zypp::solver::detail::ResolverContext::requirementIsInstalledOrUnneeded | ( | const Capability & | capability, | |
| const PoolItem_Ref | who, | |||
| const Dep & | capKind | |||
| ) |
true if the requirement is already fulfilled. either by an installed item or the requirement is unneeded. The behaviour depends on the item kind (package,patch,..) which requires this capability.
Definition at line 1595 of file ResolverContext.cc.
References _XDEBUG, requirementIsMet(), and unneeded().
| bool zypp::solver::detail::ResolverContext::requirementIsPossible | ( | const Capability & | cap | ) |
Definition at line 1668 of file ResolverContext.cc.
References _XDEBUG, zypp::ResPool::byCapabilityIndexEnd(), zypp::solver::detail::RequirementPossible::flag, zypp::Capability::index(), zypp::invokeOnEach(), pool(), and zypp::Dep::PROVIDES.
Referenced by itemIsPossible().
| bool zypp::solver::detail::ResolverContext::itemIsPossible | ( | const PoolItem_Ref | item, | |
| Capability & | failed | |||
| ) |
Definition at line 1686 of file ResolverContext.cc.
References requirementIsPossible(), and zypp::Dep::REQUIRES.
| bool zypp::solver::detail::ResolverContext::isParallelInstall | ( | const PoolItem_Ref | item | ) | const |
Definition at line 1733 of file ResolverContext.cc.
References _ignoreInstalledItem, zypp::solver::detail::dup_name_check_cb(), zypp::solver::detail::DupNameCheckInfo::flag, foreachMarked(), zypp::solver::detail::DupNameCheckInfo::other, and XXX.
| PoolItem_Ref zypp::solver::detail::ResolverContext::getParallelInstall | ( | const PoolItem_Ref | item | ) | const |
Definition at line 1760 of file ResolverContext.cc.
References zypp::solver::detail::dup_name_check_cb(), zypp::solver::detail::DupNameCheckInfo::flag, foreachMarked(), and zypp::solver::detail::DupNameCheckInfo::other.
| void zypp::solver::detail::ResolverContext::foreachMarked | ( | MarkedPoolItemFn | fn, | |
| void * | data | |||
| ) | const |
iterate over various states
Definition at line 729 of file ResolverContext.cc.
Referenced by foreachImpossible(), foreachIncomplete(), foreachInstall(), foreachSatisfy(), foreachUninstall(), foreachUpgrade(), getMarked(), getParallelInstall(), and isParallelInstall().
| PoolItemList zypp::solver::detail::ResolverContext::getMarked | ( | int | which | ) |
Definition at line 764 of file ResolverContext.cc.
References _last_getMarked, _last_getMarked_which, foreachMarked(), and zypp::solver::detail::marked_item_collector().
Referenced by collectCompareInfo().
| int zypp::solver::detail::ResolverContext::foreachInstall | ( | MarkedPoolItemFn | fn, | |
| void * | data | |||
| ) | const |
Definition at line 806 of file ResolverContext.cc.
References _pool, foreachMarked(), and zypp::solver::detail::install_item_cb().
Referenced by getInstalls(), installCount(), and spew().
| PoolItemList zypp::solver::detail::ResolverContext::getInstalls | ( | void | ) | const |
Definition at line 830 of file ResolverContext.cc.
References zypp::solver::detail::context_item_collector(), and foreachInstall().
| int zypp::solver::detail::ResolverContext::installCount | ( | void | ) | const |
Definition at line 1134 of file ResolverContext.cc.
References foreachInstall(), and zypp::solver::detail::install_count_cb().
| int zypp::solver::detail::ResolverContext::foreachUninstall | ( | MarkedPoolItemFn | fn, | |
| void * | data | |||
| ) |
Definition at line 1063 of file ResolverContext.cc.
References zypp::solver::detail::build_upgrade_hash_cb(), zypp::solver::detail::UninstallInfo::count, zypp::solver::detail::UninstallInfo::fn, foreachMarked(), foreachUpgrade(), zypp::solver::detail::UninstallInfo::rl, zypp::solver::detail::uninstall_item_cb(), and zypp::solver::detail::UninstallInfo::upgrade_hash.
Referenced by getUninstalls(), spew(), and uninstallCount().
| PoolItemList zypp::solver::detail::ResolverContext::getUninstalls | ( | void | ) |
Definition at line 1079 of file ResolverContext.cc.
References zypp::solver::detail::context_item_collector(), and foreachUninstall().
| int zypp::solver::detail::ResolverContext::uninstallCount | ( | void | ) |
Definition at line 1155 of file ResolverContext.cc.
References foreachUninstall(), and zypp::solver::detail::uninstall_count_cb().
| int zypp::solver::detail::ResolverContext::foreachUpgrade | ( | MarkedPoolItemPairFn | fn, | |
| void * | data | |||
| ) |
Definition at line 996 of file ResolverContext.cc.
References _pool, foreachMarked(), and zypp::solver::detail::upgrade_item_cb().
Referenced by foreachUninstall(), getUpgrades(), spew(), and upgradeCount().
| PoolItemList zypp::solver::detail::ResolverContext::getUpgrades | ( | void | ) |
Definition at line 1015 of file ResolverContext.cc.
References foreachUpgrade(), and zypp::solver::detail::pair_item_collector().
| int zypp::solver::detail::ResolverContext::upgradeCount | ( | void | ) |
| int zypp::solver::detail::ResolverContext::foreachSatisfy | ( | MarkedPoolItemFn | fn, | |
| void * | data | |||
| ) | const |
Definition at line 865 of file ResolverContext.cc.
References _pool, foreachMarked(), and zypp::solver::detail::satisfy_item_cb().
Referenced by getSatisfies(), and satisfyCount().
| PoolItemList zypp::solver::detail::ResolverContext::getSatisfies | ( | void | ) | const |
Definition at line 888 of file ResolverContext.cc.
References zypp::solver::detail::context_item_collector_satisfy(), and foreachSatisfy().
| int zypp::solver::detail::ResolverContext::satisfyCount | ( | void | ) | const |
Definition at line 1182 of file ResolverContext.cc.
References foreachSatisfy(), and zypp::solver::detail::satisfy_count_cb().
| int zypp::solver::detail::ResolverContext::foreachIncomplete | ( | MarkedPoolItemFn | fn, | |
| void * | data | |||
| ) | const |
Definition at line 921 of file ResolverContext.cc.
References _pool, foreachMarked(), and zypp::solver::detail::incomplete_item_cb().
Referenced by getIncompletes(), and incompleteCount().
| PoolItemList zypp::solver::detail::ResolverContext::getIncompletes | ( | void | ) | const |
Definition at line 944 of file ResolverContext.cc.
References zypp::solver::detail::context_item_collector_incomplete(), and foreachIncomplete().
| int zypp::solver::detail::ResolverContext::incompleteCount | ( | void | ) | const |
| int zypp::solver::detail::ResolverContext::foreachImpossible | ( | MarkedPoolItemFn | fn, | |
| void * | data | |||
| ) |
Definition at line 1112 of file ResolverContext.cc.
References _pool, foreachMarked(), and zypp::solver::detail::impossible_item_cb().
| void zypp::solver::detail::ResolverContext::addInfo | ( | ResolverInfo_Ptr | info, | |
| bool | askUser = false | |||
| ) |
Definition at line 1204 of file ResolverContext.cc.
References _askUser, _invalid, _log, _XDEBUG, RESOLVER_INFO_PRIORITY_VERBOSE, and zypp::solver::detail::RESOLVER_INFO_TYPE_INVALID_SOLUTION.
Referenced by addError(), install(), uninstall(), and upgrade().
| void zypp::solver::detail::ResolverContext::addError | ( | ResolverInfo_Ptr | info, | |
| bool | askUser = false | |||
| ) |
Definition at line 1228 of file ResolverContext.cc.
References _ignoreInstalledItem, addInfo(), zypp::solver::detail::RESOLVER_INFO_TYPE_UNINSTALL_LOCKED, WAR, and XXX.
Referenced by install(), uninstall(), and upgrade().
| void zypp::solver::detail::ResolverContext::foreachInfo | ( | PoolItem_Ref | item, | |
| int | priority, | |||
| ResolverInfoFn | fn, | |||
| void * | data, | |||
| const bool | merge = true, |
|||
| const bool | findImportant = true | |||
| ) | const |
Definition at line 1351 of file ResolverContext.cc.
References zypp::solver::detail::mark_important_info().
Referenced by getInfo(), and spewInfo().
| ResolverInfoList zypp::solver::detail::ResolverContext::getInfo | ( | void | ) | const |
Definition at line 1428 of file ResolverContext.cc.
References foreachInfo(), and zypp::solver::detail::get_info_foreach_cb().
| void zypp::solver::detail::ResolverContext::collectCompareInfo | ( | int & | cmpVersion, | |
| int & | cmpSource, | |||
| ResolverContext_Ptr | compareContext | |||
| ) |
Definition at line 1802 of file ResolverContext.cc.
References _XDEBUG, getMarked(), getStatus(), zypp::ResStatus::isByUser(), and zypp::Repository::noRepository.
Referenced by partialCompare().
| int zypp::solver::detail::ResolverContext::partialCompare | ( | ResolverContext_Ptr | context | ) |
Definition at line 1953 of file ResolverContext.cc.
References _min_priority, _other_penalties, _preferHighestVersion, zypp::solver::detail::churn_factor(), collectCompareInfo(), zypp::solver::detail::num_cmp(), zypp::solver::detail::rev_num_cmp(), and XXX.
Referenced by compare().
| int zypp::solver::detail::ResolverContext::compare | ( | ResolverContext_Ptr | context | ) |
Definition at line 2020 of file ResolverContext.cc.
References _download_size, _install_size, partialCompare(), and zypp::solver::detail::rev_num_cmp().
| void zypp::solver::detail::ResolverContext::spew | ( | void | ) |
Definition at line 1454 of file ResolverContext.cc.
References foreachInstall(), foreachUninstall(), foreachUpgrade(), MIL, zypp::solver::detail::spew_item_cb(), and zypp::solver::detail::spew_item_pair_cb().
| void zypp::solver::detail::ResolverContext::spewInfo | ( | void | ) | const |
Definition at line 1482 of file ResolverContext.cc.
References _XDEBUG, foreachInfo(), and zypp::solver::detail::spew_info_cb().
| int zypp::solver::detail::ResolverContext::getRepoPriority | ( | Repository | source | ) | const |
| std::ostream& operator<< | ( | std::ostream & | , | |
| const ResolverContext & | context | |||
| ) | [friend] |
ResolverContext_Ptr zypp::solver::detail::ResolverContext::_parent [private] |
ResolverContext_Ptr zypp::solver::detail::ResolverContext::_establish_context [private] |
Definition at line 62 of file ResolverContext.h.
Referenced by getStatus(), ResolverContext(), and setEstablishContext().
Definition at line 65 of file ResolverContext.h.
Referenced by zypp::solver::detail::operator<<(), and setStatus().
Definition at line 67 of file ResolverContext.h.
Referenced by foreachImpossible(), foreachIncomplete(), foreachInstall(), foreachSatisfy(), foreachUpgrade(), pool(), and ResolverContext().
unsigned long long zypp::solver::detail::ResolverContext::_download_size [private] |
Definition at line 71 of file ResolverContext.h.
Referenced by compare(), downloadSize(), install(), ResolverContext(), and upgrade().
unsigned long long zypp::solver::detail::ResolverContext::_install_size [private] |
Definition at line 72 of file ResolverContext.h.
Referenced by compare(), install(), installSize(), ResolverContext(), uninstall(), and upgrade().
int zypp::solver::detail::ResolverContext::_total_priority [private] |
Definition at line 73 of file ResolverContext.h.
Referenced by ResolverContext(), and totalPriority().
int zypp::solver::detail::ResolverContext::_min_priority [private] |
Definition at line 74 of file ResolverContext.h.
Referenced by install(), minPriority(), partialCompare(), ResolverContext(), and upgrade().
int zypp::solver::detail::ResolverContext::_max_priority [private] |
Definition at line 75 of file ResolverContext.h.
Referenced by install(), maxPriority(), ResolverContext(), and upgrade().
int zypp::solver::detail::ResolverContext::_other_penalties [private] |
Definition at line 76 of file ResolverContext.h.
Referenced by install(), otherPenalties(), partialCompare(), ResolverContext(), and upgrade().
bool zypp::solver::detail::ResolverContext::_verifying [private] |
Definition at line 78 of file ResolverContext.h.
Referenced by ResolverContext(), setVerifying(), and verifying().
bool zypp::solver::detail::ResolverContext::_establishing [private] |
Definition at line 79 of file ResolverContext.h.
Referenced by establishing(), incomplete(), ResolverContext(), and setEstablishing().
bool zypp::solver::detail::ResolverContext::_invalid [private] |
Definition at line 80 of file ResolverContext.h.
Referenced by addInfo(), isInvalid(), isValid(), and setStatus().
bool zypp::solver::detail::ResolverContext::_askUser [private] |
Definition at line 93 of file ResolverContext.h.
Referenced by getIgnoreConflicts(), ResolverContext(), and setIgnoreCababilities().
Definition at line 95 of file ResolverContext.h.
Referenced by getIgnoreRequires(), ResolverContext(), and setIgnoreCababilities().
Definition at line 97 of file ResolverContext.h.
Referenced by getIgnoreObsoletes(), ResolverContext(), and setIgnoreCababilities().
Definition at line 99 of file ResolverContext.h.
Referenced by addError(), getIgnoreInstalledItem(), isParallelInstall(), ResolverContext(), and setIgnoreCababilities().
Definition at line 101 of file ResolverContext.h.
Referenced by getIgnoreArchitectureItem(), ResolverContext(), and setIgnoreCababilities().
Definition at line 103 of file ResolverContext.h.
Referenced by getIgnoreVendorItem(), ResolverContext(), and setIgnoreCababilities().
Definition at line 108 of file ResolverContext.h.
Referenced by setUserDeleteItems(), and userDeleteItems().
Definition at line 109 of file ResolverContext.h.
Referenced by setUserInstallItems(), and userInstallItems().
Definition at line 110 of file ResolverContext.h.
Referenced by setUserLockUninstalledItems(), and userLockUninstalledItems().
Definition at line 111 of file ResolverContext.h.
Referenced by setUserKeepItems(), and userKeepItems().
bool zypp::solver::detail::ResolverContext::_forceResolve [private] |
Definition at line 113 of file ResolverContext.h.
Referenced by forceResolve(), ResolverContext(), and setForceResolve().
bool zypp::solver::detail::ResolverContext::_upgradeMode [private] |
Definition at line 116 of file ResolverContext.h.
Referenced by ResolverContext(), setUpgradeMode(), and upgradeMode().
bool zypp::solver::detail::ResolverContext::_preferHighestVersion [private] |
Definition at line 118 of file ResolverContext.h.
Referenced by partialCompare(), preferHighestVersion(), ResolverContext(), and setPreferHighestVersion().
bool zypp::solver::detail::ResolverContext::_tryAllPossibilities [private] |
Definition at line 126 of file ResolverContext.h.
Referenced by ResolverContext(), setTryAllPossibilities(), and tryAllPossibilities().
bool zypp::solver::detail::ResolverContext::_skippedPossibilities [private] |
Definition at line 127 of file ResolverContext.h.
Referenced by ResolverContext(), setSkippedPossibilities(), and skippedPossibilities().
1.5.3