5#ifndef DUNE_PERSISTENTCONTAINER_HH
6#define DUNE_PERSISTENTCONTAINER_HH
19 template<
class G,
class T >
21 :
public PersistentContainerMap< G, typename G::LocalIdSet, std::map< typename G::LocalIdSet::IdType, T > >
35 template<
class Gr
id,
class T >
55#include <unordered_map>
60 template< G,
class T >
61 class PersistentContainer
62 :
public PersistentContainerMap< G, typename G::LocalIdSet, std::unordered_map< typename G::LocalIdSet::IdType, T > >
64 typedef PersistentContainerMap< G, typename G::LocalIdSet, std::unordered_map< typename G::LocalIdSet::IdType, T > > Base;
71 : Base(
grid, codim,
grid.localIdSet(), value )
82 template<
class G,
class T >
void swap(Dune::PersistentContainer< G, T > &a, Dune::PersistentContainer< G, T > &b)
Definition: utility/persistentcontainer.hh:83
Include standard header files.
Definition: agrid.hh:60
A class for storing data during an adaptation cycle.
Definition: utility/persistentcontainer.hh:22
Base::Value Value
Definition: utility/persistentcontainer.hh:27
Base::Grid Grid
Definition: utility/persistentcontainer.hh:26
PersistentContainer(const Grid &grid, int codim, const Value &value=Value())
Definition: utility/persistentcontainer.hh:29
Base::Value Value
Definition: utility/persistentcontainer.hh:41
PersistentContainer(const typename Base::Grid &grid, int codim, const Value &value=Value())
Definition: utility/persistentcontainer.hh:43
map-based implementation of the PersistentContainer
Definition: persistentcontainermap.hh:26
void swap(This &other)
Definition: persistentcontainermap.hh:97
G Grid
Definition: persistentcontainermap.hh:34
Map::mapped_type Value
Definition: persistentcontainermap.hh:36
const Grid & grid() const
Definition: persistentcontainermap.hh:114