dune-grid 2.9.0
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
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 Map::size_type Size
 
typedef IteratorWrapper< const Value, typename Map::const_iterator > ConstIterator
 
typedef IteratorWrapper< Value, typename Map::iterator > Iterator
 

Public Member Functions

 PersistentContainer (const typename Base::Grid &grid, int codim, const Value &value=Value())
 
const Valueoperator[] (const Entity &entity) const
 
Valueoperator[] (const Entity &entity)
 
const Valueoperator() (const Entity &entity, int subEntity) const
 
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

void resize (const Value &value)
 
const Gridgrid () const
 
void migrateLevel (int level, const Value &value, std::map< G::LocalIdSet::IdType, T > &data, std::integral_constant< bool, true >)
 
void migrateLevel (int level, const Value &value, std::map< G::LocalIdSet::IdType, T > &data, std::integral_constant< bool, false >)
 
const G::LocalIdSet & idSet () const
 

Static Protected Member Functions

static void migrateEntry (const typename IdSet::IdType &id, const Value &value, std::map< G::LocalIdSet::IdType, T > &oldData, std::map< G::LocalIdSet::IdType, T > &newData)
 

Protected Attributes

const Gridgrid_
 
int codim_
 
const G::LocalIdSet * idSet_
 
std::map< G::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 Map::const_iterator > Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::ConstIterator
inherited

◆ Grid

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

◆ Iterator

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

◆ Size

typedef Map::size_type Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::Size
inherited

◆ 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/2]

PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::Iterator Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::begin
inlineinherited

◆ begin() [2/2]

PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::ConstIterator Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::begin
inlineinherited

◆ codimension()

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

◆ end() [1/2]

PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::Iterator Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::end
inlineinherited

◆ end() [2/2]

PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::ConstIterator Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::end
inlineinherited

◆ fill()

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

◆ grid()

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

◆ idSet()

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

◆ migrateEntry()

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

◆ migrateLevel() [1/2]

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

◆ migrateLevel() [2/2]

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

◆ operator()() [1/2]

Value & Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::operator() ( const Entity entity,
int  subEntity 
)
inlineinherited

◆ operator()() [2/2]

const Value & Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::operator() ( const Entity entity,
int  subEntity 
) const
inlineinherited

◆ operator[]() [1/2]

Value & Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::operator[] ( const Entity entity)
inlineinherited

◆ operator[]() [2/2]

const Value & Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::operator[] ( const Entity entity) const
inlineinherited

◆ resize() [1/2]

void Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::resize ( const Value value)
protectedinherited

◆ resize() [2/2]

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

◆ shrinkToFit()

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

◆ size()

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

◆ swap()

void Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::swap ( This other)
inlineinherited

Member Data Documentation

◆ codim_

int Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::codim_
protectedinherited

◆ data_

std::map< G::LocalIdSet::IdType, T > Dune::PersistentContainerMap< Grid , G::LocalIdSet , std::map< G::LocalIdSet::IdType, T > >::data_
protectedinherited

◆ grid_

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

◆ idSet_

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

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