dune-grid  2.7.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  {
21  typedef PersistentContainerVector< AlbertaGrid< dim, dimworld >, typename AlbertaGrid< dim, dimworld >::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 } // end namespace Dune
33 
34 #endif // #if HAVE_ALBERTA
35 
36 #endif // #ifndef DUNE_ALU_PERSISTENTCONTAINER_HH
Dune::PersistentContainer::Grid
Base::Grid Grid
Definition: utility/persistentcontainer.hh:24
Dune::PersistentContainer::PersistentContainer
PersistentContainer(const Grid &grid, int codim, const Value &value=Value())
Definition: utility/persistentcontainer.hh:27
Dune::PersistentContainerMap::Grid
G Grid
Definition: persistentcontainermap.hh:28
Dune::AlbertaGrid::HierarchicIndexSet
Traits::HierarchicIndexSet HierarchicIndexSet
type of hierarchic index set
Definition: agrid.hh:187
Dune::PersistentContainerMap< G, G::LocalIdSet, std::map< G::LocalIdSet::IdType, T > >::grid
const Grid & grid() const
Definition: persistentcontainermap.hh:111
persistentcontainervector.hh
Dune::PersistentContainer::Value
Base::Value Value
Definition: utility/persistentcontainer.hh:25
persistentcontainer.hh
Dune::PersistentContainerMap::Value
Map::mapped_type Value
Definition: persistentcontainermap.hh:33
Dune
Include standard header files.
Definition: agrid.hh:58