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

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

#include <dune/common/arraylist.hh>

Inheritance diagram for Dune::ConstArrayListIterator< 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 ConstArrayListIterator< MemberType, N, A > &other) const
 Comares to iterators. More...
 
void increment ()
 Increment the iterator. More...
 
void decrement ()
 decrement the iterator. More...
 
void advance (difference_type n)
 
difference_type distanceTo (const ConstArrayListIterator< T, N, A > &other) const
 
const_reference elementAt (size_type i) const
 Get the value of the list at an arbitrary position. More...
 
const_reference dereference () const
 Access the element at the current position. More...
 
const ConstArrayListIterator< T, N, A > & operator= (const ConstArrayListIterator< T, N, A > &other)
 
 ConstArrayListIterator ()
 
 ConstArrayListIterator (const ArrayListIterator< T, N, A > &other)
 

Detailed Description

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

A constant 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::ConstArrayListIterator< T, N, A >::const_reference

◆ difference_type

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

◆ MemberType

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

The member type.

◆ reference

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

◆ size_type

template<class T , int N, class A >
typedef A::size_type Dune::ConstArrayListIterator< 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

◆ ConstArrayListIterator()

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

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