albertagrid/leveliterator.hh

00001 #ifndef DUNE_ALBERTA_LEVELITERATOR_HH
00002 #define DUNE_ALBERTA_LEVELITERATOR_HH
00003 
00004 #include <dune/grid/common/leveliterator.hh>
00005 
00006 #include <dune/grid/albertagrid/treeiterator.hh>
00007 
00008 namespace Dune
00009 {
00010 
00011   // AlbertaGridLevelIterator
00012   // ------------------------
00013 
00015   template< int codim, PartitionIteratorType pitype, class GridImp >
00016   class AlbertaGridLevelIterator
00017   : public AlbertaGridTreeIterator< codim, GridImp, false >
00018   {
00019     typedef AlbertaGridLevelIterator< codim, pitype, GridImp > This;
00020     typedef AlbertaGridTreeIterator< codim, GridImp, false > Base;
00021 
00022   public:  
00023     typedef typename Base::Entity Entity;
00024     typedef typename Base::MarkerVector MarkerVector;
00025 
00027     AlbertaGridLevelIterator ( const GridImp &grid, int level )
00028     : Base( grid, level )
00029     {}
00030 
00032     AlbertaGridLevelIterator ( const GridImp &grid,
00033                                const MarkerVector *vec,
00034                                int level )
00035     : Base( grid, vec, level )
00036     {}
00037 
00039     void increment () 
00040     {
00041       Base::increment();
00042     }
00043   };
00044 
00045 }
00046 
00047 #endif

Generated on Thu Apr 2 10:40:42 2009 for dune-grid by  doxygen 1.5.6