dune-grid  2.1.1
Public Types | Public Member Functions | Static Public Attributes
Dune::YaspLeafIndexSet< GridImp > Class Template Reference

#include <dune/grid/yaspgrid.hh>

Inheritance diagram for Dune::YaspLeafIndexSet< GridImp >:
Inheritance graph

List of all members.

Public Types

typedef Base::IndexType IndexType
 The type used for the indices.

Public Member Functions

 YaspLeafIndexSet (const GridImp &g)
 constructor stores reference to a grid
template<int cc>
IndexType index (const typename GridImp::Traits::template Codim< cc >::Entity &e) const
 get index of an entity
template<int cc>
IndexType subIndex (const typename remove_const< GridImp >::type::Traits::template Codim< cc >::Entity &e, int i, unsigned int codim) const
 get index of subentity of an entity
int size (GeometryType type) const
 get number of entities of given type
int size (int codim) const
 return size of set for a given codim
template<class EntityType >
bool contains (const EntityType &e) const
 return true if the given entity is contained in $E$.
const std::vector< GeometryType > & geomTypes (int codim) const
 deliver all geometry types used in this grid
Index access from entity
IndexType index (const typename remove_const< GridImp >::type::Traits::template Codim< cc >::Entity &e) const
 Map entity to index. The result of calling this method with an entity that is not in the index set is undefined.
IndexType index (const EntityType &e) const
 Map entity to index. Easier to use than the above because codimension template parameter need not be supplied explicitely. The result of calling this method with an entity that is not in the index set is undefined.
IndexType subIndex (const typename Traits::template Codim< cc >::Entity &e, int i, unsigned int codim) const
 Map a subentity to an index.
IndexType subIndex (const Entity &e, int i, unsigned int codim) const
 Map a subentity to an index.

Static Public Attributes

static const int dimension
 dimension of the grid (maximum allowed codimension)

template<class GridImp>
class Dune::YaspLeafIndexSet< GridImp >


Member Typedef Documentation

template<class GridImp>
typedef Base::IndexType Dune::YaspLeafIndexSet< GridImp >::IndexType

The type used for the indices.

Reimplemented from Dune::IndexSet< GridImp, YaspLeafIndexSet< GridImp >, unsigned int >.


Constructor & Destructor Documentation

template<class GridImp>
Dune::YaspLeafIndexSet< GridImp >::YaspLeafIndexSet ( const GridImp &  g) [inline, explicit]

constructor stores reference to a grid


Member Function Documentation

template<class GridImp>
template<class EntityType >
bool Dune::YaspLeafIndexSet< GridImp >::contains ( const EntityType &  e) const [inline]

return true if the given entity is contained in $E$.

Reimplemented from Dune::IndexSet< GridImp, YaspLeafIndexSet< GridImp >, unsigned int >.

template<class GridImp>
const std::vector<GeometryType>& Dune::YaspLeafIndexSet< GridImp >::geomTypes ( int  codim) const [inline]

deliver all geometry types used in this grid

Reimplemented from Dune::IndexSet< GridImp, YaspLeafIndexSet< GridImp >, unsigned int >.

IndexType Dune::IndexSet< GridImp, YaspLeafIndexSet< GridImp > , unsigned int >::index ( const typename remove_const< GridImp >::type::Traits::template Codim< cc >::Entity e) const [inline, inherited]

Map entity to index. The result of calling this method with an entity that is not in the index set is undefined.

Parameters:
eReference to codim cc entity, where cc is the template parameter of the function.
Returns:
An index in the range 0 ... Max number of entities in set - 1.
IndexType Dune::IndexSet< GridImp, YaspLeafIndexSet< GridImp > , unsigned int >::index ( const EntityType &  e) const [inline, inherited]

Map entity to index. Easier to use than the above because codimension template parameter need not be supplied explicitely. The result of calling this method with an entity that is not in the index set is undefined.

Parameters:
eReference to codim cc entity. Since entity knows its codimension, automatic extraction is possible.
Returns:
An index in the range 0 ... Max number of entities in set - 1.
template<class GridImp>
template<int cc>
IndexType Dune::YaspLeafIndexSet< GridImp >::index ( const typename GridImp::Traits::template Codim< cc >::Entity e) const [inline]

get index of an entity

template<class GridImp>
int Dune::YaspLeafIndexSet< GridImp >::size ( GeometryType  type) const [inline]

get number of entities of given type

Reimplemented from Dune::IndexSet< GridImp, YaspLeafIndexSet< GridImp >, unsigned int >.

template<class GridImp>
int Dune::YaspLeafIndexSet< GridImp >::size ( int  codim) const [inline]

return size of set for a given codim

Reimplemented from Dune::IndexSet< GridImp, YaspLeafIndexSet< GridImp >, unsigned int >.

IndexType Dune::IndexSet< GridImp, YaspLeafIndexSet< GridImp > , unsigned int >::subIndex ( const typename Traits::template Codim< cc >::Entity e,
int  i,
unsigned int  codim 
) const [inline, inherited]

Map a subentity to an index.

The result of calling this method with an entity that is not in the index set is undefined.

Template Parameters:
cccodimension of the entity
Parameters:
[in]ereference to codimsion cc entity
[in]inumber subentity of e within the codimension
[in]codimcodimension of the subentity we're interested in (must satisfy cc <= codim <= dimension)
Returns:
An index in the range 0 ... Max number of entities in set - 1.
IndexType Dune::IndexSet< GridImp, YaspLeafIndexSet< GridImp > , unsigned int >::subIndex ( const Entity e,
int  i,
unsigned int  codim 
) const [inline, inherited]

Map a subentity to an index.

The result of calling this method with an entity that is not in the index set is undefined.

Note:
This method exists for convenience only. It extracts the codimension from the type of the entity, which can be guessed by the compiler.
Template Parameters:
Entitytype of entity (must be GridImp::Codim< cc >::Entity for some cc)
Parameters:
[in]ereference to entity
[in]inumber subentity of e within the codimension
[in]codimcodimension of the subentity we're interested in
Returns:
An index in the range 0 ... Max number of entities in set - 1.
template<class GridImp>
template<int cc>
IndexType Dune::YaspLeafIndexSet< GridImp >::subIndex ( const typename remove_const< GridImp >::type::Traits::template Codim< cc >::Entity e,
int  i,
unsigned int  codim 
) const [inline]

get index of subentity of an entity


Member Data Documentation

const int Dune::IndexSet< GridImp, YaspLeafIndexSet< GridImp > , unsigned int >::dimension [static, inherited]

dimension of the grid (maximum allowed codimension)

Referenced by Dune::YaspLeafIndexSet< const YaspGrid< dim > >::YaspLeafIndexSet().


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