dune-grid 2.10
Loading...
Searching...
No Matches
Dune::PersistentContainer< const Grid, T > Class Template Reference

refer PersistentContainer<const Grid> to the implementation of the mutable grid More...

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

Inheritance diagram for Dune::PersistentContainer< const Grid, T >:
Inheritance graph

Public Types

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

Public Member Functions

 PersistentContainer (const typename Base::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 ()
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 ()

Protected Member Functions

const Gridgrid () const
void migrateLevel (int level, const Value &value, std::map< const Grid::LocalIdSet::IdType, T > &data, std::integral_constant< bool, true >)
const const Grid::LocalIdSetidSet () const
template<int codim>
void migrateLevel (int level, const Value &value, Map &data, std::integral_constant< bool, false >)
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 const Grid::LocalIdSet::IdType &id, const Value &value, std::map< const Grid::LocalIdSet::IdType, T > &oldData, std::map< const Grid::LocalIdSet::IdType, T > &newData)

Protected Attributes

const Gridgrid_
int codim_
const const Grid::LocalIdSetidSet_
std::map< const Grid::LocalIdSet::IdType, T > data_

Detailed Description

template<class Grid, class T>
class Dune::PersistentContainer< const Grid, T >

refer PersistentContainer<const Grid> to the implementation of the mutable grid

Member Typedef Documentation

◆ ConstIterator

typedef IteratorWrapper< const Value, typename std::map< const Grid::LocalIdSet::IdType, T >::const_iterator > Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::ConstIterator

◆ Grid

typedef Base::Grid Dune::PersistentContainer< const Grid, T >::Grid

◆ Iterator

typedef IteratorWrapper< Value, typename std::map< const Grid::LocalIdSet::IdType, T >::iterator > Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::Iterator

◆ Size

typedef std::map< const Grid::LocalIdSet::IdType, T >::size_type Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::Size

◆ Value

template<class Grid, class T>
typedef Base::Value Dune::PersistentContainer< const Grid, T >::Value

Constructor & Destructor Documentation

◆ PersistentContainer()

template<class Grid, class T>
Dune::PersistentContainer< const Grid, T >::PersistentContainer ( const typename Base::Grid & grid,
int codim,
const Value & value = Value() )
inline

Member Function Documentation

◆ begin() [1/3]

PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::ConstIterator Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::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]

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

◆ codimension()

int Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::codimension ( ) const
inline

◆ end() [1/3]

PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::ConstIterator Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::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]

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

◆ fill() [1/3]

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

◆ fill() [2/3]

void Dune::PersistentContainerMap< Grid, Grid::LocalIdSet, std::map< Grid::LocalIdSet::IdType, T > >::fill ( const Value & value)
inlineinherited

◆ fill() [3/3]

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

◆ grid()

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

◆ idSet()

const const Grid::LocalIdSet & Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::idSet ( ) const
inlineprotected

◆ migrateEntry()

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

◆ migrateLevel() [1/3]

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

◆ migrateLevel() [2/3]

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

◆ migrateLevel() [3/3]

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< const Grid, const Grid::LocalIdSet, std::map< const Grid::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]

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

◆ operator[]() [1/3]

const Value & Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::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]

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

◆ resize() [1/3]

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

◆ resize() [2/3]

void Dune::PersistentContainerMap< Grid, Grid::LocalIdSet, std::map< Grid::LocalIdSet::IdType, T > >::resize ( const Value & value = Value())
inlineinherited

◆ resize() [3/3]

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

◆ shrinkToFit()

void Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::shrinkToFit ( )
inline

◆ size()

Size Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::size ( ) const
inline

◆ swap()

void Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::swap ( This & other)
inline

Member Data Documentation

◆ codim_

int Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::codim_
protected

◆ data_

std::map< const Grid::LocalIdSet::IdType, T > Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::data_
protected

◆ grid_

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

◆ idSet_

const const Grid::LocalIdSet* Dune::PersistentContainerMap< const Grid, const Grid::LocalIdSet, std::map< const Grid::LocalIdSet::IdType, T > >::idSet_
protected

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