albertagrid/leafiterator.hh

00001 #ifndef DUNE_ALBERTA_LEAFITERATOR_HH
00002 #define DUNE_ALBERTA_LEAFITERATOR_HH
00003 
00004 #include <dune/grid/common/leafiterator.hh>
00005 
00006 #include <dune/grid/albertagrid/treeiterator.hh>
00007 
00008 namespace Dune
00009 {
00010 
00011   // AlbertaGridLeafIterator
00012   // -----------------------
00013 
00015   template< int codim, PartitionIteratorType pitype, class GridImp >
00016   class AlbertaGridLeafIterator
00017   : public AlbertaGridTreeIterator< codim, GridImp, true >
00018   {
00019     typedef AlbertaGridLeafIterator< codim, pitype, GridImp > This;
00020     typedef AlbertaGridTreeIterator< codim, GridImp, true > Base;
00021 
00022   public:  
00023     typedef typename Base::Entity Entity;
00024     typedef typename Base::MarkerVector MarkerVector;
00025 
00027     AlbertaGridLeafIterator ( const GridImp &grid, int level )
00028     : Base( grid, level )
00029     {}
00030 
00032     AlbertaGridLeafIterator ( 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 Tue Mar 3 12:06:52 2009 for dune-grid by  doxygen 1.5.6