dune-grid  2.7.0
geometrygrid/persistentcontainer.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 #ifndef DUNE_GEOGRID_PERSISTENTCONTAINER_HH
4 #define DUNE_GEOGRID_PERSISTENTCONTAINER_HH
5 
9 
10 namespace Dune
11 {
12 
13  // PersistentContainer for GeometryGrid
14  // ------------------------------------
15 
16  template< class HostGrid, class CoordFunction, class Allocator, class T >
17  class PersistentContainer< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >
18  : public PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >
19  {
21 
22  public:
23  typedef typename Base::Grid Grid;
24  typedef typename Base::Value Value;
25 
26  PersistentContainer ( const Grid &grid, int codim, const Value &value = Value() )
27  : Base( grid, codim, value )
28  {}
29  };
30 
31 } // namespace Dune
32 
33 #endif // #ifndef DUNE_GEOGRID_PERSISTENTCONTAINER_HH
Dune::PersistentContainer
A class for storing data during an adaptation cycle.
Definition: utility/persistentcontainer.hh:18
Dune::PersistentContainer< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::Value
Base::Value Value
Definition: geometrygrid/persistentcontainer.hh:24
Dune::PersistentContainerWrapper
Definition: persistentcontainerwrapper.hh:16
Dune::PersistentContainerMap< G, G::LocalIdSet, std::map< G::LocalIdSet::IdType, T > >::grid
const Grid & grid() const
Definition: persistentcontainermap.hh:111
Dune::PersistentContainer< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::PersistentContainer
PersistentContainer(const Grid &grid, int codim, const Value &value=Value())
Definition: geometrygrid/persistentcontainer.hh:26
Dune::GeometryGrid
grid wrapper replacing the geometries
Definition: declaration.hh:10
persistentcontainerwrapper.hh
declaration.hh
Dune::PersistentContainer::Value
Base::Value Value
Definition: utility/persistentcontainer.hh:25
Dune::PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::Value
PersistentContainer< HostGrid, T >::Value Value
Definition: persistentcontainerwrapper.hh:28
Dune::PersistentContainer< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::Grid
Base::Grid Grid
Definition: geometrygrid/persistentcontainer.hh:23
persistentcontainer.hh
Dune
Include standard header files.
Definition: agrid.hh:58