dune-spgrid  2.7
persistentcontainer.hh
Go to the documentation of this file.
1 #ifndef DUNE_SPGRID_PERSISTENTCONTAINER_HH
2 #define DUNE_SPGRID_PERSISTENTCONTAINER_HH
3 
4 #include <vector>
5 
6 #include <dune/grid/utility/persistentcontainer.hh>
7 #include <dune/grid/utility/persistentcontainervector.hh>
8 
10 
11 namespace Dune
12 {
13 
14  // PersistentContainer for SPGrid
15  // ------------------------------
16 
17  template< class ct, int dim, template< int > class Ref, class Comm, class T >
18  class PersistentContainer< SPGrid< ct, dim, Ref, Comm >, T >
19  : public PersistentContainerVector< SPGrid< ct, dim, Ref, Comm >, typename SPGrid< ct, dim, Ref, Comm >::HierarchicIndexSet, std::vector< T > >
20  {
21  typedef PersistentContainerVector< SPGrid< ct, dim, Ref, Comm >, typename SPGrid< ct, dim, Ref, Comm >::HierarchicIndexSet, std::vector< T > > Base;
22 
23  public:
24  typedef typename Base::Grid Grid;
25  typedef typename Base::Value Value;
26 
27  PersistentContainer ( const Grid &grid, int codim, const Value &value = Value() )
28  : Base( grid.hierarchicIndexSet(), codim, value )
29  {}
30  };
31 
32 } // namespace Dune
33 
34 #endif // #ifndef DUNE_SPGRID_PERSISTENTCONTAINER_HH
Definition: iostream.hh:7
structured, parallel DUNE grid
Definition: grid.hh:136
Base::Value Value
Definition: persistentcontainer.hh:25
PersistentContainer(const Grid &grid, int codim, const Value &value=Value())
Definition: persistentcontainer.hh:27
Base::Grid Grid
Definition: persistentcontainer.hh:24