dune-grid  2.4.1
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 std::map
< Grid::LocalIdSet::IdType, T >
::size_type 
Size
 
typedef IteratorWrapper< const
Value, typename std::map
< Grid::LocalIdSet::IdType, T >
::const_iterator > 
ConstIterator
 
typedef IteratorWrapper< Value,
typename std::map
< 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
 
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< Grid::LocalIdSet::IdType, T > &data, integral_constant< bool, true >)
 
void migrateLevel (int level, const Value &value, std::map< Grid::LocalIdSet::IdType, T > &data, integral_constant< bool, false >)
 
const Grid::LocalIdSetidSet () const
 

Static Protected Member Functions

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

Protected Attributes

const Gridgrid_
 
int codim_
 
const Grid::LocalIdSetidSet_
 
std::map
< 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

typedef IteratorWrapper< const Value, typename std::map< Grid::LocalIdSet::IdType, T > ::const_iterator > Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::ConstIterator
inherited
typedef Base::Grid Dune::PersistentContainer< Grid , T >::Grid
inherited
typedef IteratorWrapper< Value, typename std::map< Grid::LocalIdSet::IdType, T > ::iterator > Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::Iterator
inherited
typedef std::map< Grid::LocalIdSet::IdType, T > ::size_type Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::Size
inherited
template<class Grid , class T >
typedef Base::Value Dune::PersistentContainer< const Grid, T >::Value

Constructor & Destructor Documentation

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

ConstIterator Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::begin ( ) const
inherited
Iterator Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::begin ( )
inherited
int Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::codimension ( ) const
inlineinherited
ConstIterator Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::end ( ) const
inherited
Iterator Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::end ( )
inherited
void Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::fill ( const Value value)
inlineinherited
const Grid& Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::grid ( ) const
inlineprotectedinherited
const Grid::LocalIdSet & Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::idSet ( ) const
inlineprotectedinherited
static void Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::migrateEntry ( const typename Grid::LocalIdSet ::IdType &  id,
const Value value,
std::map< Grid::LocalIdSet::IdType, T > &  oldData,
std::map< Grid::LocalIdSet::IdType, T > &  newData 
)
staticprotectedinherited
void Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::migrateLevel ( int  level,
const Value value,
std::map< Grid::LocalIdSet::IdType, T > &  data,
integral_constant< bool, true >   
)
protectedinherited
void Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::migrateLevel ( int  level,
const Value value,
std::map< Grid::LocalIdSet::IdType, T > &  data,
integral_constant< bool, false >   
)
protectedinherited
const Value& Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::operator() ( const Entity entity,
int  subEntity 
) const
inlineinherited
Value& Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::operator() ( const Entity entity,
int  subEntity 
)
inlineinherited
const Value& Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::operator[] ( const Entity entity) const
inlineinherited
Value& Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::operator[] ( const Entity entity)
inlineinherited
void Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::resize ( const Value value = Value())
inlineinherited
void Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::resize ( const Value value)
protectedinherited
void Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::shrinkToFit ( )
inlineinherited
Size Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::size ( ) const
inlineinherited
void Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::swap ( This other)
inlineinherited

Member Data Documentation

int Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::codim_
protectedinherited
std::map< Grid::LocalIdSet::IdType, T > Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::data_
protectedinherited
const Grid* Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::grid_
protectedinherited
const Grid::LocalIdSet * Dune::PersistentContainerMap< Grid , Grid::LocalIdSet , std::map< Grid::LocalIdSet::IdType, T > >::idSet_
protectedinherited

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