1 #ifndef DUNE_PERSISTENTCONTAINERWRAPPER_HH
2 #define DUNE_PERSISTENTCONTAINERWRAPPER_HH
13 template<
class G,
class T,
class Allocator >
18 typedef Dune::HostGridAccess< G > HostGridAccess;
20 typedef typename HostGridAccess::HostGrid HostGrid;
31 : hostContainer_( HostGridAccess::hostGrid( grid ), codim, allocator )
34 template<
class Entity >
37 return hostContainer_[ HostGridAccess::hostEntity( entity ) ];
40 template<
class Entity >
43 return hostContainer_[ HostGridAccess::hostEntity( entity ) ];
46 template<
class Entity >
49 return hostContainer_( HostGridAccess::hostEntity( entity ), subEntity );
52 template<
class Entity >
55 return hostContainer_( HostGridAccess::hostEntity( entity ), subEntity );
64 size_t size ()
const {
return hostContainer_.
size(); }
71 PersistentContainerHostGrid hostContainer_ ;
76 #endif // #ifndef DUNE_PERSISTENTCONTAINERWRAPPER_HH