Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

dolfin::Array< T >::Iterator Class Reference

#include <Array.h>

List of all members.

Public Member Functions

 Iterator ()
 Create an iterator positioned at the end of the array.

 Iterator (const Array< T > &array)
 Create an iterator positioned at the beginning of the array.

 Iterator (const Array< T > &array, Index index)
 Create an iterator positioned at the given position.

Iteratoroperator++ ()
Iteratoroperator-- ()
bool end () const
bool last () const
bool operator== (const Iterator &it)
void operator= (Iterator &it)
void operator= (const Iterator &it)
int index () const
T & operator * () const
T * operator-> () const
 operator T * () const
T * pointer () const


Detailed Description

template<class T>
class dolfin::Array< T >::Iterator

Iterator for the Array class. Should be used as follows:

for (Array<T>::Iterator it(array); !it.end(); ++it) { it->...(); }


Constructor & Destructor Documentation

template<class T>
dolfin::Array< T >::Iterator::Iterator  ) 
 

Create an iterator positioned at the end of the array.

template<class T>
dolfin::Array< T >::Iterator::Iterator const Array< T > &  array  ) 
 

Create an iterator positioned at the beginning of the array.

template<class T>
dolfin::Array< T >::Iterator::Iterator const Array< T > &  array,
Index  index
 

Create an iterator positioned at the given position.


Member Function Documentation

template<class T>
bool dolfin::Array< T >::Iterator::end  )  const
 

template<class T>
int dolfin::Array< T >::Iterator::index  )  const
 

template<class T>
bool dolfin::Array< T >::Iterator::last  )  const
 

template<class T>
T & dolfin::Array< T >::Iterator::operator *  )  const
 

template<class T>
dolfin::Array< T >::Iterator::operator T *  )  const
 

template<class T>
Array< T >::Iterator::Iterator & dolfin::Array< T >::Iterator::operator++  ) 
 

template<class T>
Array< T >::Iterator::Iterator & dolfin::Array< T >::Iterator::operator--  ) 
 

template<class T>
T * dolfin::Array< T >::Iterator::operator->  )  const
 

template<class T>
void dolfin::Array< T >::Iterator::operator= const Iterator it  ) 
 

template<class T>
void dolfin::Array< T >::Iterator::operator= Iterator it  ) 
 

template<class T>
bool dolfin::Array< T >::Iterator::operator== const Iterator it  ) 
 

template<class T>
T * dolfin::Array< T >::Iterator::pointer  )  const
 


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


Documentation automatically generated with Doxygen on 10 Sep 2004.