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

MeshIterator.h

Go to the documentation of this file.
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg.
00002 // Licensed under the GNU GPL Version 2.
00003 
00004 #ifndef __MESH_ITERATOR_H
00005 #define __MESH_ITERATOR_H
00006 
00007 #include <dolfin/Array.h>
00008 #include <dolfin/General.h>
00009 
00010 namespace dolfin {
00011   
00012   class Mesh;
00013   class MeshHierarchy;  
00014   
00015   typedef Mesh* MeshPointer;
00016   
00018 
00019   class MeshIterator {
00020   public:
00021     
00023     MeshIterator(const MeshHierarchy& meshs);
00024 
00026     MeshIterator(const MeshHierarchy& meshs, Index index);
00027 
00029     ~MeshIterator();
00030    
00032     MeshIterator& operator++();
00033 
00035     MeshIterator& operator--();
00036 
00038     bool end();
00039 
00041     int index();
00042          
00043     operator MeshPointer() const;
00044     Mesh& operator*() const;
00045     Mesh* operator->() const;
00046 
00047   private:
00048     
00049     Array<Mesh*>::Iterator it;
00050         
00051   };
00052 
00053 }
00054 
00055 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.