|
libzypp 17.38.6
|
Container of Capability (currently read only). More...
#include <zypp/ng/sat/capabilities.h>
Classes | |
| class | const_iterator |
| Capabilities iterator. More... | |
Public Types | |
| enum | Mode { SKIP_TO_INTERNAL } |
| typedef Capability | value_type |
| typedef unsigned | size_type |
Public Member Functions | |
| Capabilities () | |
| Default ctor. | |
| Capabilities (const sat::detail::IdType *base_r) | |
| Ctor from Id pointer (friend Solvable). | |
| Capabilities (const sat::detail::IdType *base_r, sat::detail::IdType skip_r) | |
| Ctor from Id pointer (friend Solvable). | |
| bool | empty () const |
| Whether the container is empty. | |
| size_type | size () const |
| Number of capabilities inside. | |
| const_iterator | begin () const |
| Iterator pointing to the first Capability. | |
| const_iterator | end () const |
| Iterator pointing behind the last Capability. | |
| bool | contains (const Capability &lhs) const |
| Return whether the set contains lhs (the Id). | |
| bool | matches (const Capability &lhs) const |
| Return whether lhs matches at least one capability in set. | |
| Capability | findFirstMatch (const Capability &lhs) const |
| Return the first matching Capability in set or Capability::Null. | |
Private Attributes | |
| const sat::detail::IdType * | _begin |
Container of Capability (currently read only).
Definition at line 30 of file capabilities.h.
Definition at line 33 of file capabilities.h.
| typedef unsigned zyppng::sat::Capabilities::size_type |
Definition at line 34 of file capabilities.h.
| Enumerator | |
|---|---|
| SKIP_TO_INTERNAL | |
Definition at line 36 of file capabilities.h.
|
inline |
Default ctor.
Definition at line 40 of file capabilities.h.
|
inlineexplicit |
Ctor from Id pointer (friend Solvable).
Definition at line 46 of file capabilities.h.
| zyppng::sat::Capabilities::Capabilities | ( | const sat::detail::IdType * | base_r, |
| sat::detail::IdType | skip_r ) |
Ctor from Id pointer (friend Solvable).
Jump behind skip_r (e.g. behind prereqMarker).
Definition at line 22 of file capabilities.cc.
|
inline |
Whether the container is empty.
Definition at line 57 of file capabilities.h.
| Capabilities::size_type zyppng::sat::Capabilities::size | ( | ) | const |
Number of capabilities inside.
Definition at line 44 of file capabilities.cc.
|
inline |
Iterator pointing to the first Capability.
Definition at line 161 of file capabilities.h.
|
inline |
Iterator pointing behind the last Capability.
Definition at line 164 of file capabilities.h.
|
inline |
Return whether the set contains lhs (the Id).
Definition at line 167 of file capabilities.h.
|
inline |
Return whether lhs matches at least one capability in set.
Definition at line 175 of file capabilities.h.
|
inline |
Return the first matching Capability in set or Capability::Null.
Definition at line 183 of file capabilities.h.
|
private |
Definition at line 83 of file capabilities.h.