1 #ifndef DUNE_ALU_PERSISTENTCONTAINER_HH
2 #define DUNE_ALU_PERSISTENTCONTAINER_HH
13 template<
int dim,
int dimworld,
class Data,
class Allocator >
14 class PersistentContainer< ALUConformGrid< dim, dimworld >, Data, Allocator >
15 :
public PersistentContainerVector< ALUConformGrid< dim, dimworld >,
16 typename ALUConformGrid< dim, dimworld >::HierarchicIndexSet,
17 std::vector<Data,Allocator> >
20 typedef ALUConformGrid< dim, dimworld >
GridType;
22 typedef PersistentContainerVector< GridType, typename GridType::HierarchicIndexSet, std::vector<Data,Allocator> >
BaseType;
28 :
BaseType( grid, codim, grid.hierarchicIndexSet(), 1.1, allocator )
32 template<
int dim,
int dimworld,
class Data,
class Allocator >
33 class PersistentContainer< ALUCubeGrid< dim, dimworld >, Data, Allocator >
34 :
public PersistentContainerVector< ALUCubeGrid< dim, dimworld >,
35 typename ALUCubeGrid< dim, dimworld >::HierarchicIndexSet,
36 std::vector<Data,Allocator> >
39 typedef ALUCubeGrid< dim, dimworld >
GridType;
41 typedef PersistentContainerVector< GridType, typename GridType::HierarchicIndexSet, std::vector<Data,Allocator> >
BaseType;
47 :
BaseType( grid, codim, grid.hierarchicIndexSet(), 1.1, allocator )
51 template<
int dim,
int dimworld,
class Data,
class Allocator >
52 class PersistentContainer< ALUSimplexGrid< dim, dimworld >, Data, Allocator >
53 :
public PersistentContainerVector< ALUSimplexGrid< dim, dimworld >,
54 typename ALUSimplexGrid< dim, dimworld >::HierarchicIndexSet,
55 std::vector<Data,Allocator> >
58 typedef ALUSimplexGrid< dim, dimworld >
GridType;
60 typedef PersistentContainerVector< GridType, typename GridType::HierarchicIndexSet, std::vector<Data,Allocator> >
BaseType;
66 :
BaseType( grid, codim, grid.hierarchicIndexSet(), 1.1, allocator )
71 class Data,
class Allocator >
72 class PersistentContainer< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, Data, Allocator >
73 :
public PersistentContainerVector< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >,
74 typename ALUGrid< dim, dimworld, eltype, refinementtype, Comm >::HierarchicIndexSet,
75 std::vector<Data,Allocator> >
78 typedef ALUGrid< dim, dimworld, eltype, refinementtype, Comm >
GridType;
80 typedef PersistentContainerVector< GridType, typename GridType::HierarchicIndexSet, std::vector<Data,Allocator> >
BaseType;
86 :
BaseType( grid, codim, grid.hierarchicIndexSet(), 1.1, allocator )
90 template<
int dim,
int dimworld, ALU2DSPACE ElementType elType>
94 template<
int dim,
int dimworld, ALU2DSPACE ElementType elType,
class Data,
class Allocator >
95 class PersistentContainer< ALU2dGrid< dim, dimworld, elType >, Data, Allocator >
96 :
public PersistentContainerVector< ALU2dGrid< dim, dimworld, elType >,
97 typename ALU2dGrid< dim, dimworld, elType >::HierarchicIndexSet,
98 std::vector<Data,Allocator> >
101 typedef ALU2dGrid< dim, dimworld, elType >
GridType;
103 typedef PersistentContainerVector< GridType, typename GridType::HierarchicIndexSet, std::vector<Data,Allocator> >
BaseType;
109 :
BaseType( grid, codim, grid.hierarchicIndexSet(), 1.1, allocator )
113 template< ALU3dGr
idElementType elType,
class Comm,
class Data,
class Allocator >
114 class PersistentContainer< ALU3dGrid< elType, Comm >, Data, Allocator >
115 :
public PersistentContainerVector< ALU3dGrid< elType, Comm >,
116 typename ALU3dGrid< elType, Comm >::HierarchicIndexSet,
117 std::vector<Data,Allocator> >
120 typedef ALU3dGrid< elType, Comm >
GridType;
122 typedef PersistentContainerVector< GridType, typename GridType::HierarchicIndexSet, std::vector<Data,Allocator> >
BaseType;
125 using BaseType :: index_;
132 :
BaseType( grid, codim, grid.hierarchicIndexSet(), 1.1, allocator )
137 const Data& getData (
const size_t idx )
const
139 assert( idx <
data_.size() );
147 #endif // end DUNE_ALU_PERSISTENTCONTAINER_HH