3#ifndef DUNE_PERSISTENTCONTAINER_HH
4#define DUNE_PERSISTENTCONTAINER_HH
17 template<
class G,
class T >
19 :
public PersistentContainerMap< G, typename G::LocalIdSet, std::map< typename G::LocalIdSet::IdType, T > >
33 template<
class Gr
id,
class T >
53#include <unordered_map>
58 template< G,
class T >
59 class PersistentContainer
60 :
public PersistentContainerMap< G, typename G::LocalIdSet, std::unordered_map< typename G::LocalIdSet::IdType, T > >
62 typedef PersistentContainerMap< G, typename G::LocalIdSet, std::unordered_map< typename G::LocalIdSet::IdType, T > > Base;
69 : Base(
grid, codim,
grid.localIdSet(), value )
80 template<
class G,
class T >
void swap(Dune::PersistentContainer< G, T > &a, Dune::PersistentContainer< G, T > &b)
Definition utility/persistentcontainer.hh:81
Include standard header files.
Definition agrid.hh:60
A class for storing data during an adaptation cycle.
Definition utility/persistentcontainer.hh:20
Base::Value Value
Definition utility/persistentcontainer.hh:25
Base::Grid Grid
Definition utility/persistentcontainer.hh:24
PersistentContainer(const Grid &grid, int codim, const Value &value=Value())
Definition utility/persistentcontainer.hh:27
Base::Value Value
Definition utility/persistentcontainer.hh:39
PersistentContainer(const typename Base::Grid &grid, int codim, const Value &value=Value())
Definition utility/persistentcontainer.hh:41
map-based implementation of the PersistentContainer
Definition persistentcontainermap.hh:22
void swap(This &other)
Definition persistentcontainermap.hh:95
G Grid
Definition persistentcontainermap.hh:33
Map::mapped_type Value
Definition persistentcontainermap.hh:35
const Grid & grid() const
Definition persistentcontainermap.hh:112