dune-grid 2.9.0
Classes | Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Dune::PersistentContainerMap< G, IdSet, Map > Class Template Reference

map-based implementation of the PersistentContainer More...

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

Inheritance diagram for Dune::PersistentContainerMap< G, IdSet, Map >:
Inheritance graph

Classes

class  IteratorWrapper
 

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 Valueoperator[] (const Entity &entity) const
 
template<class Entity >
Valueoperator[] (const Entity &entity)
 
template<class Entity >
const Valueoperator() (const Entity &entity, int subEntity) const
 
template<class Entity >
Valueoperator() (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 Gridgrid () const
 
template<int codim>
void resize (const Value &value)
 
template<int codim>
void migrateLevel (int level, const Value &value, Map &data, std::integral_constant< bool, true >)
 
template<int codim>
void migrateLevel (int level, const Value &value, Map &data, std::integral_constant< bool, false >)
 
const IdSetidSet () const
 

Static Protected Member Functions

static void migrateEntry (const typename IdSet::IdType &id, const Value &value, Map &oldData, Map &newData)
 

Protected Attributes

const Gridgrid_
 
int codim_
 
const IdSetidSet_
 
Map data_
 

Detailed Description

template<class G, class IdSet, class Map>
class Dune::PersistentContainerMap< G, IdSet, Map >

map-based implementation of the PersistentContainer

Member Typedef Documentation

◆ ConstIterator

template<class G , class IdSet , class Map >
typedef IteratorWrapper< const Value, typename Map::const_iterator > Dune::PersistentContainerMap< G, IdSet, Map >::ConstIterator

◆ Grid

template<class G , class IdSet , class Map >
typedef G Dune::PersistentContainerMap< G, IdSet, Map >::Grid

◆ Iterator

template<class G , class IdSet , class Map >
typedef IteratorWrapper< Value, typename Map::iterator > Dune::PersistentContainerMap< G, IdSet, Map >::Iterator

◆ Size

template<class G , class IdSet , class Map >
typedef Map::size_type Dune::PersistentContainerMap< G, IdSet, Map >::Size

◆ Value

template<class G , class IdSet , class Map >
typedef Map::mapped_type Dune::PersistentContainerMap< G, IdSet, Map >::Value

Constructor & Destructor Documentation

◆ PersistentContainerMap()

template<class G , class IdSet , class Map >
Dune::PersistentContainerMap< G, IdSet, Map >::PersistentContainerMap ( const Grid grid,
int  codim,
const IdSet idSet,
const Value value 
)
inline

Member Function Documentation

◆ begin() [1/2]

template<class G , class IdSet , class Map >
PersistentContainerMap< G, IdSet, Map >::Iterator Dune::PersistentContainerMap< G, IdSet, Map >::begin
inline

◆ begin() [2/2]

template<class G , class IdSet , class Map >
PersistentContainerMap< G, IdSet, Map >::ConstIterator Dune::PersistentContainerMap< G, IdSet, Map >::begin
inline

◆ codimension()

template<class G , class IdSet , class Map >
int Dune::PersistentContainerMap< G, IdSet, Map >::codimension ( ) const
inline

◆ end() [1/2]

template<class G , class IdSet , class Map >
PersistentContainerMap< G, IdSet, Map >::Iterator Dune::PersistentContainerMap< G, IdSet, Map >::end
inline

◆ end() [2/2]

template<class G , class IdSet , class Map >
PersistentContainerMap< G, IdSet, Map >::ConstIterator Dune::PersistentContainerMap< G, IdSet, Map >::end
inline

◆ fill()

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

◆ grid()

template<class G , class IdSet , class Map >
const Grid & Dune::PersistentContainerMap< G, IdSet, Map >::grid ( ) const
inlineprotected

◆ idSet()

template<class G , class IdSet , class Map >
const IdSet & Dune::PersistentContainerMap< G, IdSet, Map >::idSet ( ) const
inlineprotected

◆ migrateEntry()

template<class G , class IdSet , class Map >
void Dune::PersistentContainerMap< G, IdSet, Map >::migrateEntry ( const typename IdSet::IdType id,
const Value value,
Map &  oldData,
Map &  newData 
)
inlinestaticprotected

◆ migrateLevel() [1/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 >   
)
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, true >   
)
inlineprotected

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ resize() [1/2]

template<class G , class IdSet , class Map >
template<int codim>
void Dune::PersistentContainerMap< G, IdSet, Map >::resize ( const Value value)
protected

◆ resize() [2/2]

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

◆ shrinkToFit()

template<class G , class IdSet , class Map >
void Dune::PersistentContainerMap< G, IdSet, Map >::shrinkToFit ( )
inline

◆ size()

template<class G , class IdSet , class Map >
Size Dune::PersistentContainerMap< G, IdSet, Map >::size ( ) const
inline

◆ swap()

template<class G , class IdSet , class Map >
void Dune::PersistentContainerMap< G, IdSet, Map >::swap ( This other)
inline

Member Data Documentation

◆ codim_

template<class G , class IdSet , class Map >
int Dune::PersistentContainerMap< G, IdSet, Map >::codim_
protected

◆ data_

template<class G , class IdSet , class Map >
Map Dune::PersistentContainerMap< G, IdSet, Map >::data_
protected

◆ grid_

template<class G , class IdSet , class Map >
const Grid* Dune::PersistentContainerMap< G, IdSet, Map >::grid_
protected

◆ idSet_

template<class G , class IdSet , class Map >
const IdSet* Dune::PersistentContainerMap< G, IdSet, Map >::idSet_
protected

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