#include <ResStatus.h>
Public Types | |
BitField range definitions. | |
| |
typedef uint16_t | FieldType |
typedef bit::BitField< FieldType > | BitFieldType |
typedef bit::Range< FieldType, 0, 1 > | StateField |
typedef bit::Range< FieldType, StateField::end, 2 > | EstablishField |
typedef bit::Range< FieldType, EstablishField::end, 2 > | TransactField |
typedef bit::Range< FieldType, TransactField::end, 2 > | TransactByField |
typedef bit::Range< FieldType, TransactByField::end, 3 > | TransactDetailField |
typedef bit::Range< FieldType, TransactDetailField::end, 2 > | SolverStateField |
typedef bit::Range< FieldType, SolverStateField::end, 1 > | LicenceConfirmedField |
Status values. | |
Each enum corresponds to a BitField range.
| |
enum | StateValue { UNINSTALLED = bit::RangeValue<StateField, value, INSTALLED = bit::RangeValue<StateField, value } |
enum | EstablishValue { UNDETERMINED = bit::RangeValue<EstablishField, value, UNNEEDED = bit::RangeValue<EstablishField, value, SATISFIED = bit::RangeValue<EstablishField, value, INCOMPLETE = bit::RangeValue<EstablishField, value } |
enum | TransactValue { KEEP_STATE = bit::RangeValue<TransactField, value, LOCKED = bit::RangeValue<TransactField, value, TRANSACT = bit::RangeValue<TransactField, value } |
enum | TransactByValue { SOLVER = bit::RangeValue<TransactByField, value, APPL_LOW = bit::RangeValue<TransactByField, value, APPL_HIGH = bit::RangeValue<TransactByField, value, USER = bit::RangeValue<TransactByField, value } |
enum | DetailValue { NO_DETAIL = bit::RangeValue<TransactDetailField, value } |
enum | InstallDetailValue { EXPLICIT_INSTALL = bit::RangeValue<TransactDetailField, value, SOFT_INSTALL = bit::RangeValue<TransactDetailField, value } |
enum | RemoveDetailValue { EXPLICIT_REMOVE = bit::RangeValue<TransactDetailField, value, SOFT_REMOVE = bit::RangeValue<TransactDetailField, value, DUE_TO_OBSOLETE = bit::RangeValue<TransactDetailField, value, DUE_TO_UNLINK = bit::RangeValue<TransactDetailField, value, DUE_TO_UPGRADE = bit::RangeValue<TransactDetailField, value } |
enum | SolverStateValue { NORMAL = bit::RangeValue<SolverStateField, value, SEEN = bit::RangeValue<SolverStateField, value, IMPOSSIBLE = bit::RangeValue<SolverStateField, value } |
enum | LicenceConfirmedValue { LICENCE_UNCONFIRMED = bit::RangeValue<LicenceConfirmedField, value, LICENCE_CONFIRMED = bit::RangeValue<LicenceConfirmedField, value } |
Public Member Functions | |
ResStatus () | |
Default ctor. | |
ResStatus (bool isInstalled_r) | |
Ctor setting the initial . | |
~ResStatus () | |
Dtor. | |
BitFieldType | bitfield () const |
Debug helper returning the bitfield. | |
bool | isLicenceConfirmed () const |
void | setLicenceConfirmed (bool toVal_r=true) |
bool | isInstalled () const |
bool | isUninstalled () const |
bool | staysInstalled () const |
bool | wasInstalled () const |
bool | isToBeInstalled () const |
bool | staysUninstalled () const |
bool | wasUninstalled () const |
bool | isToBeUninstalled () const |
bool | isUndetermined () const |
bool | isEstablishedUneeded () const |
bool | isEstablishedSatisfied () const |
bool | isEstablishedIncomplete () const |
bool | isUnneeded () const |
bool | isSatisfied () const |
bool | isComplete () const |
bool | isIncomplete () const |
bool | isNeeded () const |
bool | isLocked () const |
bool | transacts () const |
TransactValue | getTransactValue () const |
bool | isBySolver () const |
bool | isByApplLow () const |
bool | isByApplHigh () const |
bool | isByUser () const |
TransactByValue | getTransactByValue () const |
bool | isToBeUninstalledDueToObsolete () const |
bool | isToBeUninstalledDueToUnlink () const |
bool | isToBeUninstalledDueToUpgrade () const |
bool | isToBeInstalledSoft () const |
bool | isToBeUninstalledSoft () const |
bool | setTransactValue (TransactValue newVal_r, TransactByValue causer_r) |
Set TransactValue. | |
bool | maySetTransactValue (TransactValue newVal_r, TransactByValue causer_r) |
bool | setLock (bool toLock_r, TransactByValue causer_r) |
Apply a lock (prevent transaction). | |
bool | maySetLock (bool to_r, TransactByValue causer_r) |
bool | setTransact (bool toTansact_r, TransactByValue causer_r) |
Toggle between TRANSACT and KEEP_STATE. | |
bool | maySetTransact (bool val_r, TransactByValue causer) |
bool | setSoftLock (TransactByValue causer_r) |
bool | resetTransact (TransactByValue causer_r) |
Not the same as setTransact( false ). | |
bool | setSoftTransact (bool toTansact_r, TransactByValue causer_r, TransactByValue causerLimit_r) |
Soft toggle between TRANSACT and KEEP_STATE. | |
bool | setSoftTransact (bool toTansact_r, TransactByValue causer_r) |
bool | maySetSoftTransact (bool val_r, TransactByValue causer, TransactByValue causerLimit_r) |
bool | maySetSoftTransact (bool val_r, TransactByValue causer) |
bool | setToBeInstalled (TransactByValue causer) |
bool | maySetToBeInstalled (TransactByValue causer) |
bool | setToBeUninstalled (TransactByValue causer) |
bool | maySetToBeUninstalled (TransactByValue causer) |
bool | setToBeUninstalledDueToUnlink () |
bool | setToBeUninstalledDueToObsolete () |
bool | setToBeUninstalledDueToUpgrade (TransactByValue causer) |
bool | setToBeInstalledSoft () |
bool | setToBeUninstalledSoft () |
bool | isSoftInstall () |
bool | isSoftUninstall () |
bool | setSoftInstall (bool flag) |
bool | setSoftUninstall (bool flag) |
bool | setUndetermined () |
bool | setUnneeded () |
bool | setSatisfied () |
bool | setIncomplete () |
bool | isSeen () const |
bool | isImpossible () const |
bool | setSeen (bool value) |
bool | setImpossible (bool value) |
bool | setStatus (ResStatus newStatus_r) |
Static Public Attributes | |
Builtin ResStatus constants. | |
static const ResStatus | toBeInstalled |
static const ResStatus | toBeInstalledSoft |
static const ResStatus | toBeUninstalled |
static const ResStatus | toBeUninstalledSoft |
static const ResStatus | toBeUninstalledDueToUnlink |
static const ResStatus | toBeUninstalledDueToObsolete |
static const ResStatus | toBeUninstalledDueToUpgrade |
static const ResStatus | installed |
static const ResStatus | uninstalled |
static const ResStatus | satisfied |
static const ResStatus | complete |
static const ResStatus | unneeded |
static const ResStatus | needed |
static const ResStatus | incomplete |
static const ResStatus | impossible |
Private Member Functions | |
ResStatus (StateValue s, EstablishValue e=UNDETERMINED, TransactValue t=KEEP_STATE, InstallDetailValue i=EXPLICIT_INSTALL, RemoveDetailValue r=EXPLICIT_REMOVE, SolverStateValue ssv=NORMAL) | |
Ctor for intialization of builtin constants. | |
template<class _Field> | |
bool | fieldValueIs (FieldType val_r) const |
Return whether the corresponding Field has value val_r. | |
template<class _Field> | |
void | fieldValueAssign (FieldType val_r) |
Set the corresponding Field to value val_r. | |
template<class _Field> | |
bool | isGreaterThan (FieldType val_r) |
compare two values. | |
template<class _Field> | |
bool | isLessThan (FieldType val_r) |
Private Attributes | |
BitFieldType | _bitfield |
Friends | |
std::ostream & | operator<< (std::ostream &str, const ResStatus &obj) |
bool | operator== (const ResStatus &lhs, const ResStatus &rhs) |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator!= (const ResStatus &lhs, const ResStatus &rhs) |
StateField
Whether the resolvable is or uninstalled (available). EstablishField
Established status computed by the solver as unneeded (have freshens but none of them trigger) satisfied (no freshen or at least one triggered freshen and all requires fulfilled) or incomplete (no freshen or at least one triggered freshen and NOT all requires fulfilled) TransactField
Wheter to transact this resolvable (delete if installed install if uninstalled). In case the resolvable is locked, only USER may modify the transact bit. TransactByField
Who triggered the transaction. Transaction bit may be reset by higer levels only. TransactDetailField
Reason why the Resolvable transacts. Splitted into InstallDetailValue
and RemoveDetailValue
dependent on the kind of transaction.
Definition at line 47 of file ResStatus.h.
|
Definition at line 59 of file ResStatus.h. |
|
Definition at line 60 of file ResStatus.h. |
|
Definition at line 62 of file ResStatus.h. |
|
Definition at line 63 of file ResStatus.h. |
|
Definition at line 64 of file ResStatus.h. |
|
Definition at line 65 of file ResStatus.h. |
|
Definition at line 66 of file ResStatus.h. |
|
Definition at line 67 of file ResStatus.h. |
|
Definition at line 68 of file ResStatus.h. |
|
Definition at line 81 of file ResStatus.h. |
|
Definition at line 86 of file ResStatus.h. |
|
Definition at line 93 of file ResStatus.h. |
|
Definition at line 99 of file ResStatus.h. |
|
Definition at line 107 of file ResStatus.h. |
|
Definition at line 113 of file ResStatus.h. |
|
Definition at line 118 of file ResStatus.h. |
|
Definition at line 126 of file ResStatus.h. |
|
Definition at line 133 of file ResStatus.h. |
|
Default ctor.
Definition at line 44 of file ResStatus.cc. |
|
Ctor setting the initial .
Definition at line 52 of file ResStatus.cc. |
|
Dtor.
Definition at line 61 of file ResStatus.cc. |
|
Ctor for intialization of builtin constants.
Definition at line 65 of file ResStatus.cc. |
|
Debug helper returning the bitfield. It's save to expose the bitfield, as it can't be used to recreate a ResStatus. So it is not possible to bypass transition rules. Definition at line 156 of file ResStatus.h. References _bitfield. |
|
Definition at line 161 of file ResStatus.h. References LICENCE_CONFIRMED. Referenced by zypp::ui::Selectable::Impl::hasLicenceConfirmed(), and zypp::PoolItem_Ref::Impl::sameState(). |
|
Definition at line 164 of file ResStatus.h. References LICENCE_CONFIRMED, and LICENCE_UNCONFIRMED. Referenced by zypp::ui::Selectable::Impl::setLicenceConfirmed(). |
|
|
Definition at line 173 of file ResStatus.h. References UNINSTALLED. Referenced by isNeeded(), isSatisfied(), isToBeInstalled(), isUnneeded(), zypp::resfilter::ByCaIUninstalled::operator()(), zypp::resfilter::ByUninstalled::operator()(), and staysUninstalled(). |
|
|
Definition at line 181 of file ResStatus.h. References staysInstalled(). Referenced by zypp::solver::detail::ResolverContext::incomplete(), zypp::solver::detail::ResolverContext::satisfy(), and zypp::solver::detail::ResolverContext::unneeded(). |
|
|
Definition at line 186 of file ResStatus.h. References isUninstalled(), and transacts(). Referenced by zypp::solver::detail::ResolverContext::isAbsent(), and wasUninstalled(). |
|
Definition at line 189 of file ResStatus.h. References staysUninstalled(). |
|
|
Definition at line 194 of file ResStatus.h. References UNDETERMINED. |
|
Definition at line 197 of file ResStatus.h. References UNNEEDED. Referenced by zypp::operator<<(). |
|
Definition at line 200 of file ResStatus.h. References SATISFIED. Referenced by zypp::operator<<(). |
|
Definition at line 203 of file ResStatus.h. References INCOMPLETE. Referenced by zypp::operator<<(). |
|
Definition at line 206 of file ResStatus.h. References isUninstalled(), and UNNEEDED. Referenced by zypp::solver::detail::ResolverContext::isPresent(). |
|
Definition at line 209 of file ResStatus.h. References isUninstalled(), and SATISFIED. Referenced by zypp::solver::detail::context_item_collector_satisfy(), zypp::solver::detail::ResolverContext::isPresent(), and zypp::solver::detail::satisfy_item_cb(). |
|
Definition at line 212 of file ResStatus.h. References isInstalled(), and SATISFIED. |
|
Definition at line 215 of file ResStatus.h. References INCOMPLETE, and isInstalled(). Referenced by zypp::solver::detail::context_item_collector_incomplete(), zypp::solver::detail::incomplete_item_cb(), and zypp::solver::detail::ResolverContext::isPresent(). |
|
Definition at line 218 of file ResStatus.h. References INCOMPLETE, and isUninstalled(). Referenced by zypp::solver::detail::ResolverContext::isPresent(). |
|
|
|
Definition at line 227 of file ResStatus.h. References _bitfield, and zypp::bit::BitField< _IntT >::value(). Referenced by zypp::PoolItem_Ref::Impl::sameState(), and setStatus(). |
|
Definition at line 230 of file ResStatus.h. References SOLVER. Referenced by zypp::solver::detail::CollectTransact::operator()(), zypp::operator<<(), and zypp::PoolItem_Ref::Impl::sameState(). |
|
Definition at line 233 of file ResStatus.h. References APPL_LOW. Referenced by zypp::solver::detail::CollectTransact::operator()(), and zypp::operator<<(). |
|
Definition at line 236 of file ResStatus.h. References APPL_HIGH. Referenced by zypp::operator<<(). |
|
Definition at line 239 of file ResStatus.h. References USER. Referenced by zypp::operator<<(), and zypp::ui::Selectable::Impl::status(). |
|
Definition at line 242 of file ResStatus.h. References _bitfield, and zypp::bit::BitField< _IntT >::value(). Referenced by zypp::ui::Selectable::Impl::modifiedBy(), and setStatus(). |
|
Definition at line 245 of file ResStatus.h. References DUE_TO_OBSOLETE, and isToBeUninstalled(). Referenced by zypp::operator<<(). |
|
Definition at line 248 of file ResStatus.h. References DUE_TO_UNLINK, and isToBeUninstalled(). Referenced by zypp::solver::detail::ResolverContext::install(), zypp::solver::detail::RequirementPossible::operator()(), and zypp::operator<<(). |
|
Definition at line 251 of file ResStatus.h. References DUE_TO_UPGRADE, and isToBeUninstalled(). Referenced by zypp::operator<<(). |
|
Definition at line 254 of file ResStatus.h. References isToBeInstalled(), and SOFT_INSTALL. Referenced by zypp::operator<<(). |
|
Definition at line 257 of file ResStatus.h. References isToBeUninstalled(), and SOFT_REMOVE. |
|
Set TransactValue. Convenience to set TransactValue from enum. Definition at line 275 of file ResStatus.h. References KEEP_STATE, LOCKED, setLock(), setTransact(), and TRANSACT. Referenced by maySetTransactValue(), and setStatus(). |
|
Definition at line 292 of file ResStatus.h. References _bitfield, and setTransactValue(). |
|
Apply a lock (prevent transaction). Currently by USER only, but who knows... Set LOCKED from KEEP_STATE to be shure all transaction details were reset properly. Definition at line 305 of file ResStatus.h. References isLocked(), KEEP_STATE, LOCKED, setTransact(), and USER. Referenced by zypp::PoolItem_Ref::Impl::autoprotect(), zypp::solver::detail::TransactionSolutionAction::execute(), maySetLock(), zypp::ui::StatusHelper::setDelete(), zypp::ui::StatusHelper::setInstall(), zypp::ui::StatusHelper::setProtected(), zypp::ui::StatusHelper::setTaboo(), setTransactValue(), zypp::PoolItem_Ref::Impl::statusReset(), and zypp::ui::StatusHelper::unset(). |
|
Definition at line 330 of file ResStatus.h. |
|
Toggle between TRANSACT and KEEP_STATE. LOCKED state means KEEP_STATE. But in contrary to KEEP_STATE, LOCKED state is immutable for causer_r less than TransactByValue. KEEP_STATE may be canged by any causer_r. Definition at line 343 of file ResStatus.h. References KEEP_STATE, NO_DETAIL, TRANSACT, and transacts(). Referenced by zypp::solver::detail::TransactionSolutionAction::execute(), maySetTransact(), resetTransact(), zypp::ui::StatusHelper::setDelete(), zypp::ui::StatusHelper::setInstall(), setLock(), zypp::ui::StatusHelper::setProtected(), setSoftLock(), setSoftTransact(), zypp::ui::StatusHelper::setTaboo(), setToBeInstalled(), setToBeUninstalled(), setTransactValue(), zypp::solver::detail::transactItems(), and zypp::ui::StatusHelper::unset(). |
|
Definition at line 375 of file ResStatus.h. References _bitfield, and setTransact(). |
|
Definition at line 384 of file ResStatus.h. References KEEP_STATE, and setTransact(). |
|
Not the same as setTransact( false ).
Definition at line 396 of file ResStatus.h. References KEEP_STATE, setTransact(), and SOLVER. Referenced by zypp::solver::detail::TransactReset::operator()(), zypp::solver::detail::CollectTransact::operator()(), zypp::solver::detail::UndoTransact::operator()(), zypp::PoolItem_Ref::Impl::statusReset(), and zypp::solver::detail::transactItems(). |
|
Soft toggle between TRANSACT and KEEP_STATE. Similar to setTransact, but leaving KEEP_STATE also requires a superior causerLimit_r. So this is a kind of soft lock. // SOLVER wants to set TRANSACT, iff KEEP_STATE is // not superior to APPL_LOW. setSoftTransact( true, SOLVER, APPL_LOW ); Definition at line 414 of file ResStatus.h. References KEEP_STATE, setTransact(), and transacts(). Referenced by maySetSoftTransact(), setSoftTransact(), and zypp::solver::detail::transactItems(). |
|
Definition at line 427 of file ResStatus.h. References setSoftTransact(). |
|
Definition at line 430 of file ResStatus.h. References _bitfield, and setSoftTransact(). Referenced by maySetSoftTransact(). |
|
Definition at line 439 of file ResStatus.h. References maySetSoftTransact(). |
|
Definition at line 442 of file ResStatus.h. References isInstalled(), and setTransact(). Referenced by zypp::solver::detail::TransactionSolutionAction::execute(), maySetToBeInstalled(), setToBeInstalledSoft(), and zypp::solver::detail::solution_to_pool(). |
|
Definition at line 448 of file ResStatus.h. References _bitfield, and setToBeInstalled(). |
|
Definition at line 456 of file ResStatus.h. References isInstalled(), and setTransact(). Referenced by zypp::solver::detail::TransactionSolutionAction::execute(), maySetToBeUninstalled(), setToBeUninstalledDueToObsolete(), setToBeUninstalledDueToUnlink(), setToBeUninstalledDueToUpgrade(), and setToBeUninstalledSoft(). |
|
Definition at line 462 of file ResStatus.h. References _bitfield, and setToBeUninstalled(). |
|
Definition at line 473 of file ResStatus.h. References DUE_TO_UNLINK, setToBeUninstalled(), and SOLVER. |
|
Definition at line 480 of file ResStatus.h. References DUE_TO_OBSOLETE, setToBeUninstalled(), and SOLVER. |
|
Definition at line 487 of file ResStatus.h. References DUE_TO_UPGRADE, and setToBeUninstalled(). |
|
Definition at line 494 of file ResStatus.h. References setToBeInstalled(), SOFT_INSTALL, and SOLVER. |
|
Definition at line 501 of file ResStatus.h. References setToBeUninstalled(), SOFT_REMOVE, and SOLVER. |
|
Definition at line 508 of file ResStatus.h. References SOFT_INSTALL. |
|
Definition at line 512 of file ResStatus.h. References SOFT_REMOVE. Referenced by zypp::solver::detail::ResolverQueue::addPoolItemToRemove(). |
|
Definition at line 516 of file ResStatus.h. References SOFT_INSTALL. |
|
Definition at line 521 of file ResStatus.h. References SOFT_REMOVE. Referenced by zypp::solver::detail::ResolverQueue::addPoolItemToRemove(). |
|
Definition at line 526 of file ResStatus.h. References UNDETERMINED. |
|
Definition at line 532 of file ResStatus.h. References UNNEEDED. |
|
Definition at line 538 of file ResStatus.h. References SATISFIED. |
|
Definition at line 544 of file ResStatus.h. References INCOMPLETE. |
|
Definition at line 550 of file ResStatus.h. References SEEN. Referenced by zypp::operator<<(). |
|
Definition at line 553 of file ResStatus.h. References IMPOSSIBLE. Referenced by zypp::solver::detail::impossible_item_cb(), zypp::solver::detail::ResolverContext::isAbsent(), zypp::solver::detail::RequirementPossible::operator()(), zypp::operator<<(), and zypp::solver::detail::ResolverContext::upgrade(). |
|
Definition at line 556 of file ResStatus.h. |
|
Definition at line 562 of file ResStatus.h. References IMPOSSIBLE, and NORMAL. |
|
Definition at line 568 of file ResStatus.h. References _bitfield, getTransactByValue(), getTransactValue(), setTransactValue(), and zypp::bit::BitField< _IntT >::value(). |
|
Return whether the corresponding Field has value val_r.
Definition at line 613 of file ResStatus.h. References _bitfield, and zypp::bit::BitField< _IntT >::isEqual(). |
|
Set the corresponding Field to value val_r.
Definition at line 619 of file ResStatus.h. References _bitfield, and zypp::bit::BitField< _IntT >::assign(). |
|
compare two values.
Definition at line 625 of file ResStatus.h. References _bitfield, and zypp::bit::BitField< _IntT >::value(). |
|
Definition at line 629 of file ResStatus.h. References _bitfield, and zypp::bit::BitField< _IntT >::value(). |
|
Stream output Definition at line 85 of file ResStatus.cc. |
|
Definition at line 641 of file ResStatus.h. |
|
Definition at line 645 of file ResStatus.h. |
|
Definition at line 584 of file ResStatus.h. |
|
Definition at line 585 of file ResStatus.h. |
|
Definition at line 586 of file ResStatus.h. Referenced by zypp::solver::detail::QueueItemUninstall::process(). |
|
Definition at line 587 of file ResStatus.h. |
|
Definition at line 588 of file ResStatus.h. |
|
Definition at line 589 of file ResStatus.h. |
|
Definition at line 590 of file ResStatus.h. |
|
Definition at line 591 of file ResStatus.h. |
|
Definition at line 592 of file ResStatus.h. |
|
Definition at line 593 of file ResStatus.h. Referenced by zypp::solver::detail::ResolverContext::unneeded(). |
|
Definition at line 594 of file ResStatus.h. Referenced by zypp::solver::detail::ResolverContext::satisfy(). |
|
Definition at line 595 of file ResStatus.h. |
|
Definition at line 596 of file ResStatus.h. Referenced by zypp::solver::detail::ResolverContext::incomplete(). |
|
Definition at line 597 of file ResStatus.h. Referenced by zypp::solver::detail::ResolverContext::incomplete(). |
|
Definition at line 598 of file ResStatus.h. |
|
Definition at line 633 of file ResStatus.h. Referenced by bitfield(), fieldValueAssign(), fieldValueIs(), getTransactByValue(), getTransactValue(), isGreaterThan(), isLessThan(), maySetLock(), maySetSoftTransact(), maySetToBeInstalled(), maySetToBeUninstalled(), maySetTransact(), maySetTransactValue(), and setStatus(). |