12 #ifndef ZYPP_SAT_WHATPROVIDES_H
13 #define ZYPP_SAT_WHATPROVIDES_H
32 class WhatProvidesIterator;
148 , const detail::IdType *
150 , boost::forward_traversal_tag
164 : iterator_adaptor_( base_r ),
_baseRef( base_r ? &base_reference() : 0 ),
_offset( offset_r )
176 : iterator_adaptor_( rhs.base_reference() )
186 base_reference() = rhs.base_reference();
199 template <
class OtherDerived,
class OtherIterator,
class V,
class C,
class R,
class D>
200 bool equal(
const boost::iterator_adaptor<OtherDerived, OtherIterator, V, C, R, D> & rhs )
const
208 if ( base_reference() )
209 return( base_reference() == rhs.base_reference() );
235 #endif // ZYPP_SAT_WHATPROVIDES_H
const detail::IdType *const * _baseRef
int IdType
Generic Id type.
A Solvable object within the sat Pool.
Container of Solvable providing a Capability (read only).
Container of Capability (currently read only).
std::ostream & operator<<(std::ostream &str, const LocaleSupport &obj)
friend std::ostream & operator<<(std::ostream &str, const WhatProvidesIterator &obj)
detail::WhatProvidesIterator const_iterator
bool empty() const
Whether the container is empty.
WhatProvidesIterator & operator=(const WhatProvidesIterator &rhs)
Assignment operator required to keep _baseRef adjusted.
reference dereference() const
detail::IdType getId() const
std::tr1::unordered_set< Capability > CapabilitySet
WhatProvidesIterator(const detail::IdType *const *baseRef_r, unsigned offset_r)
Ctor with pointer to pointer to 1st elemment of an array.
Base class providing common iterator types based on a Solvable iterator.
Backlink to the associated PoolImpl.
const_iterator begin() const
Iterator pointing to the first Solvable.
WhatProvidesIterator(const detail::IdType *const base_r, unsigned offset_r=0)
Ctor with pointer to 1st elemment of an array.
const_iterator end() const
Iterator pointing behind the last Solvable.
WhatProvidesIterator(const WhatProvidesIterator &rhs)
Copy-ctor required to keep _baseRef adjusted.
WhatProvides implementation date.
WhatProvides()
Default ctor.
size_type size() const
Number of solvables inside.
Wrapper for const correct access via Smart pointer types.
static const IdType noId(0)
bool equal(const WhatProvidesIterator &rhs) const
RW_pointer< Impl > _pimpl
friend class boost::iterator_core_access