#include <ResolverContext.h>
Inheritance diagram for zypp::solver::detail::ResolverContext:

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 | setScippedPossibilities (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 IgnoreMap | getIgnoreConflicts () const |
| const IgnoreMap | getIgnoreRequires () const |
| const IgnoreMap | getIgnoreObsoletes () const |
| const PoolItemList | getIgnoreInstalledItem () const |
| const PoolItemList | getIgnoreArchitectureItem () 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 () |
| 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) |
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) | |
| 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) |
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, bool *unneeded=NULL, bool *installed=NULL) |
| bool | requirementIsInstalledOrUnneeded (const ResObject::Kind &kind, const Capability &capability) |
| |
| bool | requirementIsPossible (const Capability &cap) |
| bool | itemIsPossible (const PoolItem_Ref item) |
| 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 |
| 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 | getSourcePriority (Source_Ref 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 |
| 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 86 of file ResolverContext.cc.
References _download_size, _establish_context, _establishing, _forceResolve, _ignoreArchitectureItem, _ignoreConflicts, _ignoreInstalledItem, _ignoreObsoletes, _ignoreRequires, _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 137 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::setScippedPossibilities | ( | 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 154 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 | |||
| ) | [inline] |
Definition at line 159 of file ResolverContext.h.
References _ignoreArchitectureItem, _ignoreConflicts, _ignoreInstalledItem, _ignoreObsoletes, and _ignoreRequires.
| 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] |
| void zypp::solver::detail::ResolverContext::setForceResolve | ( | const bool | force | ) | [inline] |
| const bool zypp::solver::detail::ResolverContext::forceResolve | ( | ) | [inline] |
Definition at line 178 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] |
| 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 145 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 | |||
| ) |
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 201 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 223 of file ResolverContext.cc.
References _download_size, _install_size, _max_priority, _min_priority, _other_penalties, _XDEBUG, addError(), addInfo(), getParallelInstall(), getSourcePriority(), 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 634 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 603 of file ResolverContext.cc.
References _XDEBUG, getStatus(), zypp::ResStatus::satisfied, setStatus(), zypp::ResStatus::unneeded, zypp::ResStatus::wasInstalled(), and zypp::ResStatus::wasUninstalled().
Referenced by requirementIsInstalledOrUnneeded().
| bool zypp::solver::detail::ResolverContext::incomplete | ( | PoolItem_Ref | item, | |
| int | other_penalty | |||
| ) |
set item to incomplete
Definition at line 656 of file ResolverContext.cc.
References _establishing, _XDEBUG, addError(), getStatus(), zypp::ResStatus::incomplete, zypp::ResStatus::needed, RESOLVER_INFO_PRIORITY_VERBOSE, zypp::solver::detail::RESOLVER_INFO_TYPE_INCOMPLETES, setStatus(), zypp::ResStatus::staysInstalled(), 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 321 of file ResolverContext.cc.
References _download_size, _install_size, _max_priority, _min_priority, _other_penalties, _XDEBUG, addError(), addInfo(), getParallelInstall(), getSourcePriority(), getStatus(), 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::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 | |||
| ) |
set item to to-be-uninstalled
Definition at line 421 of file ResolverContext.cc.
References _install_size, _log, _XDEBUG, addError(), addInfo(), forceResolve(), getStatus(), zypp::ResStatus::impossible, zypp::ResStatus::isImpossible(), 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 690 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 713 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, | |
| bool * | unneeded = NULL, |
|||
| bool * | installed = NULL | |||
| ) |
Definition at line 1525 of file ResolverContext.cc.
References _XDEBUG, 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 ResObject::Kind & | kind, | |
| const Capability & | capability | |||
| ) |
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 1553 of file ResolverContext.cc.
References _XDEBUG, requirementIsMet(), and unneeded().
| bool zypp::solver::detail::ResolverContext::requirementIsPossible | ( | const Capability & | cap | ) |
Definition at line 1624 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 | ) |
Definition at line 1642 of file ResolverContext.cc.
References requirementIsPossible(), and zypp::Dep::REQUIRES.
| bool zypp::solver::detail::ResolverContext::isParallelInstall | ( | const PoolItem_Ref | item | ) | const |
Definition at line 1688 of file ResolverContext.cc.
References _ignoreInstalledItem, DBG, zypp::solver::detail::dup_name_check_cb(), zypp::solver::detail::DupNameCheckInfo::flag, foreachMarked(), and zypp::solver::detail::DupNameCheckInfo::other.
| PoolItem_Ref zypp::solver::detail::ResolverContext::getParallelInstall | ( | const PoolItem_Ref | item | ) | const |
Definition at line 1715 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 733 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 768 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 810 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 834 of file ResolverContext.cc.
References zypp::solver::detail::context_item_collector(), and foreachInstall().
| int zypp::solver::detail::ResolverContext::installCount | ( | void | ) | const |
Definition at line 1138 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 1067 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 1083 of file ResolverContext.cc.
References zypp::solver::detail::context_item_collector(), and foreachUninstall().
| int zypp::solver::detail::ResolverContext::uninstallCount | ( | void | ) |
Definition at line 1159 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 1000 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 1019 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 869 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 892 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 1186 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 925 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 948 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 1116 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 1208 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 1232 of file ResolverContext.cc.
References _ignoreInstalledItem, addInfo(), DBG, zypp::solver::detail::RESOLVER_INFO_TYPE_UNINSTALL_LOCKED, and WAR.
Referenced by incomplete(), install(), uninstall(), and upgrade().
| void zypp::solver::detail::ResolverContext::foreachInfo | ( | PoolItem_Ref | item, | |
| int | priority, | |||
| ResolverInfoFn | fn, | |||
| void * | data | |||
| ) | const |
Definition at line 1355 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 1421 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 1755 of file ResolverContext.cc.
References _XDEBUG, getMarked(), getStatus(), zypp::ResStatus::isByUser(), and zypp::Source_Ref::noSource.
Referenced by partialCompare().
| int zypp::solver::detail::ResolverContext::partialCompare | ( | ResolverContext_Ptr | context | ) |
Definition at line 1906 of file ResolverContext.cc.
References _min_priority, _other_penalties, _preferHighestVersion, zypp::solver::detail::churn_factor(), collectCompareInfo(), DBG, zypp::solver::detail::num_cmp(), and zypp::solver::detail::rev_num_cmp().
Referenced by compare().
| int zypp::solver::detail::ResolverContext::compare | ( | ResolverContext_Ptr | context | ) |
Definition at line 1973 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 1447 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 1475 of file ResolverContext.cc.
References _XDEBUG, foreachInfo(), and zypp::solver::detail::spew_info_cb().
| int zypp::solver::detail::ResolverContext::getSourcePriority | ( | Source_Ref | source | ) | const |
Definition at line 1727 of file ResolverContext.cc.
References zypp::Source_Ref::priority(), zypp::Source_Ref::priorityUnsubscribed(), and zypp::Source_Ref::subscribed().
| 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().
bool zypp::solver::detail::ResolverContext::_forceResolve [private] |
Definition at line 104 of file ResolverContext.h.
Referenced by forceResolve(), ResolverContext(), and setForceResolve().
bool zypp::solver::detail::ResolverContext::_upgradeMode [private] |
Definition at line 107 of file ResolverContext.h.
Referenced by ResolverContext(), setUpgradeMode(), and upgradeMode().
bool zypp::solver::detail::ResolverContext::_preferHighestVersion [private] |
Definition at line 109 of file ResolverContext.h.
Referenced by partialCompare(), preferHighestVersion(), ResolverContext(), and setPreferHighestVersion().
bool zypp::solver::detail::ResolverContext::_tryAllPossibilities [private] |
Definition at line 117 of file ResolverContext.h.
Referenced by ResolverContext(), setTryAllPossibilities(), and tryAllPossibilities().
bool zypp::solver::detail::ResolverContext::_skippedPossibilities [private] |
Definition at line 118 of file ResolverContext.h.
Referenced by ResolverContext(), setScippedPossibilities(), and skippedPossibilities().
1.5.0