libzypp  10.5.0
zypp::sat::detail::WhatProvidesIterator Class Reference

WhatProvides iterator. More...

#include <WhatProvides.h>

Inheritance diagram for zypp::sat::detail::WhatProvidesIterator:

List of all members.

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.
WhatProvidesIteratoroperator= (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)

Detailed Description

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.


Constructor & Destructor Documentation

zypp::sat::detail::WhatProvidesIterator::WhatProvidesIterator ( ) [inline]

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.


Member Function Documentation

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.

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.

detail::IdType zypp::sat::detail::WhatProvidesIterator::getId ( ) const [inline, private]

Definition at line 216 of file WhatProvides.h.


Friends And Related Function Documentation

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.


Member Data Documentation

Definition at line 220 of file WhatProvides.h.

Definition at line 221 of file WhatProvides.h.


The documentation for this class was generated from the following file: