libzypp 17.31.23
|
Container of Capability (currently read only). More...
#include <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. | |
Private Attributes | |
const sat::detail::IdType * | _begin |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const Capabilities &obj) |
Stream output. | |
Container of Capability (currently read only).
Definition at line 35 of file Capabilities.h.
Definition at line 38 of file Capabilities.h.
typedef unsigned zypp::Capabilities::size_type |
Definition at line 39 of file Capabilities.h.
Enumerator | |
---|---|
SKIP_TO_INTERNAL |
Definition at line 41 of file Capabilities.h.
|
inline |
Default ctor.
Definition at line 45 of file Capabilities.h.
|
inlineexplicit |
Ctor from Id pointer (friend Solvable).
Definition at line 51 of file Capabilities.h.
zypp::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 23 of file Capabilities.cc.
|
inline |
Whether the container is empty.
Definition at line 62 of file Capabilities.h.
Capabilities::size_type zypp::Capabilities::size | ( | ) | const |
Number of capabilities inside.
Definition at line 45 of file Capabilities.cc.
|
inline |
Iterator pointing to the first Capability.
Definition at line 169 of file Capabilities.h.
|
inline |
Iterator pointing behind the last Capability.
Definition at line 172 of file Capabilities.h.
|
inline |
Return whether the set contains lhs (the Id)
Definition at line 175 of file Capabilities.h.
|
inline |
Return whether lhs matches at least one capability in set.
Definition at line 183 of file Capabilities.h.
|
related |
Stream output.
Definition at line 65 of file Capabilities.cc.
|
private |
Definition at line 85 of file Capabilities.h.