zypp::ResStatus Class Reference

Status bitfield. More...

#include <ResStatus.h>

List of all members.

Public Types

Status values.
Each enum corresponds to a BitField range.

Note:
Take care that enumerator values actually fit into the corresponding field. It's not yet checked by the compiler.


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 }
BitField range definitions.
Note:
Enlarge FieldType if more bit's needed.
It's not yet checked by the compiler.

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

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 isKept () 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 isToBeInstalledNotSoft () 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)
EstablishValue getEstablishValue () const
bool setEstablishValue (const EstablishValue &establish)
bool setToBeUninstalledDueToUnlink ()
bool setToBeUninstalledDueToObsolete ()
bool setToBeUninstalledDueToUpgrade (TransactByValue causer)
bool setToBeInstalledSoft ()
bool setToBeUninstalledSoft ()
bool maySetToBeUninstalledSoft ()
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)
 Stream output.
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)


Detailed Description

Status bitfield.

Definition at line 47 of file ResStatus.h.


Member Typedef Documentation

typedef uint16_t zypp::ResStatus::FieldType

Definition at line 59 of file ResStatus.h.

typedef bit::BitField<FieldType> zypp::ResStatus::BitFieldType

Definition at line 60 of file ResStatus.h.

typedef bit::Range<FieldType,0, 1> zypp::ResStatus::StateField

Definition at line 62 of file ResStatus.h.

typedef bit::Range<FieldType,StateField::end, 2> zypp::ResStatus::EstablishField

Definition at line 63 of file ResStatus.h.

typedef bit::Range<FieldType,EstablishField::end, 2> zypp::ResStatus::TransactField

Definition at line 64 of file ResStatus.h.

typedef bit::Range<FieldType,TransactField::end, 2> zypp::ResStatus::TransactByField

Definition at line 65 of file ResStatus.h.

typedef bit::Range<FieldType,TransactByField::end, 3> zypp::ResStatus::TransactDetailField

Definition at line 66 of file ResStatus.h.

typedef bit::Range<FieldType,TransactDetailField::end, 2> zypp::ResStatus::SolverStateField

Definition at line 67 of file ResStatus.h.

typedef bit::Range<FieldType,SolverStateField::end, 1> zypp::ResStatus::LicenceConfirmedField

Definition at line 68 of file ResStatus.h.


Member Enumeration Documentation

enum zypp::ResStatus::StateValue

Enumerator:
UNINSTALLED 
value 
INSTALLED 
value 

Definition at line 81 of file ResStatus.h.

enum zypp::ResStatus::EstablishValue

Enumerator:
UNDETERMINED 
value 
UNNEEDED 
value 
SATISFIED 
value 
INCOMPLETE 
value 

Definition at line 86 of file ResStatus.h.

enum zypp::ResStatus::TransactValue

Enumerator:
KEEP_STATE 
value 
LOCKED 
value 
TRANSACT 
value 

Definition at line 93 of file ResStatus.h.

enum zypp::ResStatus::TransactByValue

Enumerator:
SOLVER 
value 
APPL_LOW 
value 
APPL_HIGH 
value 
USER 
value 

Definition at line 99 of file ResStatus.h.

enum zypp::ResStatus::DetailValue

Enumerator:
NO_DETAIL  Detail for no transact, i.e.

reset any Install/RemoveDetailValue.

value 

Definition at line 107 of file ResStatus.h.

enum zypp::ResStatus::InstallDetailValue

Enumerator:
EXPLICIT_INSTALL 
value 
SOFT_INSTALL 
value 

Definition at line 113 of file ResStatus.h.

enum zypp::ResStatus::RemoveDetailValue

Enumerator:
EXPLICIT_REMOVE 
value 
SOFT_REMOVE 
value 
DUE_TO_OBSOLETE 
value 
DUE_TO_UNLINK 
value 
DUE_TO_UPGRADE 
value 

Definition at line 118 of file ResStatus.h.

enum zypp::ResStatus::SolverStateValue

Enumerator:
NORMAL 
value 
SEEN 
value 
IMPOSSIBLE 
value 

Definition at line 126 of file ResStatus.h.

enum zypp::ResStatus::LicenceConfirmedValue

Enumerator:
LICENCE_UNCONFIRMED 
value 
LICENCE_CONFIRMED 
value 

Definition at line 133 of file ResStatus.h.


Constructor & Destructor Documentation

zypp::ResStatus::ResStatus (  ) 

Default ctor.

Definition at line 44 of file ResStatus.cc.

