12#ifndef ZYPP_POOLITEM_H
13#define ZYPP_POOLITEM_H
18#include <zypp/base/PtrTypes.h>
61 template <
class Derived>
62 explicit PoolItem(
const SolvableType<Derived> & solvable_r )
190 {
return ! (lhs==rhs); }
194 {
return ! (lhs==rhs); }
198 {
return ! (lhs==rhs); }
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...
friend std::ostream & operator<<(std::ostream &str, const PoolItem &obj)
bool operator==(const PoolItem &lhs, const ResObject::constPtr &rhs)
Convenience compare.
bool operator!=(const ResObject::constPtr &lhs, const PoolItem &rhs)
Convenience compare.
void restoreState() const
ResObject::constPtr resolvable() const
Returns the ResObject::constPtr.
bool operator!=(const PoolItem &lhs, const ResObject::constPtr &rhs)
Convenience compare.
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.
PoolItem(const SolvableType< Derived > &solvable_r)
Ctor looking up the sat::Solvable in the ResPool.
bool isUnwanted() const
Broken (needed) but locked patches.
bool operator==(const PoolItem &lhs, const PoolItem &rhs)
Required to disambiguate vs.
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.
ResObject::constPtr operator->() const
Forward -> access to ResObject.
bool operator==(const ResObject::constPtr &lhs, const PoolItem &rhs)
Convenience compare.
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).
bool operator!=(const PoolItem &lhs, const PoolItem &rhs)
Required to disambiguate vs.
TraitsType::constPtrType constPtr
A Solvable object within the sat Pool.
static const Solvable noSolvable
Represents no Solvable.
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)
Wrapper for const correct access via Smart pointer types.
Solvable to PoolItem transform functor.
PoolItem operator()(const sat::Solvable &solv_r) const
Base class for creating Solvable based types.
Solvable satSolvable() const
Return the corresponding sat::Solvable.