12#ifndef ZYPP_NG_SAT_CAPABILITIES_H
13#define ZYPP_NG_SAT_CAPABILITIES_H
17#include <zypp-core/base/DefaultIntegral>
61 size_type
size()
const;
67 const_iterator
begin()
const;
70 const_iterator
end()
const;
92 , const sat::detail::IdType *
94 , boost::forward_traversal_tag
139 template <
class OtherDerived,
class OtherIterator,
class V,
class C,
class R,
class D>
140 bool equal(
const boost::iterator_adaptor<OtherDerived, OtherIterator, V, C, R, D> & rhs )
const
142 return (
base() == rhs.base()
143 || ( !rhs.base() && !*
base() )
144 || ( !
base() && !*rhs.base() ) );
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
bool tagged() const
Return true if the Capability is tagged.
const_iterator(const sat::detail::IdType *_idx)
zypp::DefaultIntegral< bool, false > _tagged
reference dereference() const
friend class boost::iterator_core_access
bool equal(const boost::iterator_adaptor< OtherDerived, OtherIterator, V, C, R, D > &rhs) 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.