zypp::ResStatus::ResStatus ( bool  isInstalled_r  ) 

Ctor setting the initial .

Definition at line 52 of file ResStatus.cc.

zypp::ResStatus::~ResStatus (  ) 

Dtor.

Definition at line 61 of file ResStatus.cc.

zypp::ResStatus::ResStatus ( StateValue  s,
EstablishValue  e = UNDETERMINED,
TransactValue  t = KEEP_STATE,
InstallDetailValue  i = EXPLICIT_INSTALL,
RemoveDetailValue  r = EXPLICIT_REMOVE,
SolverStateValue  ssv = NORMAL 
) [private]

Ctor for intialization of builtin constants.

Definition at line 65 of file ResStatus.cc.

References INSTALLED, NORMAL, and TRANSACT.


Member Function Documentation

BitFieldType zypp::ResStatus::bitfield (  )  const [inline]

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.

bool zypp::ResStatus::isLicenceConfirmed (  )  const [inline]

Definition at line 161 of file ResStatus.h.

References LICENCE_CONFIRMED.

Referenced by zypp::ui::Selectable::Impl::hasLicenceConfirmed(), and zypp::PoolItem_Ref::Impl::sameState().

void zypp::ResStatus::setLicenceConfirmed ( bool  toVal_r = true  )  [inline]

Definition at line 164 of file ResStatus.h.

References LICENCE_CONFIRMED, and LICENCE_UNCONFIRMED.

Referenced by zypp::ui::Selectable::Impl::setLicenceConfirmed().

bool zypp::ResStatus::isInstalled (  )  const [inline]

Definition at line 170 of file ResStatus.h.

References INSTALLED.

Referenced by zypp::syscontent::Writer::addIf(), zypp::syscontent::Writer::addInstalled(), zypp::PoolItem_Ref::Impl::autoprotect(), zypp::solver::detail::TransactionSolutionAction::execute(), zypp::solver::detail::ResolverContext::getStatus(), zypp::solver::detail::install_count_cb(), zypp::solver::detail::install_item_cb(), isComplete(), isIncomplete(), isToBeUninstalled(), zypp::resfilter::ByCaIInstalled::operator()(), zypp::resfilter::ByInstalled::operator()(), zypp::operator<<(), zypp::solver::detail::ProblemSolutionUninstall::ProblemSolutionUninstall(), zypp::solver::detail::satisfy_count_cb(), setToBeInstalled(), setToBeInstalledSoft(), setToBeUninstalled(), setToBeUninstalledSoft(), staysInstalled(), zypp::solver::detail::uninstall_count_cb(), and zypp::solver::detail::upgrade_item_cb().

bool zypp::ResStatus::isUninstalled (  )  const [inline]

Definition at line 173 of file ResStatus.h.

References UNINSTALLED.

Referenced by isNeeded(), isSatisfied(), isToBeInstalled(), isUnneeded(), zypp::solver::detail::RequireProcess::operator()(), zypp::solver::detail::UpgradeCandidate::operator()(), zypp::solver::detail::CollectTransact::operator()(), zypp::resfilter::ByCaIUninstalled::operator()(), zypp::resfilter::ByUninstalled::operator()(), zypp::solver::detail::QueueItemRequire::process(), and staysUninstalled().

bool zypp::ResStatus::staysInstalled (  )  const [inline]

Definition at line 178 of file ResStatus.h.

References isInstalled(), and transacts().

Referenced by zypp::solver::detail::ResolverQueue::addPoolItemToInstall(), zypp::solver::detail::ResolverQueue::addPoolItemToVerify(), zypp::solver::detail::ResolverContext::isPresent(), zypp::solver::detail::UninstallEstablishItem::operator()(), zypp::solver::detail::HintItem::operator()(), zypp::solver::detail::UninstallConflicting::operator()(), zypp::solver::detail::ConflictProcess::operator()(), zypp::solver::detail::QueueItemUninstall::process(), zypp::solver::detail::QueueItemRequire::process(), zypp::solver::detail::QueueItemEstablish::process(), zypp::solver::detail::satisfy_item_cb(), zypp::solver::detail::ResolverContext::uninstall(), and wasInstalled().

bool zypp::ResStatus::wasInstalled (  )  const [inline]

Definition at line 181 of file ResStatus.h.

References staysInstalled().

Referenced by zypp::solver::detail::ResolverContext::incomplete(), zypp::solver::detail::ResolverContext::satisfy(), zypp::solver::detail::ResolverContext::uninstall(), and zypp::solver::detail::ResolverContext::unneeded().

