dune-grid
2.4.1
|
map-based implementation of the PersistentContainer More...
#include <dune/grid/utility/persistentcontainermap.hh>
Classes | |
class | IteratorWrapper |
struct | Resize |
Public Types | |
typedef G | Grid |
typedef Map::mapped_type | Value |
typedef Map::size_type | Size |
typedef IteratorWrapper< const Value, typename Map::const_iterator > | ConstIterator |
typedef IteratorWrapper< Value, typename Map::iterator > | Iterator |
Public Member Functions | |
PersistentContainerMap (const Grid &grid, int codim, const IdSet &idSet, const Value &value) | |
template<class Entity > | |
const Value & | operator[] (const Entity &entity) const |
template<class Entity > | |
Value & | operator[] (const Entity &entity) |
template<class Entity > | |
const Value & | operator() (const Entity &entity, int subEntity) const |
template<class Entity > | |
Value & | operator() (const Entity &entity, int subEntity) |
Size | size () const |
void | resize (const Value &value=Value()) |
void | shrinkToFit () |
void | fill (const Value &value) |
void | swap (This &other) |
ConstIterator | begin () const |
Iterator | begin () |
ConstIterator | end () const |
Iterator | end () |
int | codimension () const |
Protected Member Functions | |
const Grid & | grid () const |
template<int codim> | |
void | resize (const Value &value) |
template<int codim> | |
void | migrateLevel (int level, const Value &value, Map &data, integral_constant< bool, true >) |
template<int codim> | |
void | migrateLevel (int level, const Value &value, Map &data, integral_constant< bool, false >) |
const IdSet & | idSet () const |
Static Protected Member Functions | |
static void | migrateEntry (const typename IdSet::IdType &id, const Value &value, Map &oldData, Map &newData) |
Protected Attributes | |
const Grid * | grid_ |
int | codim_ |
const IdSet * | idSet_ |
Map | data_ |
map-based implementation of the PersistentContainer
typedef IteratorWrapper< const Value, typename Map::const_iterator > Dune::PersistentContainerMap< G, IdSet, Map >::ConstIterator |
typedef G Dune::PersistentContainerMap< G, IdSet, Map >::Grid |
typedef IteratorWrapper< Value, typename Map::iterator > Dune::PersistentContainerMap< G, IdSet, Map >::Iterator |
typedef Map::size_type Dune::PersistentContainerMap< G, IdSet, Map >::Size |
typedef Map::mapped_type Dune::PersistentContainerMap< G, IdSet, Map >::Value |
|
inline |
|
inline |
References Dune::PersistentContainerMap< G, IdSet, Map >::data_.
Referenced by Dune::PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::begin(), Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::fill(), and Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::swap().
|
inline |
|
inline |
Referenced by Dune::PersistentContainerMap< G, IdSet, Map >::Resize< codim >::apply(), Dune::PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::codimension(), Dune::PersistentContainerMap< G, IdSet, Map >::end(), Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::operator()(), and Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::operator[]().
|
inline |
References Dune::PersistentContainerMap< G, IdSet, Map >::data_.
Referenced by Dune::PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::end(), Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::fill(), Dune::PersistentContainerMap< G, IdSet, Map >::migrateLevel(), and Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::swap().
|
inline |
References Dune::PersistentContainerMap< G, IdSet, Map >::codimension(), Dune::PersistentContainerMap< G, IdSet, Map >::data_, Dune::PersistentContainerMap< G, IdSet, Map >::grid(), Dune::PersistentContainerMap< G, IdSet, Map >::migrateLevel(), and Dune::PersistentContainerMap< G, IdSet, Map >::resize().
|
inline |
|
inlineprotected |
|
inlineprotected |
Referenced by Dune::PersistentContainerMap< G, IdSet, Map >::migrateLevel(), Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::operator()(), and Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::operator[]().
|
inlinestaticprotected |
|
inlineprotected |
References Dune::PersistentContainerMap< G, IdSet, Map >::data_, Dune::PersistentContainerMap< G, IdSet, Map >::end(), Dune::PersistentContainerMap< G, IdSet, Map >::grid(), Dune::IdSet< GridImp, IdSetImp, IdTypeImp >::id(), Dune::PersistentContainerMap< G, IdSet, Map >::idSet(), and Dune::PersistentContainerMap< G, IdSet, Map >::migrateEntry().
Referenced by Dune::PersistentContainerMap< G, IdSet, Map >::end(), and Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::grid().
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by Dune::GeoGrid::CoordCache< HostGrid, RangeVector >::adapt(), Dune::PersistentContainerMap< G, IdSet, Map >::end(), Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::grid(), Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::PersistentContainerMap(), and Dune::PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::resize().
|
protected |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
Referenced by Dune::PersistentContainerMap< G, IdSet, Map >::begin(), Dune::PersistentContainerMap< G, IdSet, Map >::end(), Dune::PersistentContainerMap< G, IdSet, Map >::migrateLevel(), Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::operator()(), Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::operator[](), Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::size(), and Dune::PersistentContainerMap< HostGrid, HostGrid::LocalIdSet, std::map< HostGrid::LocalIdSet::IdType, RangeVector > >::swap().
|
protected |
|
protected |