libzypp
10.5.0
|
Capabilities iterator. More...
#include <Capabilities.h>
Public Member Functions | |
const_iterator () | |
const_iterator (const sat::detail::IdType *_idx) | |
bool | tagged () const |
Return true if the Capability is tagged . | |
Private Member Functions | |
reference | dereference () const |
template<class OtherDerived , class OtherIterator , class V , class C , class R , class D > | |
bool | equal (const boost::iterator_adaptor< OtherDerived, OtherIterator, V, C, R, D > &rhs) const |
void | increment () |
Private Attributes | |
DefaultIntegral< bool, false > | _tagged |
Friends | |
class | boost::iterator_core_access |
Capabilities iterator.
Definition at line 91 of file Capabilities.h.
zypp::Capabilities::const_iterator::const_iterator | ( | ) | [inline] |
Definition at line 100 of file Capabilities.h.
zypp::Capabilities::const_iterator::const_iterator | ( | const sat::detail::IdType * | _idx | ) | [inline, explicit] |
Definition at line 104 of file Capabilities.h.
bool zypp::Capabilities::const_iterator::tagged | ( | ) | const [inline] |
Return true
if the Capability is tagged
.
The meaning of tagged
depends on the kind of dependency you are processing. It is a hint that the iteratir skipped some internal marker, indicating that subsequent cabailities have a special property. Within a Solvables requirements e.g. the pre-requirements are tagged.
Capabilities req( solvable.requires() ); for_( it, req.begin(), req.end() ) { if ( it.tagged() ) cout << *it << " (is prereq)" << endl; else cout << *it << endl; }
Definition at line 132 of file Capabilities.h.
reference zypp::Capabilities::const_iterator::dereference | ( | ) | const [inline, private] |
Definition at line 137 of file Capabilities.h.
bool zypp::Capabilities::const_iterator::equal | ( | const boost::iterator_adaptor< OtherDerived, OtherIterator, V, C, R, D > & | rhs | ) | const [inline, private] |
Definition at line 141 of file Capabilities.h.
void zypp::Capabilities::const_iterator::increment | ( | ) | [inline, private] |
Definition at line 148 of file Capabilities.h.
friend class boost::iterator_core_access [friend] |
Definition at line 135 of file Capabilities.h.
DefaultIntegral<bool,false> zypp::Capabilities::const_iterator::_tagged [private] |
Definition at line 158 of file Capabilities.h.