bool zypp::ResStatus::isToBeInstalled (  )  const [inline]

Definition at line 183 of file ResStatus.h.

References isUninstalled(), and transacts().

Referenced by zypp::solver::detail::ResolverQueue::addPoolItemToVerify(), zypp::solver::detail::context_item_collector(), zypp::solver::detail::dup_name_check_cb(), zypp::solver::detail::TransactionSolutionAction::execute(), zypp::solver::detail::ResolverContext::install(), zypp::solver::detail::install_item_cb(), zypp::solver::detail::ResolverContext::isPresent(), isToBeInstalledNotSoft(), isToBeInstalledSoft(), zypp::solver::detail::logAdditionalInfo(), zypp::solver::detail::marked_item_collector(), zypp::solver::detail::LookForSelected::operator()(), zypp::solver::detail::FindProviders::operator()(), zypp::solver::detail::HintItem::operator()(), zypp::solver::detail::RequireProcess::operator()(), zypp::solver::detail::UninstallConflicting::operator()(), zypp::solver::detail::ConflictProcess::operator()(), zypp::solver::detail::CollectTransact::operator()(), zypp::solver::detail::QueueItemUninstall::process(), zypp::solver::detail::QueueItemRequire::process(), zypp::solver::detail::solution_to_pool(), zypp::solver::detail::ResolverContext::uninstall(), zypp::solver::detail::ResolverContext::upgrade(), and zypp::solver::detail::upgrade_item_cb().

bool zypp::ResStatus::staysUninstalled (  )  const [inline]

Definition at line 186 of file ResStatus.h.

References isUninstalled(), and transacts().

Referenced by zypp::solver::detail::ResolverContext::isAbsent(), zypp::solver::detail::QueueItemRequire::process(), zypp::solver::detail::QueueItemInstall::process(), and wasUninstalled().

bool zypp::ResStatus::wasUninstalled (  )  const [inline]

Definition at line 189 of file ResStatus.h.

References staysUninstalled().

Referenced by zypp::solver::detail::ResolverContext::install(), zypp::solver::detail::ConflictProcess::operator()(), zypp::solver::detail::ResolverContext::satisfy(), zypp::solver::detail::ResolverContext::uninstall(), and zypp::solver::detail::ResolverContext::unneeded().

bool zypp::ResStatus::isToBeUninstalled (  )  const [inline]

Definition at line 191 of file ResStatus.h.

References isInstalled(), and transacts().

Referenced by zypp::solver::detail::context_item_collector(), zypp::solver::detail::TransactionSolutionAction::execute(), zypp::solver::detail::ResolverContext::install(), zypp::solver::detail::ResolverContext::isAbsent(), isToBeUninstalledDueToObsolete(), isToBeUninstalledDueToUnlink(), isToBeUninstalledDueToUpgrade(), isToBeUninstalledSoft(), zypp::solver::detail::logAdditionalInfo(), zypp::solver::detail::marked_item_collector(), zypp::solver::detail::FindProviders::operator()(), zypp::solver::detail::RequirementPossible::operator()(), zypp::solver::detail::NoInstallableProviders::operator()(), zypp::solver::detail::RequireProcess::operator()(), zypp::solver::detail::ConflictProcess::operator()(), zypp::solver::detail::UpgradeCandidate::operator()(), zypp::solver::detail::CollectTransact::operator()(), zypp::solver::detail::QueueItemRequire::process(), zypp::solver::detail::QueueItemInstall::process(), zypp::solver::detail::solution_to_pool(), zypp::solver::detail::ResolverContext::uninstall(), zypp::solver::detail::uninstall_item_cb(), and zypp::solver::detail::ResolverContext::upgrade().

bool zypp::ResStatus::isUndetermined (  )  const [inline]

Definition at line 194 of file ResStatus.h.

References UNDETERMINED.

Referenced by zypp::solver::detail::ResolverContext::getStatus().

bool zypp::ResStatus::isEstablishedUneeded (  )  const [inline]

Definition at line 197 of file ResStatus.h.

References UNNEEDED.

Referenced by zypp::operator<<().

bool zypp::ResStatus::isEstablishedSatisfied (  )  const [inline]

Definition at line 200 of file ResStatus.h.

References SATISFIED.

Referenced by zypp::operator<<().

bool zypp::ResStatus::isEstablishedIncomplete (  )  const [inline]

Definition at line 203 of file ResStatus.h.

References INCOMPLETE.

Referenced by zypp::operator<<().

