Go to the documentation of this file.
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 >
88 #endif // #ifndef DUNE_PERSISTENTCONTAINER_HH
PersistentContainer(const Grid &grid, int codim, const Value &value=Value())
Definition: utility/persistentcontainer.hh:27
Include standard header files.
Definition: agrid.hh:59
void swap(This &other)
Definition: persistentcontainermap.hh:95
PersistentContainer(const typename Base::Grid &grid, int codim, const Value &value=Value())
Definition: utility/persistentcontainer.hh:41
G Grid
Definition: persistentcontainermap.hh:30
A class for storing data during an adaptation cycle.
Definition: utility/persistentcontainer.hh:18
const Grid & grid() const
Definition: persistentcontainermap.hh:112
Grid abstract base class.
Definition: common/grid.hh:373
Base::Grid Grid
Definition: utility/persistentcontainer.hh:24
void swap(Dune::PersistentContainer< G, T > &a, Dune::PersistentContainer< G, T > &b)
Definition: utility/persistentcontainer.hh:81
map-based implementation of the PersistentContainer
Definition: persistentcontainermap.hh:21
Map::mapped_type Value
Definition: persistentcontainermap.hh:35
Base::Value Value
Definition: utility/persistentcontainer.hh:25
Base::Value Value
Definition: utility/persistentcontainer.hh:39