#include <Capability.h>
Public Types | |
typedef capability::CapabilityTraits::KindType | Kind |
Public Member Functions | |
Capability () | |
DefaultCtor creating noCap. | |
virtual | ~Capability () |
Dtor. | |
const Kind & | kind () const |
Kind of Capability. | |
const Resolvable::Kind & | refers () const |
Kind of Resolvable the Capability refers to. | |
bool | relevant () const |
Whether to consider this Capability. | |
CapMatch | matches (const Capability &rhs) const |
Return whether the Capabilities match. | |
std::string | asString () const |
More or less human readable representation as string. | |
std::string | index () const |
Deprecated. | |
Rel | op () const |
Deprecated, defaults to Rel::NONE. | |
Edition | edition () const |
Deprecated, defaults to Edition::noedition. | |
Static Public Attributes | |
static const Capability | noCap |
Constant representing no Capabiliy. | |
Private Types | |
typedef capability::CapabilityImpl | Impl |
typedef capability::CapabilityImpl_Ptr | Impl_Ptr |
typedef capability::CapabilityImpl_constPtr | Impl_constPtr |
Private Member Functions | |
Capability (Impl_Ptr impl_r) | |
Factory ctor. | |
Private Attributes | |
RW_pointer< Impl, rw_pointer::Intrusive< Impl > > | _pimpl |
Pointer to implementation. | |
Friends | |
class | CapOrder |
Ordering for use in CapSet. | |
class | CapFactory |
Factory. | |
class | capability::CapabilityImpl |
bool | operator== (const Capability &lhs, const Capability &rhs) |
std::ostream & | operator<< (std::ostream &str, const Capability &obj) |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator!= (const Capability &lhs, const Capability &rhs) |
Capability is created by a Factory class. Only a default ctor creating a dummy capability is provided.
Capability cap; try { cap = CapFactory().parse( ResTraits<Patch>::kind, parsed.name, parsed.op, Edition( parsed.ver, parsed.rel, parsed.epoch ) ); } catch ( Exception & excpt_r ) { ERR << excpt_r << endl; ... Or maybe just WAR, or ? }
_pimpl
Unified _pimpl
asserted by CapFactory.
Definition at line 71 of file Capability.h.
|
Definition at line 80 of file Capability.h. |
|
Definition at line 127 of file Capability.h. |
|
Definition at line 128 of file Capability.h. |
|
Definition at line 129 of file Capability.h. |
|
DefaultCtor creating noCap.
Definition at line 31 of file Capability.cc. |
|
Dtor.
Definition at line 49 of file Capability.cc. |
|
Factory ctor.
Definition at line 40 of file Capability.cc. |
|
Kind of Capability.
Definition at line 52 of file Capability.cc. References _pimpl. Referenced by zypp::isKind(). |
|
Kind of Resolvable the Capability refers to.
Definition at line 55 of file Capability.cc. References _pimpl. Referenced by zypp::capfilter::ByRefers::operator()(), and zypp::storage::toXML(). |
|
Whether to consider this Capability. Evaluates the Capabilities pre-condition (if any), and returns whether the condition applies. If not, the Capability is to be ignored. Definition at line 58 of file Capability.cc. References _pimpl. |
|
Return whether the Capabilities match. If either Capability is not relevant, CapMatch::irrelevant is returned. Definition at line 61 of file Capability.cc. References _pimpl, and zypp::RW_pointer< _D, _Traits >::getPtr(). Referenced by zypp::solver::detail::ConflictProcess::operator()(), zypp::resfilter::ByCapMatch::operator()(), and zypp::capfilter::ByCapMatch::operator()(). |
|
More or less human readable representation as string.
Definition at line 64 of file Capability.cc. References _pimpl. Referenced by zypp::solver::detail::ResolverInfoMissingReq::message(), and zypp::solver::detail::ResolverInfo::toString(). |
|
Deprecated.
Definition at line 67 of file Capability.cc. References _pimpl. Referenced by zypp::solver::detail::FindIandU::operator()(), zypp::capfilter::ByIndex::operator()(), zypp::solver::detail::ResolverContext::requirementIsMet(), and zypp::solver::detail::ResolverContext::requirementIsPossible(). |
|
Deprecated, defaults to Rel::NONE.
Definition at line 70 of file Capability.cc. References _pimpl. |
|
Deprecated, defaults to Edition::noedition.
Definition at line 73 of file Capability.cc. References _pimpl. |
|
Ordering for use in CapSet.
Definition at line 74 of file Capability.h. |
|
Factory.
Definition at line 132 of file Capability.h. |
|
Definition at line 140 of file Capability.h. |
|
Definition at line 162 of file Capability.h. |
|
Stream output Definition at line 81 of file Capability.cc. |
|
Definition at line 166 of file Capability.h. |
|
Constant representing no Capabiliy.
It refers to no kind of Resolvable, and matches returns returns Definition at line 93 of file Capability.h. Referenced by zypp::solver::detail::QueueItemUninstall::dumpOn(), zypp::solver::detail::RequirementMet::operator()(), and zypp::solver::detail::ResolverContext::requirementIsMet(). |
|
Pointer to implementation.
Definition at line 142 of file Capability.h. Referenced by asString(), zypp::capability::CapabilityImpl::backdoor(), edition(), zypp::CapFactory::encode(), zypp::capability::CapabilityImpl::getSplitInfo(), index(), kind(), matches(), op(), zypp::CapOrder::operator()(), zypp::operator<<(), refers(), and relevant(). |