Diana  0.8.3
Public Types | Public Member Functions | Private Attributes | Friends
refiterator< _Ti > Class Template Reference

Iterator class that used with sparray. More...

#include <DianaSparseArray.hpp>

List of all members.

Public Types

typedef std::iterator_traits
< typename
std::iterator_traits< _Ti >
::value_type >::value_type 
value_type
 Value type of the iterator.
typedef
std::random_access_iterator_tag 
iterator_category
 Definition of the iterator category.
typedef ptrdiff_t difference_type
 Iterator difference type.
typedef value_typepointer
 Iterator pointer type.
typedef value_typereference
 Iterator reference type.

Public Member Functions

 refiterator (const _Ti &_iter)
 Iterator copy constructor.
refiteratoroperator= (const _Ti &_iter)
 Iterator assignment operator.
template<typename _Iter >
 refiterator (const refiterator< _Iter > &__i)
reference operator* () const
 Iterator pointer dereference operator.
pointer operator-> () const
 Iterator member selection operator.
refiteratoroperator++ ()
 Iterator preincrement operator.
refiterator operator++ (int)
 Iterator postincrement operator.
refiteratoroperator-- ()
 Iterator predecrement operator.
refiterator operator-- (int)
 Iterator postdecrement operator.
Common::Types::CapeBoolean operator== (const refiterator &rhs)
 Iterator equality operator.
Common::Types::CapeBoolean operator!= (const refiterator &rhs)
 Iterator inequality operator.
reference operator[] (const difference_type &__n) const
 Iterator array subscript operator.
refiteratoroperator+= (const difference_type &__n)
 Iterator addition assignment operator.
refiterator operator+ (const difference_type &__n) const
 Iterator addition operator.
refiteratoroperator-= (const difference_type &__n)
 Iterator subtraction assignment operator.
refiterator operator- (const difference_type &__n) const
 Iterator subtraction operator.
Common::Types::CapeBoolean operator< (const refiterator &rhs) const
 Iterator "less than" operator.
Common::Types::CapeBoolean operator<= (const refiterator &rhs) const
 Iterator "less than or equal to" operator.
Common::Types::CapeBoolean operator> (const refiterator &rhs) const
 Iterator "greater than" operator.
Common::Types::CapeBoolean operator>= (const refiterator &rhs) const
 Iterator "greater than or equal to" operator.
difference_type operator- (const refiterator &rhs) const
 Iterator difference (subtraction of iterators) operator.
const _Ti & base () const

Private Attributes

_Ti _M_current
 Iterator internal pointer.

Friends

template<typename _Tiostr >
std::ostream & operator<< (std::ostream &os, const refiterator< _Tiostr > &iter)
 Iterator output operator.

Detailed Description

template<typename _Ti>
class Diana::refiterator< _Ti >

Iterator class that used with sparray.

Iterator class used with sparray for iterating vectors of iterators with double dereferencing. The iterator methods are similar to the GNU __normal_iterator.

Parameters:
_TiType of the original iterator.
Author:
Michael Krasnyk miha@mpi-magdeburg.mpg.de
Date:
5 October 2005

Constructor & Destructor Documentation

refiterator ( const refiterator< _Iter > &  __i) [inline]

Allows iterator to const_iterator conversion.


Member Function Documentation

const _Ti& base ( ) const [inline]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const refiterator< _Tiostr > &  iter 
) [friend]

Iterator output operator.

This operator can be used only if the output operator of the dereferenced type _Tiostr is declared, otherwise compiler will produce an error.


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