bool zypp::ResStatus::isUnneeded (  )  const [inline]

Definition at line 206 of file ResStatus.h.

References isUninstalled(), and UNNEEDED.

Referenced by zypp::solver::detail::ResolverContext::install(), zypp::solver::detail::ResolverContext::isPresent(), and zypp::solver::detail::solution_to_pool().

bool zypp::ResStatus::isSatisfied (  )  const [inline]

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(), zypp::solver::detail::QueueItemInstall::process(), zypp::solver::detail::satisfy_item_cb(), and zypp::solver::detail::solution_to_pool().

bool zypp::ResStatus::isComplete (  )  const [inline]

Definition at line 212 of file ResStatus.h.

References isInstalled(), and SATISFIED.

bool zypp::ResStatus::isIncomplete (  )  const [inline]

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(), zypp::solver::detail::ResolverContext::isPresent(), zypp::solver::detail::CollectTransact::operator()(), zypp::solver::detail::QueueItemInstall::process(), and zypp::solver::detail::solution_to_pool().

bool zypp::ResStatus::isNeeded (  )  const [inline]

Definition at line 218 of file ResStatus.h.

References INCOMPLETE, and isUninstalled().

Referenced by zypp::solver::detail::ResolverContext::isPresent(), zypp::solver::detail::QueueItemInstall::process(), and zypp::solver::detail::solution_to_pool().

bool zypp::ResStatus::isLocked (  )  const [inline]

Definition at line 221 of file ResStatus.h.

References LOCKED.

Referenced by zypp::solver::detail::downgrade_allowed(), zypp::solver::detail::NoInstallableProviders::operator()(), zypp::solver::detail::RequireProcess::operator()(), zypp::solver::detail::CheckIfBest::operator()(), zypp::solver::detail::LookForReinstall::operator()(), zypp::solver::detail::LookForUpdate::operator()(), zypp::solver::detail::CollectTransact::operator()(), zypp::resfilter::ByLock::operator()(), zypp::operator<<(), zypp::solver::detail::QueueItemUninstall::process(), zypp::solver::detail::QueueItemEstablish::process(), setLock(), and zypp::ui::Selectable::Impl::status().

bool zypp::ResStatus::isKept (  )  const [inline]

Definition at line 224 of file ResStatus.h.

References KEEP_STATE.

Referenced by zypp::solver::detail::NoInstallableProviders::operator()(), zypp::solver::detail::RequireProcess::operator()(), zypp::solver::detail::CollectTransact::operator()(), and zypp::resfilter::ByKeep::operator()().

bool zypp::ResStatus::transacts (  )  const [inline]

Definition at line 227 of file ResStatus.h.

References TRANSACT.

Referenced by zypp::syscontent::Writer::addIf(), isToBeInstalled(), isToBeUninstalled(), zypp::ui::Selectable::Impl::modifiedBy(), zypp::solver::detail::ProvidesItem::operator()(), zypp::resfilter::ByCaINotTransact::operator()(), zypp::resfilter::ByCaITransact::operator()(), zypp::resfilter::ByTransact::operator()(), zypp::operator<<(), setSoftTransact(), setTransact(), zypp::ui::Selectable::Impl::status(), staysInstalled(), and staysUninstalled().

TransactValue zypp::ResStatus::getTransactValue (  )  const [inline]

Definition at line 230 of file ResStatus.h.

References _bitfield, and zypp::bit::BitField< _IntT >::value().

Referenced by zypp::PoolItem_Ref::Impl::sameState(), and setStatus().

bool zypp::ResStatus::isBySolver (  )  const [inline]

Definition at line 233 of file ResStatus.h.

References SOLVER.

Referenced by zypp::syscontent::Writer::addIf(), zypp::solver::detail::ResolverContext::install(), zypp::solver::detail::CollectTransact::operator()(), zypp::operator<<(), zypp::PoolItem_Ref::Impl::sameState(), zypp::solver::detail::ResolverContext::uninstall(), and zypp::solver::detail::ResolverContext::upgrade().

bool zypp::ResStatus::isByApplLow (  )  const [inline]

Definition at line 236 of file ResStatus.h.

References APPL_LOW.

Referenced by zypp::solver::detail::logAdditionalInfo(), zypp::solver::detail::CollectTransact::operator()(), and zypp::operator<<().

bool zypp::ResStatus::isByApplHigh (  )  const [inline]

Definition at line 239 of file ResStatus.h.

References APPL_HIGH.

Referenced by zypp::solver::detail::logAdditionalInfo(), and zypp::operator<<().

