Dune Core Modules (2.9.1)

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