139 static shared_ptr<Impl> _nullimpl(
new Impl );
163 DBG << *
this <<
" has buddy " << myBuddy << endl;
188 : _pimpl(
ResPool::instance().find( solvable_r )._pimpl )
197 : _pimpl(
ResPool::instance().find( resolvable_r )._pimpl )
206 : _pimpl( implptr_r )
242 {
return _pimpl->status(); }
245 {
return _pimpl->statusReset(); }
248 {
return _pimpl->buddy(); }
251 {
_pimpl->setBuddy( solv_r ); }
254 {
return _pimpl->isUndetermined(); }
257 {
return _pimpl->isRelevant(); }
260 {
return _pimpl->isSatisfied(); }
263 {
return _pimpl->isBroken(); }
266 {
return _pimpl->isNeeded(); }
269 {
return _pimpl->isUnwanted(); }
275 {
_pimpl->restoreState(); }
278 {
return _pimpl->sameState(); }
281 {
return _pimpl->resolvable(); }
290 return str << *obj.
_pimpl;
A Solvable object within the sat Pool.
PoolItem()
Default ctor for use in std::container.
TransactValue getTransactValue() const
DefaultIntegral< sat::detail::IdType, sat::detail::noId > _buddy
ResStatus & statusReset() const
Reset status.
bool isNonRelevant() const
ResStatus & status() const
bool isSystem() const
Return whether this Solvable belongs to the system repo.
std::ostream & operator<<(std::ostream &str, const PoolItem::Impl &obj)
bool resetTransact(TransactByValue causer_r)
Not the same as setTransact( false ).
TraitsType::constPtrType constPtr
static const Solvable noSolvable
Represents no Solvable.
bool isUndetermined() const
Impl(ResObject::constPtr res_r, const ResStatus &status_r)
bool isUndetermined() const
No validation is performed for packages.
ResObject::constPtr resolvable() const
Returns the ResObject::constPtr.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
void restoreState() const
static shared_ptr< Impl > nullimpl()
Offer default Impl.
sat::Solvable buddy() const
void setBuddy(sat::Solvable solv_r)
ResObject::constPtr resolvable() const
ResStatus & status() const
Returns the current status.
static PoolItem makePoolItem(const sat::Solvable &solvable_r)
PoolItem generator for pool::PoolImpl.
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...
bool setLock(bool toLock_r, TransactByValue causer_r)
Apply a lock (prevent transaction).
void restoreState() const
bool isLicenceConfirmed() const
ResObject::constPtr _resolvable
bool isUndetermined() const
bool isBroken() const
Whether a relevant items requirements are broken.
ResStatus & statusReset() const
sat::Solvable buddy() const
Return the buddy we share our status object with.
bool isToBeInstalled() const
void setBuddy(sat::Solvable solv_r)
Buddies are set by pool::PoolImpl.
sat::Solvable satSolvable() const
Return the corresponding sat::Solvable.
bool isSatisfied() const
Whether a relevant items requirements are met.
ResObject::Ptr makeResObject(const sat::Solvable &solvable_r)
Create ResObject from sat::Solvable.
Reference to a PoolItem connecting ResObject and ResStatus.
IdType id() const
Expert backdoor.
ResPool pool() const
Return the ResPool the item belongs to.
RW_pointer< Impl > _pimpl
Pointer to implementation.
bool isUnwanted() const
Broken (needed) but locked patches.
static ResPool instance()
Singleton ctor.