bool zypp::ResStatus::isByUser (  )  const [inline]

Definition at line 242 of file ResStatus.h.

References USER.

Referenced by zypp::solver::detail::ResolverContext::collectCompareInfo(), zypp::solver::detail::logAdditionalInfo(), zypp::solver::detail::RequirementPossible::operator()(), zypp::solver::detail::NoInstallableProviders::operator()(), zypp::solver::detail::RequireProcess::operator()(), zypp::operator<<(), and zypp::ui::Selectable::Impl::status().

TransactByValue zypp::ResStatus::getTransactByValue (  )  const [inline]

Definition at line 245 of file ResStatus.h.

References _bitfield, and zypp::bit::BitField< _IntT >::value().

Referenced by zypp::ui::Selectable::Impl::modifiedBy(), setStatus(), and zypp::solver::detail::ResolverContext::upgrade().

bool zypp::ResStatus::isToBeUninstalledDueToObsolete (  )  const [inline]

Definition at line 249 of file ResStatus.h.

References DUE_TO_OBSOLETE, and isToBeUninstalled().

Referenced by zypp::solver::detail::ConflictProcess::operator()(), and zypp::operator<<().

bool zypp::ResStatus::isToBeUninstalledDueToUnlink (  )  const [inline]

Definition at line 252 of file ResStatus.h.

References DUE_TO_UNLINK, and isToBeUninstalled().

Referenced by zypp::solver::detail::ResolverContext::install(), zypp::solver::detail::RequirementPossible::operator()(), zypp::operator<<(), zypp::solver::detail::QueueItemInstall::process(), and zypp::solver::detail::ResolverContext::uninstall().

bool zypp::ResStatus::isToBeUninstalledDueToUpgrade (  )  const [inline]

Definition at line 255 of file ResStatus.h.

References DUE_TO_UPGRADE, and isToBeUninstalled().

Referenced by zypp::operator<<(), and zypp::solver::detail::solution_to_pool().

bool zypp::ResStatus::isToBeInstalledSoft (  )  const [inline]

Definition at line 258 of file ResStatus.h.

References isToBeInstalled(), and SOFT_INSTALL.

Referenced by zypp::solver::detail::ConflictProcess::operator()(), and zypp::operator<<().

bool zypp::ResStatus::isToBeInstalledNotSoft (  )  const [inline]

Definition at line 261 of file ResStatus.h.

References isToBeInstalled(), and SOFT_INSTALL.

Referenced by zypp::solver::detail::ResolverContext::uninstall().

bool zypp::ResStatus::isToBeUninstalledSoft (  )  const [inline]

Definition at line 264 of file ResStatus.h.

References isToBeUninstalled(), and SOFT_REMOVE.

bool zypp::ResStatus::setTransactValue ( TransactValue  newVal_r,
TransactByValue  causer_r 
) [inline]

Set TransactValue.

Convenience to set TransactValue from enum.

Definition at line 282 of file ResStatus.h.

References KEEP_STATE, LOCKED, setLock(), setTransact(), and TRANSACT.

Referenced by maySetTransactValue(), and setStatus().

bool zypp::ResStatus::maySetTransactValue ( TransactValue  newVal_r,
TransactByValue  causer_r 
) [inline]

Definition at line 299 of file ResStatus.h.

References _bitfield, and setTransactValue().

bool zypp::ResStatus::setLock ( bool  toLock_r,
TransactByValue  causer_r 
) [inline]

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 312 of file ResStatus.h.

References isLocked(), KEEP_STATE, LOCKED, setTransact(), SOLVER, and USER.

Referenced by zypp::PoolItem_Ref::Impl::autoprotect(), zypp::solver::detail::TransactionSolutionAction::execute(), maySetLock(), zypp::locks::ItemLockerFunc::operator()(), zypp::ui::StatusHelper::setDelete(), zypp::ui::StatusHelper::setInstall(), zypp::ui::StatusHelper::setProtected(), setTransactValue(), zypp::PoolItem_Ref::Impl::statusReset(), and zypp::ui::StatusHelper::unset().

bool zypp::ResStatus::maySetLock ( bool  to_r,
TransactByValue  causer_r 
) [inline]

Definition at line 340 of file ResStatus.h.

References _bitfield, and setLock().

bool zypp::ResStatus::setTransact ( bool  toTansact_r,
TransactByValue  causer_r 
) [inline]

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 353 of file ResStatus.h.

References KEEP_STATE, NO_DETAIL, TRANSACT, and transacts().

