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

dolfin::MeshIterator Class Reference

Iterator for the meshs in a mesh hierarchy. More...

#include <MeshIterator.h>

Collaboration diagram for dolfin::MeshIterator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MeshIterator (const MeshHierarchy &meshs)
 Create an iterator positioned at the top (coarsest) mesh.

 MeshIterator (const MeshHierarchy &meshs, Index index)
 Create an iterator positioned at the given position.

 ~MeshIterator ()
 Destructor.

MeshIteratoroperator++ ()
 Step to next mesh.

MeshIteratoroperator-- ()
 Step to previous mesh.

bool end ()
 Check if iterator has reached the first (or last) mesh.

int index ()
 Return index for current position.

 operator MeshPointer () const
Meshoperator * () const
Meshoperator-> () const

Detailed Description

Iterator for the meshs in a mesh hierarchy.


Constructor & Destructor Documentation

MeshIterator::MeshIterator const MeshHierarchy meshs  ) 
 

Create an iterator positioned at the top (coarsest) mesh.

MeshIterator::MeshIterator const MeshHierarchy meshs,
Index  index
 

Create an iterator positioned at the given position.

MeshIterator::~MeshIterator  ) 
 

Destructor.


Member Function Documentation

bool MeshIterator::end  ) 
 

Check if iterator has reached the first (or last) mesh.

int MeshIterator::index  ) 
 

Return index for current position.

Mesh & MeshIterator::operator *  )  const
 

MeshIterator::operator MeshPointer  )  const
 

MeshIterator & MeshIterator::operator++  ) 
 

Step to next mesh.

MeshIterator & MeshIterator::operator--  ) 
 

Step to previous mesh.

Mesh * MeshIterator::operator->  )  const
 


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


Documentation automatically generated with Doxygen on 10 Sep 2004.