12#ifndef ZYPP_SAT_CAPABILITIES_H
13#define ZYPP_SAT_CAPABILITIES_H
17#include <zypp-core/base/DefaultIntegral>
72 const_iterator
begin()
const;
75 const_iterator
end()
const;
100 , const sat::detail::IdType *
102 , boost::forward_traversal_tag
147 template <
class OtherDerived,
class OtherIterator,
class V,
class C,
class R,
class D>
148 bool equal(
const boost::iterator_adaptor<OtherDerived, OtherIterator, V, C, R, D> & rhs )
const
150 return ( base() == rhs.base()
151 || ( !rhs.base() && !*base() )
152 || ( !base() && !*rhs.base() ) );
static const CapMatch yes
DefaultIntegral< bool, false > _tagged
bool equal(const boost::iterator_adaptor< OtherDerived, OtherIterator, V, C, R, D > &rhs) const
reference dereference() const
const_iterator(const sat::detail::IdType *_idx)
friend class boost::iterator_core_access
bool tagged() const
Return true if the Capability is tagged.
Container of Capability (currently read only).
Capabilities(const sat::detail::IdType *base_r)
Ctor from Id pointer (friend Solvable).
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.
const_iterator end() const
Iterator pointing behind the last Capability.
size_type size() const
Number of capabilities inside.
const sat::detail::IdType * _begin
bool empty() const
Whether the container is empty.
Capabilities()
Default ctor.
static const Capability Null
No or Null Capability ( Id 0 ).
static CapMatch matches(const Capability &lhs, const Capability &rhs)
Integral type with defined initial value when default constructed.
String related utilities and Regular expression matching.
bool isDepMarkerId(IdType id_r)
Test for internal ids satlib includes in dependencies.
int IdType
Generic Id type.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)