Referenced by zypp::solver::detail::TransactionSolutionAction::execute(), maySetTransact(), zypp::solver::detail::DoTransact::operator()(), resetTransact(), zypp::ui::Selectable::Impl::setCandidate(), zypp::ui::StatusHelper::setDelete(), zypp::ui::StatusHelper::setInstall(), setLock(), zypp::ui::StatusHelper::setProtected(), setSoftLock(), setSoftTransact(), setToBeInstalled(), setToBeUninstalled(), setTransactValue(), and zypp::ui::StatusHelper::unset().

bool zypp::ResStatus::maySetTransact ( bool  val_r,
TransactByValue  causer 
) [inline]

Definition at line 385 of file ResStatus.h.

References _bitfield, and setTransact().

bool zypp::ResStatus::setSoftLock ( TransactByValue  causer_r  )  [inline]

Definition at line 394 of file ResStatus.h.

References KEEP_STATE, and setTransact().

bool zypp::ResStatus::resetTransact ( TransactByValue  causer_r  )  [inline]

Not the same as setTransact( false ).

Definition at line 406 of file ResStatus.h.

References KEEP_STATE, setTransact(), and SOLVER.

Referenced by zypp::solver::detail::ResolverContext::getStatus(), zypp::solver::detail::CollectTransact::operator()(), zypp::solver::detail::UndoTransact::operator()(), zypp::solver::detail::solution_to_pool(), zypp::PoolItem_Ref::Impl::statusReset(), and zypp::pool::strip_obsoleted_to_delete().

bool zypp::ResStatus::setSoftTransact ( bool  toTansact_r,
TransactByValue  causer_r,
TransactByValue  causerLimit_r 
) [inline]

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 424 of file ResStatus.h.

References KEEP_STATE, setTransact(), and transacts().

Referenced by maySetSoftTransact(), setSoftTransact(), setToBeInstalledSoft(), and setToBeUninstalledSoft().

bool zypp::ResStatus::setSoftTransact ( bool  toTansact_r,
TransactByValue  causer_r 
) [inline]

Definition at line 437 of file ResStatus.h.

References setSoftTransact().

bool zypp::ResStatus::maySetSoftTransact ( bool  val_r,
TransactByValue  causer,
TransactByValue  causerLimit_r 
) [inline]

Definition at line 440 of file ResStatus.h.

References _bitfield, and setSoftTransact().

Referenced by maySetSoftTransact(), and zypp::solver::detail::QueueItemRequire::process().

bool zypp::ResStatus::maySetSoftTransact ( bool  val_r,
TransactByValue  causer 
) [inline]

Definition at line 449 of file ResStatus.h.

References maySetSoftTransact().

bool zypp::ResStatus::setToBeInstalled ( TransactByValue  causer  )  [inline]

Definition at line 452 of file ResStatus.h.

References isInstalled(), and setTransact().

Referenced by zypp::solver::detail::TransactionSolutionAction::execute(), maySetToBeInstalled(), zypp::solver::detail::setForInstallation(), zypp::solver::detail::solution_to_pool(), and zypp::solver::detail::ResolverContext::upgrade().

bool zypp::ResStatus::maySetToBeInstalled ( TransactByValue  causer  )  [inline]

Definition at line 458 of file ResStatus.h.

References _bitfield, and setToBeInstalled().

Referenced by zypp::solver::detail::LookForUpgrades::operator()().

bool zypp::ResStatus::setToBeUninstalled ( TransactByValue  causer  )  [inline]

Definition at line 466 of file ResStatus.h.

References isInstalled(), and setTransact().

Referenced by zypp::solver::detail::TransactionSolutionAction::execute(), maySetToBeUninstalled(), setToBeUninstalledDueToObsolete(), setToBeUninstalledDueToUnlink(), setToBeUninstalledDueToUpgrade(), and zypp::solver::detail::solution_to_pool().

bool zypp::ResStatus::maySetToBeUninstalled ( TransactByValue  causer  )  [inline]

Definition at line 472 of file ResStatus.h.

References _bitfield, and setToBeUninstalled().

EstablishValue zypp::ResStatus::getEstablishValue (  )  const [inline]

Definition at line 483 of file ResStatus.h.

References _bitfield, and zypp::bit::BitField< _IntT >::value().

Referenced by zypp::solver::detail::ResolverContext::getStatus().

bool zypp::ResStatus::setEstablishValue ( const EstablishValue establish  )  [inline]

Definition at line 486 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::getStatus().

bool zypp::ResStatus::setToBeUninstalledDueToUnlink (  )  [inline]

Definition at line 491 of file ResStatus.h.

References DUE_TO_UNLINK, setToBeUninstalled(), and SOLVER.

bool zypp::ResStatus::setToBeUninstalledDueToObsolete (  )  [inline]

Definition at line 498 of file ResStatus.h.

References DUE_TO_OBSOLETE, setToBeUninstalled(), and SOLVER.

bool zypp::ResStatus::setToBeUninstalledDueToUpgrade ( TransactByValue  causer  )  [inline]

Definition at line 505 of file ResStatus.h.

References DUE_TO_UPGRADE, and setToBeUninstalled().

Referenced by zypp::solver::detail::solution_to_pool().

bool zypp::ResStatus::setToBeInstalledSoft (  )  [inline]

Definition at line 512 of file ResStatus.h.

References isInstalled(), setSoftTransact(), SOFT_INSTALL, and SOLVER.

bool zypp::ResStatus::setToBeUninstalledSoft (  )  [inline]

Definition at line 522 of file ResStatus.h.

References isInstalled(), setSoftTransact(), SOFT_REMOVE, and SOLVER.

Referenced by maySetToBeUninstalledSoft().

bool zypp::ResStatus::maySetToBeUninstalledSoft (  )  [inline]

Definition at line 532 of file ResStatus.h.

References _bitfield, and setToBeUninstalledSoft().

Referenced by zypp::solver::detail::ProvidesItem::operator()().

bool zypp::ResStatus::isSoftInstall (  )  [inline]

Definition at line 540 of file ResStatus.h.

References SOFT_INSTALL.

Referenced by zypp::solver::detail::ResolverQueue::addPoolItemToInstall().

bool zypp::ResStatus::isSoftUninstall (  )  [inline]

Definition at line 544 of file ResStatus.h.

References SOFT_REMOVE.

Referenced by zypp::solver::detail::ResolverQueue::addPoolItemToRemove().

bool zypp::ResStatus::setSoftInstall ( bool  flag  )  [inline]

Definition at line 548 of file ResStatus.h.

References SOFT_INSTALL.

Referenced by zypp::solver::detail::ResolverQueue::addPoolItemToInstall().

bool zypp::ResStatus::setSoftUninstall ( bool  flag  )  [inline]

Definition at line 553 of file ResStatus.h.

References SOFT_REMOVE.

Referenced by zypp::solver::detail::ResolverQueue::addPoolItemToRemove().

bool zypp::ResStatus::setUndetermined (  )  [inline]

Definition at line 558 of file ResStatus.h.

References UNDETERMINED.

Referenced by zypp::solver::detail::QueueItemEstablish::process().

bool zypp::ResStatus::setUnneeded (  )  [inline]

Definition at line 564 of file ResStatus.h.

References UNNEEDED.

Referenced by zypp::solver::detail::solution_to_pool().

bool zypp::ResStatus::setSatisfied (  )  [inline]

Definition at line 570 of file ResStatus.h.

References SATISFIED.

Referenced by zypp::solver::detail::solution_to_pool().

bool zypp::ResStatus::setIncomplete (  )  [inline]

Definition at line 576 of file ResStatus.h.

References INCOMPLETE.

Referenced by zypp::solver::detail::solution_to_pool().

bool zypp::ResStatus::isSeen (  )  const [inline]

Definition at line 582 of file ResStatus.h.

References SEEN.

Referenced by zypp::operator<<().

bool zypp::ResStatus::isImpossible (  )  const [inline]

Definition at line 585 of file ResStatus.h.

References IMPOSSIBLE.

Referenced by zypp::solver::detail::impossible_item_cb(), zypp::solver::detail::ResolverContext::install(), zypp::solver::detail::ResolverContext::isAbsent(), zypp::solver::detail::RequirementPossible::operator()(), zypp::solver::detail::NoInstallableProviders::operator()(), zypp::solver::detail::RequireProcess::operator()(), zypp::solver::detail::ConflictProcess::operator()(), zypp::solver::detail::UpgradeCandidate::operator()(), zypp::operator<<(), zypp::solver::detail::QueueItemInstall::process(), zypp::solver::detail::ResolverContext::uninstall(), and zypp::solver::detail::ResolverContext::upgrade().

bool zypp::ResStatus::setSeen ( bool  value  )  [inline]

Definition at line 588 of file ResStatus.h.

References NORMAL, and SEEN.

bool zypp::ResStatus::setImpossible ( bool  value  )  [inline]

