12 #ifndef ZYPP_RESOLVABLE_H
13 #define ZYPP_RESOLVABLE_H
71 {
return sat::Solvable::isKind<_Res>(); }
144 virtual std::ostream &
dumpOn( std::ostream & str )
const;
150 {
return obj.
dumpOn( str ); }
189 {
return dynamic_pointer_cast<_Res>(p); }
193 {
return dynamic_pointer_cast<
const _Res>(p); }
205 if ( ! (lhs && rhs) )
208 if ( (res = lhs->kind().compare( rhs->kind() )) )
210 return lhs->name().compare( rhs->name() );
221 if ( ! (lhs && rhs) )
224 if ( (res = lhs->kind().compare( rhs->kind() )) )
226 if ( (res = lhs->name().compare( rhs->name() )) )
228 return lhs->edition().compare( rhs->edition() );
239 if ( ! (lhs && rhs) )
242 if ( (res = lhs->kind().compare( rhs->kind() )) )
244 if ( (res = lhs->name().compare( rhs->name() )) )
246 if ( (res = lhs->edition().compare( rhs->edition() )) )
248 return lhs->arch().compare( rhs->arch() );
254 #endif // ZYPP_RESOLVABLE_H
bool isSystem() const
Whether this represents an installed solvable.
Capabilities enhances() const
A Solvable object within the sat Pool.
Capabilities recommends() const
CapabilitySet providesNamespace(const std::string &namespace_r) const
Return the namespaced provides 'namespace([value])[ op edition]' of this Solvable.
Container of Capability (currently read only).
IdString ident() const
The identifier.
Enumeration class of dependency types.
TraitsType::KindType Kind
ResTraits< Self > TraitsType
int compareByNVRA(const Resolvable::constPtr &lhs, const Resolvable::constPtr &rhs)
Capabilities supplements() const
Capabilities provides() const
bool isSystem() const
Return whether this Solvable belongs to the system repo.
Capabilities suggests() const
Access to the sat-pools string space.
Interface base for resolvable objects (identification and dependencies).
Edition represents [epoch:]version[-release]
ResTraits< _Res >::PtrType asKind(const sat::Solvable &solvable_r)
Directly create a certain kind of ResObject from sat::Solvable.
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
Return 'value[ op edition]' for namespaced provides 'namespace(value)[ op edition]'.
std::tr1::unordered_set< Capability > CapabilitySet
Capabilities provides() const
Resolvable(const sat::Solvable &solvable_r)
Ctor.
Capabilities dep(Dep which_r) const
Select by Dep.
bool isKind(const Resolvable::constPtr &p)
Test whether a Resolvable::Ptr is of a certain Kind.
bool isKind< Resolvable >(const Resolvable::constPtr &p)
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
std::ostream & dumpOn(std::ostream &str, const Resolvable &obj)
Capabilities requires() const
Capabilities operator[](Dep which_r) const
Provides API related macros.
PoolItem poolItem() const
Access the corresponding PoolItem.
const sat::Solvable & satSolvable() const
Access the corresponding ::Solvable.
bool onSystemByUser() const
Whether this is known to be installed on behalf of a user request.
virtual std::ostream & dumpOn(std::ostream &str) const
Helper for stream output.
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
Capabilities suggests() const
bool multiversionInstall() const
Whether different versions of this package can be installed at the same time.
Capabilities prerequires() const
Base class for reference counted objects.
Capabilities enhances() const
TraitsType::constPtrType constPtr
friend std::ostream & operator<<(std::ostream &str, const Resolvable &obj)
bool isKind(const ResKind &kind_r) const
std::ostream & operator<<(std::ostream &str, const Resolvable &obj)
Capabilities conflicts() const
bool multiversionInstall() const
Whether different versions of this package can be installed at the same time.
Capabilities conflicts() const
Capabilities recommends() const
Capabilities prerequires() const
int compareByN(const Resolvable::constPtr &lhs, const Resolvable::constPtr &rhs)
Capabilities operator[](Dep which_r) const
Capabilities requires() const
virtual ~Resolvable()
Dtor.
Capabilities supplements() const
intrusive_ptr< _Res > PtrType
Capabilities obsoletes() const
bool isKind< ResObject >(const Resolvable::constPtr &p)
bool onSystemByUser() const
Whether this is known to be installed on behalf of a user request.
Reference to a PoolItem connecting ResObject and ResStatus.
ResTraits< _Res >::PtrType asKind(const Resolvable::Ptr &p)
Convert Resolvable::Ptr into Ptr of a certain Kind.
CapabilitySet providesNamespace(const std::string &namespace_r) const
int compareByNVR(const Resolvable::constPtr &lhs, const Resolvable::constPtr &rhs)
Capabilities obsoletes() const
intrusive_ptr< const _Res > constPtrType