3.4
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Public Member Functions | List of all members
Dumux::EntityMap< GridView, codim > Class Template Reference

A map from indices to entities using grid entity seeds. More...

#include <dumux/common/entitymap.hh>

Description

template<class GridView, int codim = 0>
class Dumux::EntityMap< GridView, codim >

A map from indices to entities using grid entity seeds.

Public Types

using Grid = typename GridView::Traits::Grid
 
using Entity = typename Grid::template Codim< codim >::Entity
 
using EntitySeed = typename Grid::template Codim< codim >::EntitySeed
 

Public Member Functions

 EntityMap (const Grid &grid, std::vector< EntitySeed > &&seeds)
 constructor moving a ready seed list in here More...
 
template<class Mapper >
 EntityMap (const Grid &grid, const Mapper &mapper)
 constructor with all entites of codim More...
 
void update (std::vector< EntitySeed > &&seeds)
 update the map after the grid changed More...
 
template<class Mapper >
void update (const Mapper &mapper)
 update the map after the grid changed More...
 
Entity operator[] (std::size_t i) const
 get an element from an index i More...
 
std::size_t size () const
 get the size of the map More...
 

Member Typedef Documentation

◆ Entity

template<class GridView , int codim = 0>
using Dumux::EntityMap< GridView, codim >::Entity = typename Grid::template Codim<codim>::Entity

◆ EntitySeed

template<class GridView , int codim = 0>
using Dumux::EntityMap< GridView, codim >::EntitySeed = typename Grid::template Codim<codim>::EntitySeed

◆ Grid

template<class GridView , int codim = 0>
using Dumux::EntityMap< GridView, codim >::Grid = typename GridView::Traits::Grid

Constructor & Destructor Documentation

◆ EntityMap() [1/2]

template<class GridView , int codim = 0>
Dumux::EntityMap< GridView, codim >::EntityMap ( const Grid grid,
std::vector< EntitySeed > &&  seeds 
)
inline

constructor moving a ready seed list in here

◆ EntityMap() [2/2]

template<class GridView , int codim = 0>
template<class Mapper >
Dumux::EntityMap< GridView, codim >::EntityMap ( const Grid grid,
const Mapper &  mapper 
)
inline

constructor with all entites of codim

Member Function Documentation

◆ operator[]()

template<class GridView , int codim = 0>
Entity Dumux::EntityMap< GridView, codim >::operator[] ( std::size_t  i) const
inline

get an element from an index i

◆ size()

template<class GridView , int codim = 0>
std::size_t Dumux::EntityMap< GridView, codim >::size ( ) const
inline

get the size of the map

◆ update() [1/2]

template<class GridView , int codim = 0>
template<class Mapper >
void Dumux::EntityMap< GridView, codim >::update ( const Mapper &  mapper)
inline

update the map after the grid changed

◆ update() [2/2]

template<class GridView , int codim = 0>
void Dumux::EntityMap< GridView, codim >::update ( std::vector< EntitySeed > &&  seeds)
inline

update the map after the grid changed


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