Definition at line 594 of file ResStatus.h.

References IMPOSSIBLE, and NORMAL.

bool zypp::ResStatus::setStatus ( ResStatus  newStatus_r  )  [inline]

Definition at line 600 of file ResStatus.h.

References _bitfield, getTransactByValue(), getTransactValue(), setTransactValue(), and zypp::bit::BitField< _IntT >::value().

template<class _Field>
bool zypp::ResStatus::fieldValueIs ( FieldType  val_r  )  const [inline, private]

Return whether the corresponding Field has value val_r.

Definition at line 645 of file ResStatus.h.

References _bitfield, and zypp::bit::BitField< _IntT >::isEqual().

template<class _Field>
void zypp::ResStatus::fieldValueAssign ( FieldType  val_r  )  [inline, private]

Set the corresponding Field to value val_r.

Definition at line 651 of file ResStatus.h.

References _bitfield, and zypp::bit::BitField< _IntT >::assign().

template<class _Field>
bool zypp::ResStatus::isGreaterThan ( FieldType  val_r  )  [inline, private]

compare two values.

Definition at line 657 of file ResStatus.h.

References _bitfield, and zypp::bit::BitField< _IntT >::value().

template<class _Field>
bool zypp::ResStatus::isLessThan ( FieldType  val_r  )  [inline, private]

Definition at line 661 of file ResStatus.h.

References _bitfield, and zypp::bit::BitField< _IntT >::value().


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const ResStatus obj 
) [friend]

Stream output.

Definition at line 85 of file ResStatus.cc.

bool operator== ( const ResStatus lhs,
const ResStatus rhs 
) [friend]

Definition at line 673 of file ResStatus.h.

bool operator!= ( const ResStatus lhs,
const ResStatus rhs 
) [related]

Definition at line 677 of file ResStatus.h.


Member Data Documentation

const ResStatus zypp::ResStatus::toBeInstalled [static]

Definition at line 616 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::install(), and zypp::solver::detail::QueueItemInstall::process().

const ResStatus zypp::ResStatus::toBeInstalledSoft [static]

Definition at line 617 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::install(), zypp::solver::detail::QueueItemInstall::process(), and zypp::solver::detail::ResolverContext::upgrade().

const ResStatus zypp::ResStatus::toBeUninstalled [static]

Definition at line 618 of file ResStatus.h.

Referenced by zypp::solver::detail::QueueItemUninstall::process(), and zypp::solver::detail::ResolverContext::uninstall().

const ResStatus zypp::ResStatus::toBeUninstalledSoft [static]

Definition at line 619 of file ResStatus.h.

const ResStatus zypp::ResStatus::toBeUninstalledDueToUnlink [static]

Definition at line 620 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::uninstall().

const ResStatus zypp::ResStatus::toBeUninstalledDueToObsolete [static]

Definition at line 621 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::uninstall().

const ResStatus zypp::ResStatus::toBeUninstalledDueToUpgrade [static]

Definition at line 622 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::uninstall().

const ResStatus zypp::ResStatus::installed [static]

Definition at line 623 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::getStatus().

const ResStatus zypp::ResStatus::uninstalled [static]

Definition at line 624 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::getStatus(), and zypp::solver::detail::ResolverContext::upgrade().

const ResStatus zypp::ResStatus::satisfied [static]

Definition at line 625 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::satisfy(), and zypp::solver::detail::ResolverContext::unneeded().

const ResStatus zypp::ResStatus::complete [static]

Definition at line 626 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::satisfy().

const ResStatus zypp::ResStatus::unneeded [static]

Definition at line 627 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::unneeded().

const ResStatus zypp::ResStatus::needed [static]

Definition at line 628 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::incomplete().

const ResStatus zypp::ResStatus::incomplete [static]

Definition at line 629 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::incomplete().

const ResStatus zypp::ResStatus::impossible [static]

Definition at line 630 of file ResStatus.h.

Referenced by zypp::solver::detail::ResolverContext::uninstall().

BitFieldType zypp::ResStatus::_bitfield [private]

Definition at line 665 of file ResStatus.h.

Referenced by bitfield(), fieldValueAssign(), fieldValueIs(), getEstablishValue(), getTransactByValue(), getTransactValue(), isGreaterThan(), isLessThan(), maySetLock(), maySetSoftTransact(), maySetToBeInstalled(), maySetToBeUninstalled(), maySetToBeUninstalledSoft(), maySetTransact(), maySetTransactValue(), and setStatus().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:16 2007 for libzypp by  doxygen 1.5.3