12#ifndef ZYPP_NG_SAT_CAPABILITIES_H
13#define ZYPP_NG_SAT_CAPABILITIES_H
19#include <zypp-core/base/DefaultIntegral>
63 size_type
size()
const;
69 const_iterator
begin()
const;
72 const_iterator
end()
const;
171 {
return !( *
this == rhs ); }
bool contains(const Capability &lhs) const
Return whether the set contains lhs (the Id).
const_iterator begin() const
Iterator pointing to the first Capability.
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.
const_iterator end() const
Iterator pointing behind the last Capability.
Integral type with defined initial value when default constructed.
static const CapMatch yes
std::ptrdiff_t difference_type
bool tagged() const
Return true if the Capability is tagged.
const_iterator & operator++()
const_iterator(const sat::detail::IdType *idx)
bool operator!=(const const_iterator &rhs) const
const_iterator operator++(int)
bool operator==(const const_iterator &rhs) const
const Capability reference
zypp::DefaultIntegral< bool, false > _tagged
std::forward_iterator_tag iterator_category
const sat::detail::IdType * _idx
reference operator*() const
bool empty() const
Whether the container is empty.
bool matches(const Capability &lhs) const
Return whether lhs matches at least one capability in set.
bool contains(const Capability &lhs) const
Return whether the set contains lhs (the Id).
Capabilities(const sat::detail::IdType *base_r)
Ctor from Id pointer (friend Solvable).
const_iterator begin() const
Iterator pointing to the first Capability.
const_iterator end() const
Iterator pointing behind the last Capability.
Capability findFirstMatch(const Capability &lhs) const
Return the first matching Capability in set or Capability::Null.
size_type size() const
Number of capabilities inside.
Capabilities()
Default ctor.
const sat::detail::IdType * _begin
static CapMatch matches(const Capability &lhs, const Capability &rhs)
static const Capability Null
No or Null Capability ( Id 0 ).
bool isDepMarkerId(IdType id_r)
Test for internal ids satlib includes in dependencies.
zypp::sat::detail::IdType IdType
This file contains private API, this might break at any time between releases.