dune-grid  2.2.0
geometrygrid/persistentcontainer.hh
Go to the documentation of this file.
00001 #ifndef DUNE_GEOGRID_PERSISTENTCONTAINER_HH
00002 #define DUNE_GEOGRID_PERSISTENTCONTAINER_HH
00003 
00004 #include <dune/grid/geometrygrid/declaration.hh>
00005 #include <dune/grid/utility/persistentcontainerwrapper.hh>
00006 
00007 namespace Dune
00008 {
00009 
00010   // PersistentContainer for GeometryGrid
00011   // ------------------------------------
00012 
00013   template< class HostGrid, class CoordFunction, class Data, class Allocator >
00014   class PersistentContainer< GeometryGrid< HostGrid, CoordFunction, Allocator >, Data, Allocator >
00015   : public PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, Data, Allocator >
00016   {
00017     typedef PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, Data, Allocator > Base;
00018 
00019   public:
00020     typedef typename Base::Grid Grid;
00021 
00022     PersistentContainer ( const Grid &grid, const int codim, const Allocator &allocator = Allocator() )
00023     : Base( grid, codim, allocator )
00024     {}
00025   };
00026 
00027 } // namespace Dune
00028 
00029 #endif // #ifndef DUNE_GEOGRID_PERSISTENTCONTAINER_HH