dune-grid  2.5.0
albertagrid/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_ALBERTA_PERSISTENTCONTAINER_HH
4 #define DUNE_ALBERTA_PERSISTENTCONTAINER_HH
5 
7 
8 #if HAVE_ALBERTA
10 
11 namespace Dune
12 {
13 
14  // PersistentContainer for AlbertaGrid
15  // -----------------------------------
16 
17  template< int dim, int dimworld, class T >
18  class PersistentContainer< AlbertaGrid< dim, dimworld >, T >
19  : public PersistentContainerVector< AlbertaGrid< dim, dimworld >, typename AlbertaGrid< dim, dimworld >::HierarchicIndexSet, std::vector< T > >
20  {
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 } // end namespace Dune
33 
34 #endif // #if HAVE_ALBERTA
35 
36 #endif // #ifndef DUNE_ALU_PERSISTENTCONTAINER_HH
G Grid
Definition: persistentcontainervector.hh:53
Base::Grid Grid
Definition: albertagrid/persistentcontainer.hh:24
Definition: albertagrid/gridfamily.hh:51
vector-based implementation of the PersistentContainer
Definition: persistentcontainervector.hh:48
Base::Value Value
Definition: albertagrid/persistentcontainer.hh:25
Vector::value_type Value
Definition: persistentcontainervector.hh:55
[ provides Dune::Grid ]
Definition: agrid.hh:137
Include standard header files.
Definition: agrid.hh:59
PersistentContainer(const Grid &grid, int codim, const Value &value=Value())
Definition: albertagrid/persistentcontainer.hh:27
A class for storing data during an adaptation cycle.
Definition: utility/persistentcontainer.hh:18
const Grid & grid() const
Definition: persistentcontainermap.hh:112
Base::Value Value
Definition: utility/persistentcontainer.hh:25