dune-grid 2.9.0
geometrygrid/persistentcontainer.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4// vi: set et ts=4 sw=2 sts=2:
5#ifndef DUNE_GEOGRID_PERSISTENTCONTAINER_HH
6#define DUNE_GEOGRID_PERSISTENTCONTAINER_HH
7
11
12namespace Dune
13{
14
15 // PersistentContainer for GeometryGrid
16 // ------------------------------------
17
18 template< class HostGrid, class CoordFunction, class Allocator, class T >
19 class PersistentContainer< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >
20 : public PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >
21 {
23
24 public:
25 typedef typename Base::Grid Grid;
26 typedef typename Base::Value Value;
27
28 PersistentContainer ( const Grid &grid, int codim, const Value &value = Value() )
29 : Base( grid, codim, value )
30 {}
31 };
32
33} // namespace Dune
34
35#endif // #ifndef DUNE_GEOGRID_PERSISTENTCONTAINER_HH
Include standard header files.
Definition: agrid.hh:60
grid wrapper replacing the geometries
Definition: geometrygrid/grid.hh:86
Base::Value Value
Definition: geometrygrid/persistentcontainer.hh:26
Base::Grid Grid
Definition: geometrygrid/persistentcontainer.hh:25
PersistentContainer(const Grid &grid, int codim, const Value &value=Value())
Definition: geometrygrid/persistentcontainer.hh:28
A class for storing data during an adaptation cycle.
Definition: utility/persistentcontainer.hh:22
Base::Value Value
Definition: utility/persistentcontainer.hh:27
const Grid & grid() const
Definition: persistentcontainermap.hh:114
Definition: persistentcontainerwrapper.hh:19
PersistentContainer< HostGrid, T >::Value Value
Definition: persistentcontainerwrapper.hh:30