|
libzypp
9.1.2
|
WhatProvides iterator. More...
#include <WhatProvides.h>

Public Member Functions | |
| WhatProvidesIterator () | |
| WhatProvidesIterator (const detail::IdType *const base_r, unsigned offset_r=0) | |
| Ctor with pointer to 1st elemment of an array. | |
| WhatProvidesIterator (const detail::IdType *const *baseRef_r, unsigned offset_r) | |
| Ctor with pointer to pointer to 1st elemment of an array. | |
| WhatProvidesIterator (const WhatProvidesIterator &rhs) | |
| Copy-ctor required to keep _baseRef adjusted. | |
| WhatProvidesIterator & | operator= (const WhatProvidesIterator &rhs) |
| Assignment operator required to keep _baseRef adjusted. | |
Private Member Functions | |
| reference | dereference () const |
| bool | equal (const WhatProvidesIterator &rhs) const |
| void | increment () |
| detail::IdType | getId () const |
Private Attributes | |
| const detail::IdType *const * | _baseRef |
| unsigned | _offset |
Friends | |
| class | boost::iterator_core_access |
| std::ostream & | operator<< (std::ostream &str, const WhatProvidesIterator &obj) |
WhatProvides iterator.
Iterate a NULL terminated sat::detail::IdType array. Ctor gets the adress of a pointer to the array, and offset into the array. This is needed in case the array gets reallocated.
Definition at line 146 of file WhatProvides.h.
Definition at line 156 of file WhatProvides.h.
| zypp::sat::detail::WhatProvidesIterator::WhatProvidesIterator | ( | const detail::IdType *const | base_r, |
| unsigned | offset_r = 0 |
||
| ) | [inline, explicit] |
Ctor with pointer to 1st elemment of an array.
Use otherwise unused base as pointer for _baseRef.
Definition at line 163 of file WhatProvides.h.
| zypp::sat::detail::WhatProvidesIterator::WhatProvidesIterator | ( | const detail::IdType *const * | baseRef_r, |
| unsigned | offset_r | ||
| ) | [inline, explicit] |
Ctor with pointer to pointer to 1st elemment of an array.
Required for arrays that might be relocated while iterating.
Definition at line 170 of file WhatProvides.h.
| zypp::sat::detail::WhatProvidesIterator::WhatProvidesIterator | ( | const WhatProvidesIterator & | rhs | ) | [inline] |
Copy-ctor required to keep _baseRef adjusted.
Definition at line 175 of file WhatProvides.h.
| WhatProvidesIterator& zypp::sat::detail::WhatProvidesIterator::operator= | ( | const WhatProvidesIterator & | rhs | ) | [inline] |
Assignment operator required to keep _baseRef adjusted.
Definition at line 182 of file WhatProvides.h.
| reference zypp::sat::detail::WhatProvidesIterator::dereference | ( | ) | const [inline, private] |
Definition at line 196 of file WhatProvides.h.
References getId().
| bool zypp::sat::detail::WhatProvidesIterator::equal | ( | const WhatProvidesIterator & | rhs | ) | const [inline, private] |
Definition at line 202 of file WhatProvides.h.
| void zypp::sat::detail::WhatProvidesIterator::increment | ( | ) | [inline, private] |
Definition at line 213 of file WhatProvides.h.
References _offset.
| detail::IdType zypp::sat::detail::WhatProvidesIterator::getId | ( | ) | const [inline, private] |
Definition at line 216 of file WhatProvides.h.
References _baseRef, _offset, and zypp::sat::detail::noId().
Referenced by dereference(), and equal().
friend class boost::iterator_core_access [friend] |
Definition at line 194 of file WhatProvides.h.
| std::ostream& operator<< | ( | std::ostream & | str, |
| const WhatProvidesIterator & | obj | ||
| ) | [friend] |
Definition at line 171 of file WhatProvides.cc.
const detail::IdType* const* zypp::sat::detail::WhatProvidesIterator::_baseRef [private] |
Definition at line 220 of file WhatProvides.h.
Referenced by equal(), getId(), zypp::sat::detail::operator<<(), and operator=().
unsigned zypp::sat::detail::WhatProvidesIterator::_offset [private] |
Definition at line 221 of file WhatProvides.h.
Referenced by equal(), getId(), increment(), zypp::sat::detail::operator<<(), and operator=().
1.7.6.1