#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 | 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 | 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 is_child=false, bool *unneeded=NULL, bool *installed=NULL) |
| 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 |
| 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 |
Friends | |
| std::ostream & | operator<< (std::ostream &, const ResolverContext &context) |
Definition at line 56 of file ResolverContext.h.
|
|
Definition at line 63 of file ResolverContext.h. |
|
||||||||||||||||
|
Definition at line 86 of file ResolverContext.cc. References _download_size, _establishing, _forceResolve, _ignoreArchitectureItem, _ignoreConflicts, _ignoreInstalledItem, _ignoreObsoletes, _ignoreRequires, _install_size, _max_priority, _min_priority, _other_penalties, _pool, _total_priority, _upgradeMode, _verifying, and _XDEBUG. |
|
|
Definition at line 128 of file ResolverContext.cc. |
|
|
Definition at line 118 of file ResolverContext.h. References _download_size. |
|
|
Definition at line 119 of file ResolverContext.h. References _install_size. |
|
|
Definition at line 120 of file ResolverContext.h. References _total_priority. |
|
|
Definition at line 121 of file ResolverContext.h. References _min_priority. |
|
|
Definition at line 122 of file ResolverContext.h. References _max_priority. |
|
|
Definition at line 123 of file ResolverContext.h. References _other_penalties. |
|
|
Definition at line 125 of file ResolverContext.h. References _invalid. |
|
|
Definition at line 126 of file ResolverContext.h. References _askUser. |
|
|
Definition at line 127 of file ResolverContext.h. References _invalid. |
|
|
Definition at line 129 of file ResolverContext.h. References _verifying. |
|
|
Definition at line 130 of file ResolverContext.h. References _verifying. |
|
|
Definition at line 132 of file ResolverContext.h. References _establishing. |
|
|
Definition at line 133 of file ResolverContext.h. References _establishing. |
|
|
Definition at line 135 of file ResolverContext.h. References _pool. Referenced by requirementIsMet(), and requirementIsPossible(). |
|
|
Definition at line 137 of file ResolverContext.h. References _architecture. |
|
||||||||||||||||||||||||
|
Definition at line 140 of file ResolverContext.h. References _ignoreArchitectureItem, _ignoreConflicts, _ignoreInstalledItem, _ignoreObsoletes, and _ignoreRequires. |
|
|
Definition at line 151 of file ResolverContext.h. References _ignoreConflicts. |
|
|
Definition at line 152 of file ResolverContext.h. References _ignoreRequires. |
|
|
Definition at line 153 of file ResolverContext.h. References _ignoreObsoletes. |
|
|
Definition at line 154 of file ResolverContext.h. References _ignoreInstalledItem. |
|
|
Definition at line 155 of file ResolverContext.h. References _ignoreArchitectureItem. |
|
|
Definition at line 158 of file ResolverContext.h. References _forceResolve. |
|
|
Definition at line 159 of file ResolverContext.h. References _forceResolve. Referenced by uninstall(). |
|
|
Definition at line 161 of file ResolverContext.h. References _upgradeMode. |
|
|
Definition at line 162 of file ResolverContext.h. References _upgradeMode. Referenced by uninstall(). |
|
|
get the state of
Definition at line 136 of file ResolverContext.cc. References _last_checked_item, and _last_checked_status. Referenced by collectCompareInfo(), incomplete(), install(), isAbsent(), isPresent(), satisfy(), setStatus(), uninstall(), unneeded(), and upgrade(). |
|
||||||||||||
|
set the state of
Definition at line 177 of file ResolverContext.cc. References _context, _invalid, _last_checked_item, _last_checked_status, _XDEBUG, and getStatus(). Referenced by incomplete(), satisfy(), and unneeded(). |
|
||||||||||||||||
|
set
Definition at line 199 of file ResolverContext.cc. References _XDEBUG, addError(), getStatus(), zypp::ResStatus::isToBeUninstalled(), zypp::ResStatus::isToBeUninstalledDueToUnlink(), RESOLVER_INFO_PRIORITY_VERBOSE, and zypp::solver::detail::RESOLVER_INFO_TYPE_INSTALL_TO_BE_UNINSTALLED. |
|
||||||||||||
|
set
Definition at line 573 of file ResolverContext.cc. References _XDEBUG, zypp::ResStatus::complete, getStatus(), setStatus(), and zypp::ResStatus::wasInstalled(). |
|
||||||||||||
|
set
Definition at line 542 of file ResolverContext.cc. References _XDEBUG, getStatus(), zypp::ResStatus::satisfied, setStatus(), and zypp::ResStatus::wasInstalled(). |
|
||||||||||||
|
set
Definition at line 595 of file ResolverContext.cc. References _establishing, _XDEBUG, getStatus(), zypp::ResStatus::incomplete, zypp::ResStatus::needed, setStatus(), and zypp::ResStatus::wasInstalled(). |
|
||||||||||||||||||||
|
upgrade
Definition at line 282 of file ResolverContext.cc. References _XDEBUG, addError(), getParallelInstall(), getStatus(), zypp::ResStatus::isImpossible(), isParallelInstall(), zypp::ResStatus::isToBeInstalled(), zypp::ResStatus::isToBeUninstalled(), RESOLVER_INFO_PRIORITY_VERBOSE, zypp::solver::detail::RESOLVER_INFO_TYPE_INSTALL_PARALLEL, and zypp::ResStatus::SOLVER. |
|
||||||||||||||||||||
|
set
Definition at line 361 of file ResolverContext.cc. References _log, _XDEBUG, forceResolve(), getStatus(), zypp::ResStatus::isToBeInstalledNotSoft(), zypp::solver::detail::RESOLVER_INFO_TYPE_CONFLICT_CANT_INSTALL, zypp::solver::detail::RESOLVER_INFO_TYPE_CONFLICTS_WITH, zypp::PoolItem_Ref::status(), zypp::ResStatus::staysInstalled(), and upgradeMode(). |
|
||||||||||||||||
|
Definition at line 629 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(). |
|
|
Definition at line 652 of file ResolverContext.cc. References _XDEBUG, getStatus(), zypp::ResStatus::isImpossible(), zypp::ResStatus::isToBeUninstalled(), and zypp::ResStatus::staysUninstalled(). |
|
||||||||||||||||||||
|
Definition at line 1468 of file ResolverContext.cc. References _XDEBUG, zypp::ResPool::byCapabilityIndexEnd(), zypp::solver::detail::RequirementMet::flag, zypp::Capability::index(), zypp::invokeOnEach(), zypp::Capability::noCap, pool(), zypp::Dep::PROVIDES, and zypp::solver::detail::RequirementMet::unneeded. |
|
|
Definition at line 1533 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(). |
|
|
Definition at line 1551 of file ResolverContext.cc. References requirementIsPossible(), and zypp::Dep::REQUIRES. |
|
|
Definition at line 1597 of file ResolverContext.cc. Referenced by upgrade(). |
|
|
Definition at line 1624 of file ResolverContext.cc. References zypp::solver::detail::dup_name_check_cb(), zypp::solver::detail::DupNameCheckInfo::flag, foreachMarked(), and zypp::solver::detail::DupNameCheckInfo::other. Referenced by upgrade(). |
|
||||||||||||
|
iterate over various states
Definition at line 672 of file ResolverContext.cc. Referenced by foreachImpossible(), foreachIncomplete(), foreachInstall(), foreachSatisfy(), foreachUninstall(), foreachUpgrade(), getMarked(), and getParallelInstall(). |
|
|
Definition at line 707 of file ResolverContext.cc. References _last_getMarked, _last_getMarked_which, foreachMarked(), and zypp::solver::detail::marked_item_collector(). Referenced by collectCompareInfo(). |
|
||||||||||||
|
Definition at line 749 of file ResolverContext.cc. References _pool, foreachMarked(), and zypp::solver::detail::install_item_cb(). Referenced by getInstalls(), installCount(), and spew(). |
|
|
Definition at line 773 of file ResolverContext.cc. References zypp::solver::detail::context_item_collector(), and foreachInstall(). |
|
|
Definition at line 1077 of file ResolverContext.cc. References foreachInstall(), and zypp::solver::detail::install_count_cb(). |
|
||||||||||||
|
|
Definition at line 1022 of file ResolverContext.cc. References zypp::solver::detail::context_item_collector(), and foreachUninstall(). |
|
|
Definition at line 1098 of file ResolverContext.cc. References foreachUninstall(), and zypp::solver::detail::uninstall_count_cb(). |
|
||||||||||||
|
Definition at line 939 of file ResolverContext.cc. References _pool, foreachMarked(), and zypp::solver::detail::upgrade_item_cb(). Referenced by foreachUninstall(), getUpgrades(), spew(), and upgradeCount(). |
|
|
Definition at line 958 of file ResolverContext.cc. References foreachUpgrade(), and zypp::solver::detail::pair_item_collector(). |
|
|
Definition at line 1109 of file ResolverContext.cc. References foreachUpgrade(). |
|
||||||||||||
|
Definition at line 808 of file ResolverContext.cc. References _pool, foreachMarked(), and zypp::solver::detail::satisfy_item_cb(). Referenced by getSatisfies(), and satisfyCount(). |
|
|
Definition at line 831 of file ResolverContext.cc. References zypp::solver::detail::context_item_collector_satisfy(), and foreachSatisfy(). |
|
|
Definition at line 1125 of file ResolverContext.cc. References foreachSatisfy(), and zypp::solver::detail::satisfy_count_cb(). |
|
||||||||||||
|
Definition at line 864 of file ResolverContext.cc. References _pool, foreachMarked(), and zypp::solver::detail::incomplete_item_cb(). Referenced by getIncompletes(), and incompleteCount(). |
|
|
Definition at line 887 of file ResolverContext.cc. References zypp::solver::detail::context_item_collector_incomplete(), and foreachIncomplete(). |
|
|
Definition at line 1136 of file ResolverContext.cc. References foreachIncomplete(). |
|
||||||||||||
|
Definition at line 1055 of file ResolverContext.cc. References _pool, foreachMarked(), and zypp::solver::detail::impossible_item_cb(). |
|
||||||||||||
|
Definition at line 1147 of file ResolverContext.cc. References _invalid, _log, _XDEBUG, RESOLVER_INFO_PRIORITY_VERBOSE, and zypp::solver::detail::RESOLVER_INFO_TYPE_INVALID_SOLUTION. |
|
||||||||||||
|
Definition at line 1171 of file ResolverContext.cc. References _ignoreInstalledItem, DBG, and zypp::solver::detail::RESOLVER_INFO_TYPE_UNINSTALL_LOCKED. |
|
||||||||||||||||||||
|
Definition at line 1294 of file ResolverContext.cc. Referenced by getInfo(), and spewInfo(). |
|
|
Definition at line 1360 of file ResolverContext.cc. References foreachInfo(), and zypp::solver::detail::get_info_foreach_cb(). |
|
||||||||||||||||
|
Definition at line 1664 of file ResolverContext.cc. References _XDEBUG, getMarked(), getStatus(), and zypp::Source_Ref::noSource. Referenced by partialCompare(). |
|
|
Definition at line 1815 of file ResolverContext.cc. References _min_priority, _other_penalties, zypp::solver::detail::churn_factor(), collectCompareInfo(), DBG, zypp::solver::detail::num_cmp(), and zypp::solver::detail::rev_num_cmp(). Referenced by compare(). |
|
|
Definition at line 1859 of file ResolverContext.cc. References _download_size, _install_size, partialCompare(), and zypp::solver::detail::rev_num_cmp(). |
|
|
Definition at line 1386 of file ResolverContext.cc. References foreachInstall(), foreachUninstall(), foreachUpgrade(), MIL, zypp::solver::detail::spew_item_cb(), and zypp::solver::detail::spew_item_pair_cb(). |
|
|
Definition at line 1414 of file ResolverContext.cc. References _XDEBUG, foreachInfo(), and zypp::solver::detail::spew_info_cb(). |
|
|
Definition at line 1636 of file ResolverContext.cc. References zypp::Source_Ref::priority(), zypp::Source_Ref::priorityUnsubscribed(), and zypp::Source_Ref::subscribed(). |
|
||||||||||||
|
|
|
|
Definition at line 61 of file ResolverContext.h. Referenced by zypp::solver::detail::operator<<(). |
|
|
Definition at line 64 of file ResolverContext.h. Referenced by zypp::solver::detail::operator<<(), and setStatus(). |
|
|
Definition at line 66 of file ResolverContext.h. Referenced by foreachImpossible(), foreachIncomplete(), foreachInstall(), foreachSatisfy(), foreachUpgrade(), pool(), and ResolverContext(). |
|
|
Definition at line 68 of file ResolverContext.h. Referenced by addInfo(), and uninstall(). |
|
|
Definition at line 70 of file ResolverContext.h. Referenced by compare(), downloadSize(), and ResolverContext(). |
|
|
Definition at line 71 of file ResolverContext.h. Referenced by compare(), installSize(), and ResolverContext(). |
|
|
Definition at line 72 of file ResolverContext.h. Referenced by ResolverContext(), and totalPriority(). |
|
|
Definition at line 73 of file ResolverContext.h. Referenced by minPriority(), partialCompare(), and ResolverContext(). |
|
|
Definition at line 74 of file ResolverContext.h. Referenced by maxPriority(), and ResolverContext(). |
|
|
Definition at line 75 of file ResolverContext.h. Referenced by otherPenalties(), partialCompare(), and ResolverContext(). |
|
|
Definition at line 77 of file ResolverContext.h. Referenced by ResolverContext(), setVerifying(), and verifying(). |
|
|
Definition at line 78 of file ResolverContext.h. Referenced by establishing(), incomplete(), ResolverContext(), and setEstablishing(). |
|
|
Definition at line 79 of file ResolverContext.h. Referenced by addInfo(), isInvalid(), isValid(), and setStatus(). |
|
|
Definition at line 80 of file ResolverContext.h. Referenced by askUser(). |
|
|
Definition at line 82 of file ResolverContext.h. Referenced by getStatus(), and setStatus(). |
|
|
Definition at line 83 of file ResolverContext.h. Referenced by getStatus(), and setStatus(). |
|
|
Definition at line 85 of file ResolverContext.h. Referenced by getMarked(). |
|
|
Definition at line 87 of file ResolverContext.h. Referenced by getMarked(). |
|
|
Definition at line 89 of file ResolverContext.h. Referenced by architecture(). |
|
|
Definition at line 92 of file ResolverContext.h. Referenced by getIgnoreConflicts(), ResolverContext(), and setIgnoreCababilities(). |
|
|
Definition at line 94 of file ResolverContext.h. Referenced by getIgnoreRequires(), ResolverContext(), and setIgnoreCababilities(). |
|
|
Definition at line 96 of file ResolverContext.h. Referenced by getIgnoreObsoletes(), ResolverContext(), and setIgnoreCababilities(). |
|
|
Definition at line 98 of file ResolverContext.h. Referenced by addError(), getIgnoreInstalledItem(), ResolverContext(), and setIgnoreCababilities(). |
|
|
Definition at line 100 of file ResolverContext.h. Referenced by getIgnoreArchitectureItem(), ResolverContext(), and setIgnoreCababilities(). |
|
|
Definition at line 103 of file ResolverContext.h. Referenced by forceResolve(), ResolverContext(), and setForceResolve(). |
|
|
Definition at line 106 of file ResolverContext.h. Referenced by ResolverContext(), setUpgradeMode(), and upgradeMode(). |
1.4.6