13#include <zypp/base/Logger.h>
14#include <zypp-core/base/DefaultIntegral>
130 && ( !
status().isBySolver()
146 static shared_ptr<Impl> _nullimpl(
new Impl );
168 if ( myBuddy.
_pimpl->_buddy )
170 ERR << *
this <<
" would be buddy2 in " << myBuddy << endl;
175 DBG << *
this <<
" has buddy " << myBuddy << endl;
188 : _pimpl(
ResPool::instance().find( solvable_r )._pimpl )
192 : _pimpl(
ResPool::instance().find( resolvable_r )._pimpl )
196 : _pimpl( implptr_r )
Integral type with defined initial value when default constructed.
Combining sat::Solvable and ResStatus.
bool isRelevant() const
Returns true if the solvable is relevant which means e.g.
bool isNeeded() const
This includes unlocked broken patches, as well as those already selected to be installed (otherwise c...
void restoreState() const
ResObject::constPtr resolvable() const
Returns the ResObject::constPtr.
bool isBroken() const
Whether a relevant items requirements are broken.
ResStatus & status() const
Returns the current status.
void setBuddy(const sat::Solvable &solv_r)
Buddies are set by pool::PoolImpl.
bool isSatisfied() const
Whether a relevant items requirements are met.
bool isUnwanted() const
Broken (needed) but locked patches.
static PoolItem makePoolItem(const sat::Solvable &solvable_r)
PoolItem generator for pool::PoolImpl.
ResStatus & statusReset() const
Resets status to the default state (KEEP_STATE bySOLVER; clears any lock!).
ResPool pool() const
Return the ResPool the item belongs to.
PoolItem()
Default ctor for use in std::container.
sat::Solvable buddy() const
Return the buddy we share our status object with.
RW_pointer< Impl > _pimpl
Pointer to implementation.
bool isUndetermined() const
No validation is performed for packages.
ResStatus & statusReinit() const
Resets status to it's initial state in the ResPool (KEEP_STATE bySOLVER or LOCKED byUSER).
TraitsType::constPtrType constPtr
static ResPool instance()
Singleton ctor.
bool isLicenceConfirmed() const
bool isUndetermined() const
bool isToBeInstalled() const
bool isNonRelevant() const
bool isUserLockQueryMatch() const
bool setLock(bool toLock_r, TransactByValue causer_r)
Apply a lock (prevent transaction).
TransactValue getTransactValue() const
bool resetTransact(TransactByValue causer_r)
Not the same as setTransact( false ).
A Solvable object within the sat Pool.
IdType id() const
Expert backdoor.
static const Solvable noSolvable
Represents no Solvable.
bool isSystem() const
Return whether this Solvable belongs to the system repo.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
ResObject::Ptr makeResObject(const sat::Solvable &solvable_r)
Create ResObject from sat::Solvable.
void setBuddy(const sat::Solvable &solv_r)
ResStatus & status() const
ResObject::constPtr _resolvable
void restoreState() const
sat::Solvable buddy() const
std::ostream & operator<<(std::ostream &str, const PoolItem::Impl &obj)
Stream output.
static shared_ptr< Impl > nullimpl()
Offer default Impl.
Impl(ResObject::constPtr res_r, const ResStatus &status_r)
bool isUndetermined() const
DefaultIntegral< sat::detail::IdType, sat::detail::noId > _buddy
ResStatus & statusReset() const
ResStatus & statusReinit() const
ResObject::constPtr resolvable() const
Solvable satSolvable() const
Return the corresponding sat::Solvable.