zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT > Class Template Reference

TransformIterator returning an iterator value of type _ResultT. More...

#include <LookupAttrTools.h>

Inheritance diagram for zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >:
[legend]

List of all members.

Public Member Functions

 transformIterator ()
 transformIterator (const LookupAttr::iterator &val_r)
Moving fast forward.
void nextSkipSolvAttr ()
 On the next call to operator++ advance to the next SolvAttr.
void nextSkipSolvable ()
 On the next call to operator++ advance to the next Solvable.
void nextSkipRepo ()
 On the next call to operator++ advance to the next Repository.
void skipSolvAttr ()
 Immediately advance to the next SolvAttr.
void skipSolvable ()
 Immediately advance to the next Solvable.
void skipRepo ()
 Immediately advance to the next Repository.
Current position info.
Repository inRepo () const
 The current Repository.
Solvable inSolvable () const
 The current Solvabele.
SolvAttr inSolvAttr () const
 The current SolvAttr.

Private Member Functions

_ResultT dereference () const

Friends

class boost::iterator_core_access


Detailed Description

template<class _ResultT, class _AttrT>
class zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >

TransformIterator returning an iterator value of type _ResultT.

The underlying LookupAttr::iterators value is retrieved asType<_AttrT> and the returned ResultT is constructed fron that value.

   class Keywords
   {
     public:
       Keywords( sat::Solvable solv_r )
       : _q( sat::SolvAttr::keywords, solv_r )
       {}

     public:
       typedef sat::LookupAttr::transformIterator<PackageKeyword,IdString> iterator;

       iterator begin() const { return iterator( _q.begin() ); }
       iterator end() const   { return iterator( _q.end() ); }

     private:
       sat::LookupAttr _q;
   };

See also:
ArrayAttr.

Definition at line 56 of file LookupAttrTools.h.


Constructor & Destructor Documentation

template<class _ResultT , class _AttrT >
zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >::transformIterator (  )  [inline]

Definition at line 65 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >::transformIterator ( const LookupAttr::iterator val_r  )  [inline, explicit]

Definition at line 69 of file LookupAttrTools.h.


Member Function Documentation

template<class _ResultT , class _AttrT >
void zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >::nextSkipSolvAttr (  )  [inline]

On the next call to operator++ advance to the next SolvAttr.

Definition at line 77 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
void zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >::nextSkipSolvable (  )  [inline]

On the next call to operator++ advance to the next Solvable.

Definition at line 81 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
void zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >::nextSkipRepo (  )  [inline]

On the next call to operator++ advance to the next Repository.

Definition at line 85 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
void zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >::skipSolvAttr (  )  [inline]

Immediately advance to the next SolvAttr.

Definition at line 89 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
void zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >::skipSolvable (  )  [inline]

Immediately advance to the next Solvable.

Definition at line 93 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
void zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >::skipRepo (  )  [inline]

Immediately advance to the next Repository.

Definition at line 97 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
Repository zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >::inRepo (  )  const [inline]

The current Repository.

Definition at line 104 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
Solvable zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >::inSolvable (  )  const [inline]

The current Solvabele.

Definition at line 108 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
SolvAttr zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >::inSolvAttr (  )  const [inline]

The current SolvAttr.

Definition at line 112 of file LookupAttrTools.h.

template<class _ResultT , class _AttrT >
_ResultT zypp::sat::LookupAttr::transformIterator< _ResultT, _AttrT >::dereference (  )  const [inline, private]

Definition at line 119 of file LookupAttrTools.h.

References zypp::sat::LookupAttr::iterator::asType().


Friends And Related Function Documentation

template<class _ResultT , class _AttrT >
friend class boost::iterator_core_access [friend]

Definition at line 117 of file LookupAttrTools.h.


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

doxygen