dune-grid 2.9.0
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::AlbertaGridEntity< codim, dim, Grid > Class Template Reference

#include <dune/grid/albertagrid/entity.hh>

Inheritance diagram for Dune::AlbertaGridEntity< codim, dim, Grid >:
Inheritance graph

Classes

struct  Codim
 

Public Types

typedef Grid::template Codim< codim >::Entity Entity
 
typedef Grid::template Codim< codim >::EntitySeed EntitySeed
 
typedef Grid::template Codim< codim >::Geometry Geometry
 
typedef Alberta::ElementInfo< dimensionElementInfo
 

Public Member Functions

 AlbertaGridEntity (const Grid &grid)
 constructor More...
 
 AlbertaGridEntity ()
 
 AlbertaGridEntity (const Grid &grid, const ElementInfo &elementInfo, int subEntity)
 contructor More...
 
int level () const
 level of this element More...
 
PartitionType partitionType () const
 return partition type of this entity More...
 
Geometry geometry () const
 geometry of this entity More...
 
GeometryType type () const
 type of geometry of this entity More...
 
EntitySeed seed () const
 obtain entity seed More...
 
unsigned int subEntities (unsigned int cd) const
 Obtain the number of subentities of a given codimension. More...
 
ALBERTA EL_INFO * getElInfo () const
 needed for the LevelIterator and LeafIterator More...
 
const ElementInfoelementInfo () const
 
bool equals (const This &other) const
 equality of entities More...
 
void clearElement ()
 
void setElement (const ElementInfo &elementInfo, int subEntity)
 
void setEntity (const This &other)
 
const Gridgrid () const
 obtain a reference to the grid More...
 
int subEntity () const
 obtain number of the subentity within the element (in ALBERTA numbering) More...
 
int twist () const
 obtain twist More...
 

Static Public Attributes

static const int dimension = dim
 
static const int codimension = codim
 
static const int mydimension = dimension - codimension
 

Detailed Description

template<int codim, int dim, class Grid>
class Dune::AlbertaGridEntity< codim, dim, Grid >

A grid is a container of grid entities. An entity is parametrized by the codimension. An entity of codimension c in dimension d is a d-c dimensional object.

Member Typedef Documentation

◆ ElementInfo

template<int codim, int dim, class Grid >
typedef Alberta::ElementInfo< dimension > Dune::AlbertaGridEntity< codim, dim, Grid >::ElementInfo

◆ Entity

template<int codim, int dim, class Grid >
typedef Grid::template Codim<codim>::Entity Dune::AlbertaGridEntity< codim, dim, Grid >::Entity

◆ EntitySeed

template<int codim, int dim, class Grid >
typedef Grid::template Codim<codim>::EntitySeed Dune::AlbertaGridEntity< codim, dim, Grid >::EntitySeed

◆ Geometry

template<int codim, int dim, class Grid >
typedef Grid::template Codim<codim>::Geometry Dune::AlbertaGridEntity< codim, dim, Grid >::Geometry

Constructor & Destructor Documentation

◆ AlbertaGridEntity() [1/3]

template<int codim, int dim, class Grid >
Dune::AlbertaGridEntity< codim, dim, Grid >::AlbertaGridEntity ( const Grid grid)
inlineexplicit

constructor

◆ AlbertaGridEntity() [2/3]

template<int codim, int dim, class Grid >
Dune::AlbertaGridEntity< codim, dim, Grid >::AlbertaGridEntity
inline

◆ AlbertaGridEntity() [3/3]

template<int codim, int dim, class Grid >
Dune::AlbertaGridEntity< codim, dim, Grid >::AlbertaGridEntity ( const Grid grid,
const ElementInfo elementInfo,
int  subEntity 
)
inline

contructor

Member Function Documentation

◆ clearElement()

template<int codim, int dim, class Grid >
void Dune::AlbertaGridEntity< codim, dim, Grid >::clearElement
inline

◆ elementInfo()

template<int codim, int dim, class Grid >
const ElementInfo & Dune::AlbertaGridEntity< codim, dim, Grid >::elementInfo ( ) const
inline

◆ equals()

template<int codim, int dim, class Grid >
bool Dune::AlbertaGridEntity< codim, dim, Grid >::equals ( const This other) const
inline

equality of entities

◆ geometry()

template<int codim, int dim, class Grid >
AlbertaGridEntity< codim, dim, Grid >::Geometry Dune::AlbertaGridEntity< codim, dim, Grid >::geometry
inline

geometry of this entity

◆ getElInfo()

template<int codim, int dim, class Grid >
ALBERTA EL_INFO * Dune::AlbertaGridEntity< codim, dim, Grid >::getElInfo
inline

needed for the LevelIterator and LeafIterator

◆ grid()

template<int codim, int dim, class Grid >
const Grid & Dune::AlbertaGridEntity< codim, dim, Grid >::grid ( ) const
inline

obtain a reference to the grid

◆ level()

template<int codim, int dim, class Grid >
int Dune::AlbertaGridEntity< codim, dim, Grid >::level
inline

level of this element

◆ partitionType()

template<int codim, int dim, class Grid >
PartitionType Dune::AlbertaGridEntity< codim, dim, Grid >::partitionType
inline

return partition type of this entity

◆ seed()

template<int codim, int dim, class Grid >
EntitySeed Dune::AlbertaGridEntity< codim, dim, Grid >::seed ( ) const
inline

obtain entity seed

◆ setElement()

template<int codim, int dim, class Grid >
void Dune::AlbertaGridEntity< codim, dim, Grid >::setElement ( const ElementInfo elementInfo,
int  subEntity 
)
inline

◆ setEntity()

template<int codim, int dim, class Grid >
void Dune::AlbertaGridEntity< codim, dim, Grid >::setEntity ( const This other)
inline

◆ subEntities()

template<int codim, int dim, class Grid >
unsigned int Dune::AlbertaGridEntity< codim, dim, Grid >::subEntities ( unsigned int  cd) const
inline

Obtain the number of subentities of a given codimension.

That number is ((mydimension+1) over (dim-cd+1))

Parameters
cdcodimension
Returns
the number of subentities of the given codimension

◆ subEntity()

template<int codim, int dim, class Grid >
int Dune::AlbertaGridEntity< codim, dim, Grid >::subEntity ( ) const
inline

obtain number of the subentity within the element (in ALBERTA numbering)

◆ twist()

template<int codim, int dim, class Grid >
int Dune::AlbertaGridEntity< codim, dim, Grid >::twist ( ) const
inline

obtain twist

◆ type()

template<int codim, int dim, class Grid >
GeometryType Dune::AlbertaGridEntity< codim, dim, Grid >::type
inline

type of geometry of this entity

Member Data Documentation

◆ codimension

template<int codim, int dim, class Grid >
const int Dune::AlbertaGridEntity< codim, dim, Grid >::codimension = codim
static

◆ dimension

template<int codim, int dim, class Grid >
const int Dune::AlbertaGridEntity< codim, dim, Grid >::dimension = dim
static

◆ mydimension

template<int codim, int dim, class Grid >
const int Dune::AlbertaGridEntity< codim, dim, Grid >::mydimension = dimension - codimension
static

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