dune-grid 2.10
Loading...
Searching...
No Matches
Dune::PersistentContainer< GeometryGrid< HostGrid, CoordFunction, Allocator >, T > Class Template Reference

#include <dune/grid/geometrygrid/persistentcontainer.hh>

Inheritance diagram for Dune::PersistentContainer< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >:
Inheritance graph

Public Types

typedef Base::Grid Grid
typedef Base::Value Value
typedef std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T >::size_type Size
typedef IteratorWrapper< const Value, typename std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T >::const_iterator > ConstIterator
typedef IteratorWrapper< Value, typename std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T >::iterator > Iterator

Public Member Functions

 PersistentContainer (const Grid &grid, int codim, const Value &value=Value())
const Valueoperator[] (const Entity &entity) const
const Valueoperator() (const Entity &entity, int subEntity) const
Size size () const
void resize (const Value &value=Value())
void shrinkToFit ()
void fill (const Value &value)
void swap (This &other)
ConstIterator begin () const
ConstIterator end () const
int codimension () const
template<class Entity>
Valueoperator[] (const Entity &entity)
template<class Entity>
Valueoperator() (const Entity &entity, int subEntity)
void resize (const Value &value=Value())
void fill (const Value &value)
Iterator begin ()
Iterator end ()
Valueoperator[] (const Entity &entity)
Valueoperator() (const Entity &entity, int subEntity)
void swap (This &other)
Iterator begin ()
Iterator end ()

Protected Member Functions

const Gridgrid () const
void migrateLevel (int level, const Value &value, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > &data, std::integral_constant< bool, true >)
const GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet & idSet () const
template<int codim>
void migrateLevel (int level, const Value &value, Map &data, std::integral_constant< bool, false >)

Static Protected Member Functions

static void migrateEntry (const typename GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType &id, const Value &value, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > &oldData, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > &newData)

Protected Attributes

const Gridgrid_
int codim_
const GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet * idSet_
std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > data_
PersistentContainer< HostGrid, T > hostContainer_

Member Typedef Documentation

◆ ConstIterator

typedef IteratorWrapper< const Value, typename std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T >::const_iterator > Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::ConstIterator

◆ Grid

template<class HostGrid, class CoordFunction, class Allocator, class T>
typedef Base::Grid Dune::PersistentContainer< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::Grid

◆ Iterator

typedef IteratorWrapper< Value, typename std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T >::iterator > Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::Iterator

◆ Size

typedef std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T >::size_type Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::Size

◆ Value

template<class HostGrid, class CoordFunction, class Allocator, class T>
typedef Base::Value Dune::PersistentContainer< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::Value

Constructor & Destructor Documentation

◆ PersistentContainer()

template<class HostGrid, class CoordFunction, class Allocator, class T>
Dune::PersistentContainer< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::PersistentContainer ( const Grid & grid,
int codim,
const Value & value = Value() )
inline

Member Function Documentation

◆ begin() [1/3]

PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::ConstIterator Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::begin ( ) const
inline

◆ begin() [2/3]

template<class G, class IdSet, class Map>
PersistentContainerMap< G, IdSet, Map >::Iterator Dune::PersistentContainerMap< G, IdSet, Map >::begin ( )
inlineinherited

◆ begin() [3/3]

Iterator Dune::PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::begin ( )
inlineinherited

◆ codimension()

int Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::codimension ( ) const
inline

◆ end() [1/3]

PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::ConstIterator Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::end ( ) const
inline

◆ end() [2/3]

template<class G, class IdSet, class Map>
PersistentContainerMap< G, IdSet, Map >::Iterator Dune::PersistentContainerMap< G, IdSet, Map >::end ( )
inlineinherited

◆ end() [3/3]

Iterator Dune::PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::end ( )
inlineinherited

◆ fill() [1/2]

void Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::fill ( const Value & value)
inline

◆ fill() [2/2]

template<class G, class IdSet, class Map>
void Dune::PersistentContainerMap< G, IdSet, Map >::fill ( const Value & value)
inlineinherited

◆ grid()

const Grid & Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::grid ( ) const
inlineprotected

◆ idSet()

const GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet & Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::idSet ( ) const
inlineprotected

◆ migrateEntry()

void Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::migrateEntry ( const typename GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType & id,
const Value & value,
std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > & oldData,
std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > & newData )
inlinestaticprotected

◆ migrateLevel() [1/2]

void Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::migrateLevel ( int level,
const Value & value,
std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > & data,
std::integral_constant< bool, true >  )
inlineprotected

◆ migrateLevel() [2/2]

template<class G, class IdSet, class Map>
template<int codim>
void Dune::PersistentContainerMap< G, IdSet, Map >::migrateLevel ( int level,
const Value & value,
Map & data,
std::integral_constant< bool, false >  )
inlineprotectedinherited

◆ operator()() [1/3]

const Value & Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::operator() ( const Entity & entity,
int subEntity ) const
inline

◆ operator()() [2/3]

template<class G, class IdSet, class Map>
template<class Entity>
Value & Dune::PersistentContainerMap< G, IdSet, Map >::operator() ( const Entity & entity,
int subEntity )
inlineinherited

◆ operator()() [3/3]

Value & Dune::PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::operator() ( const Entity & entity,
int subEntity )
inlineinherited

◆ operator[]() [1/3]

const Value & Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::operator[] ( const Entity & entity) const
inline

◆ operator[]() [2/3]

template<class G, class IdSet, class Map>
template<class Entity>
Value & Dune::PersistentContainerMap< G, IdSet, Map >::operator[] ( const Entity & entity)
inlineinherited

◆ operator[]() [3/3]

Value & Dune::PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::operator[] ( const Entity & entity)
inlineinherited

◆ resize() [1/2]

void Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::resize ( const Value & value = Value())
inline

◆ resize() [2/2]

template<class G, class IdSet, class Map>
void Dune::PersistentContainerMap< G, IdSet, Map >::resize ( const Value & value = Value())
inlineinherited

◆ shrinkToFit()

void Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::shrinkToFit ( )
inline

◆ size()

Size Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::size ( ) const
inline

◆ swap() [1/2]

void Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::swap ( This & other)
inline

◆ swap() [2/2]

void Dune::PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::swap ( This & other)
inlineinherited

Member Data Documentation

◆ codim_

int Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::codim_
protected

◆ data_

std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::data_
protected

◆ grid_

const Grid* Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::grid_
protected

◆ hostContainer_

PersistentContainer< HostGrid, T > Dune::PersistentContainerWrapper< GeometryGrid< HostGrid, CoordFunction, Allocator >, T >::hostContainer_
protectedinherited

◆ idSet_

const GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet* Dune::PersistentContainerMap< GeometryGrid< HostGrid, CoordFunction, Allocator >, GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet, std::map< GeometryGrid< HostGrid, CoordFunction, Allocator >::LocalIdSet::IdType, T > >::idSet_
protected

The documentation for this class was generated from the following file: