Dune Core Modules (2.8.0)

persistentcontainer.hh
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
6#include <dune/grid/geometrygrid/declaration.hh>
7#include <dune/grid/utility/persistentcontainer.hh>
8#include <dune/grid/utility/persistentcontainerwrapper.hh>
9
10namespace 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 {
20 typedef PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T > Base;
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 namespace.
Definition: alignedallocator.hh:11
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 22, 23:30, 2024)