dune-common  2.7.0
Public Types | Public Member Functions | List of all members
Dune::ArrayListIterator< T, N, A > Class Template Reference

A random access iterator for the Dune::ArrayList class. More...

#include <dune/common/arraylist.hh>

Inheritance diagram for Dune::ArrayListIterator< T, N, A >:
Inheritance graph

Public Types

enum  { chunkSize_ = (N > 0) ? N : 1 }
 
typedef A::value_type MemberType
 The member type. More...
 
typedef A::difference_type difference_type
 
typedef A::size_type size_type
 
typedef A::reference reference
 
typedef A::const_reference const_reference
 

Public Member Functions

bool equals (const ArrayListIterator< MemberType, N, A > &other) const
 Comares two iterators. More...
 
bool equals (const ConstArrayListIterator< MemberType, N, A > &other) const
 Comares two iterators. More...
 
void increment ()
 Increment the iterator. More...
 
void decrement ()
 decrement the iterator. More...
 
reference elementAt (size_type i) const
 Get the value of the list at an arbitrary position. More...
 
reference dereference () const
 Access the element at the current position. More...
 
void eraseToHere ()
 Erase all entries before the current position and the one at the current position. More...
 
size_type position ()
 
void advance (difference_type n)
 
difference_type distanceTo (const ArrayListIterator< T, N, A > &other) const
 
ArrayListIterator< T, N, A > & operator= (const ArrayListIterator< T, N, A > &other)
 
 ArrayListIterator ()
 Standard constructor. More...
 

Detailed Description

template<class T, int N, class A>
class Dune::ArrayListIterator< T, N, A >

A random access iterator for the Dune::ArrayList class.

Member Typedef Documentation

◆ const_reference

template<class T , int N, class A >
typedef A::const_reference Dune::ArrayListIterator< T, N, A >::const_reference

◆ difference_type

template<class T , int N, class A >
typedef A::difference_type Dune::ArrayListIterator< T, N, A >::difference_type

◆ MemberType

template<class T , int N, class A >
typedef A::value_type Dune::ArrayListIterator< T, N, A >::MemberType

The member type.

◆ reference

template<class T , int N, class A >
typedef A::reference Dune::ArrayListIterator< T, N, A >::reference

◆ size_type

template<class T , int N, class A >
typedef A::size_type Dune::ArrayListIterator< T, N, A >::size_type

Member Enumeration Documentation

◆ anonymous enum

template<class T , int N, class A >
anonymous enum
Enumerator
chunkSize_ 

The number of elements in one chunk of the list.

This has to be at least one. The default is 100.

Constructor & Destructor Documentation

◆ ArrayListIterator()

template<class T , int N, class A >
Dune::ArrayListIterator< T, N, A >::ArrayListIterator ( )
inline

Standard constructor.

Member Function Documentation

◆ position()

template<class T , int N, class A >
size_type Dune::ArrayListIterator< T, N, A >::position ( )
inline
Todo:
Please doc me!

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