dune-fem  2.8-git
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::GridPartDefault< GridPartTraits > Class Template Reference

Default implementation for the GridPart classes. More...

#include <dune/fem/gridpart/common/gridpart.hh>

Inheritance diagram for Dune::Fem::GridPartDefault< GridPartTraits >:
Inheritance graph

Public Types

typedef GridPartTraits Traits
 Type of the Traits. More...
 
typedef Traits::GridType GridType
 Grid implementation. More...
 
typedef Traits::IndexSetType IndexSetType
 Index set implementation. More...
 
typedef Traits::IntersectionIteratorType IntersectionIteratorType
 type of intersection iterator More...
 
typedef IntersectionIteratorType::Intersection IntersectionType
 type of intersection More...
 
typedef Traits::CollectiveCommunicationType CollectiveCommunicationType
 Collective communication. More...
 
typedef DofManager< GridTypeDofManagerType
 type of DofManager More...
 
typedef BoundaryIdProvider< GridTypeBoundaryIdProviderType
 type of boundary id provider specialized for each grid type More...
 
typedef Traits::GridPartType GridPartType
 Type of the implementation. More...
 
typedef Traits::TwistUtilityType TwistUtilityType
 Twist utility type. More...
 
typedef PoliciesType::GridViewType GridViewType
 
typedef GridType::ctype ctype
 

Public Member Functions

const GridTypegrid () const
 Returns const reference to the underlying grid. More...
 
GridTypegrid ()
 Returns reference to the underlying grid. More...
 
const CollectiveCommunicationTypecomm () const
 obtain collective communication object More...
 
template<class EntitySeed >
Traits::template Codim< EntitySeed::codimension >::EntityType entity (const EntitySeed &seed) const
 obtain entity pointer from entity seed More...
 
template<class Entity >
const Entity & convert (const Entity &entity) const
 convert the grid's entity to a grid part entity Usually the parameter is GridType :: Codim< codim > :: Entity and the return is Codim< codim > :: EntityType. In general these types are the same, but for overloaded entities on grid parts this can differ. More...
 
int sequence () const
 return sequence number to update structures depending on the grid part More...
 
int boundaryId (const IntersectionType &intersection) const
 obtain entity pointer from entity seed More...
 
const IndexSetTypeindexSet () const
 Returns reference to index set of the underlying grid. More...
 
template<int codim>
Codim< codim >::IteratorType begin () const
 obtain begin iterator for the interior-border partition More...
 
template<int codim, PartitionIteratorType pitype>
Codim< codim >::template Partition< pitype >::IteratorType begin () const
 obtain begin iterator for the given partition More...
 
template<int codim>
Codim< codim >::IteratorType end () const
 obtain end iterator for the interior-border partition More...
 
template<int codim, PartitionIteratorType pitype>
Codim< codim >::template Partition< pitype >::IteratorType end () const
 obtain end iterator for the given partition More...
 
int level () const
 Level of the grid part. More...
 
IntersectionIteratorType ibegin (const typename Codim< 0 >::EntityType &entity) const
 ibegin of corresponding intersection iterator for given entity More...
 
IntersectionIteratorType iend (const typename Codim< 0 >::EntityType &entity) const
 iend of corresponding intersection iterator for given entity More...
 
template<class DataHandleImp , class DataType >
void communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const
 corresponding communication method for grid part More...
 

Static Public Attributes

static const PartitionIteratorType indexSetPartitionType = Traits::indexSetPartitionType
 Maximum Partition type, the index set provides indices for. More...
 
static const InterfaceType indexSetInterfaceType = Traits::indexSetInterfaceType
 
static const int dimension = GridType::dimension
 
static const int dimensionworld = GridType::dimensionworld
 

Protected Member Functions

 GridPartDefault (GridType &grid)
 constructor More...
 
 GridPartDefault (const ThisType &other)
 

Protected Attributes

GridTypegrid_
 
DofManagerTypedofManager_
 

Detailed Description

template<class GridPartTraits>
class Dune::Fem::GridPartDefault< GridPartTraits >

Default implementation for the GridPart classes.

Member Typedef Documentation

◆ BoundaryIdProviderType

template<class GridPartTraits >
typedef BoundaryIdProvider< GridType > Dune::Fem::GridPartDefault< GridPartTraits >::BoundaryIdProviderType

type of boundary id provider specialized for each grid type

◆ CollectiveCommunicationType

template<class GridPartTraits >
typedef Traits::CollectiveCommunicationType Dune::Fem::GridPartDefault< GridPartTraits >::CollectiveCommunicationType

Collective communication.

◆ ctype

template<class GridPartTraits >
typedef GridType::ctype Dune::Fem::GridPartInterface< GridPartTraits >::ctype
inherited

◆ DofManagerType

template<class GridPartTraits >
typedef DofManager< GridType > Dune::Fem::GridPartDefault< GridPartTraits >::DofManagerType

type of DofManager

◆ GridPartType

template<class GridPartTraits >
typedef Traits::GridPartType Dune::Fem::GridPartInterface< GridPartTraits >::GridPartType
inherited

Type of the implementation.

◆ GridType

template<class GridPartTraits >
typedef Traits::GridType Dune::Fem::GridPartDefault< GridPartTraits >::GridType

Grid implementation.

◆ GridViewType

template<class GridPartTraits >
typedef PoliciesType::GridViewType Dune::Fem::GridPartInterface< GridPartTraits >::GridViewType
inherited

◆ IndexSetType

template<class GridPartTraits >
typedef Traits::IndexSetType Dune::Fem::GridPartDefault< GridPartTraits >::IndexSetType

Index set implementation.

◆ IntersectionIteratorType

template<class GridPartTraits >
typedef Traits::IntersectionIteratorType Dune::Fem::GridPartDefault< GridPartTraits >::IntersectionIteratorType

type of intersection iterator

◆ IntersectionType

template<class GridPartTraits >
typedef IntersectionIteratorType::Intersection Dune::Fem::GridPartDefault< GridPartTraits >::IntersectionType

type of intersection

◆ Traits

template<class GridPartTraits >
typedef GridPartTraits Dune::Fem::GridPartDefault< GridPartTraits >::Traits

Type of the Traits.

◆ TwistUtilityType

template<class GridPartTraits >
typedef Traits::TwistUtilityType Dune::Fem::GridPartInterface< GridPartTraits >::TwistUtilityType
inherited

Twist utility type.

Constructor & Destructor Documentation

◆ GridPartDefault() [1/2]

template<class GridPartTraits >
Dune::Fem::GridPartDefault< GridPartTraits >::GridPartDefault ( GridType grid)
inlineprotected

constructor

◆ GridPartDefault() [2/2]

template<class GridPartTraits >
Dune::Fem::GridPartDefault< GridPartTraits >::GridPartDefault ( const ThisType other)
inlineprotected

Member Function Documentation

◆ begin() [1/2]

template<class GridPartTraits >
template<int codim>
Codim< codim >::IteratorType Dune::Fem::GridPartInterface< GridPartTraits >::begin ( ) const
inlineinherited

obtain begin iterator for the interior-border partition

Template Parameters
codimcodimension for which the iterator is requested

◆ begin() [2/2]

template<class GridPartTraits >
template<int codim, PartitionIteratorType pitype>
Codim< codim >::template Partition< pitype >::IteratorType Dune::Fem::GridPartInterface< GridPartTraits >::begin ( ) const
inlineinherited

obtain begin iterator for the given partition

Template Parameters
codimcodimension for which the iterator is requested
pityperequested partition iterator type

◆ boundaryId()

template<class GridPartTraits >
int Dune::Fem::GridPartDefault< GridPartTraits >::boundaryId ( const IntersectionType intersection) const
inline

obtain entity pointer from entity seed

◆ comm()

template<class GridPartTraits >
const CollectiveCommunicationType& Dune::Fem::GridPartDefault< GridPartTraits >::comm ( ) const
inline

obtain collective communication object

◆ communicate()

template<class GridPartTraits >
template<class DataHandleImp , class DataType >
void Dune::Fem::GridPartInterface< GridPartTraits >::communicate ( CommDataHandleIF< DataHandleImp, DataType > &  data,
InterfaceType  iftype,
CommunicationDirection  dir 
) const
inlineinherited

corresponding communication method for grid part

◆ convert()

template<class GridPartTraits >
template<class Entity >
const Entity& Dune::Fem::GridPartDefault< GridPartTraits >::convert ( const Entity &  entity) const
inline

convert the grid's entity to a grid part entity Usually the parameter is GridType :: Codim< codim > :: Entity and the return is Codim< codim > :: EntityType. In general these types are the same, but for overloaded entities on grid parts this can differ.

Note
The default implementation does nothing but return the same entity

◆ end() [1/2]

template<class GridPartTraits >
template<int codim>
Codim< codim >::IteratorType Dune::Fem::GridPartInterface< GridPartTraits >::end ( ) const
inlineinherited

obtain end iterator for the interior-border partition

Template Parameters
codimcodimension for which the iterator is requested

◆ end() [2/2]

template<class GridPartTraits >
template<int codim, PartitionIteratorType pitype>
Codim< codim >::template Partition< pitype >::IteratorType Dune::Fem::GridPartInterface< GridPartTraits >::end ( ) const
inlineinherited

obtain end iterator for the given partition

Template Parameters
codimcodimension for which the iterator is requested
pityperequested partition iterator type

◆ entity()

template<class GridPartTraits >
template<class EntitySeed >
Traits::template Codim< EntitySeed::codimension >::EntityType Dune::Fem::GridPartDefault< GridPartTraits >::entity ( const EntitySeed &  seed) const
inline

obtain entity pointer from entity seed

Template Parameters
EntitySeedentity seed from which to create entity

The default implementation simply forwards to the corresponding method on the grid.

◆ grid() [1/2]

template<class GridPartTraits >
GridType& Dune::Fem::GridPartDefault< GridPartTraits >::grid ( )
inline

Returns reference to the underlying grid.

◆ grid() [2/2]

template<class GridPartTraits >
const GridType& Dune::Fem::GridPartDefault< GridPartTraits >::grid ( ) const
inline

Returns const reference to the underlying grid.

◆ ibegin()

template<class GridPartTraits >
IntersectionIteratorType Dune::Fem::GridPartInterface< GridPartTraits >::ibegin ( const typename Codim< 0 >::EntityType &  entity) const
inlineinherited

ibegin of corresponding intersection iterator for given entity

◆ iend()

template<class GridPartTraits >
IntersectionIteratorType Dune::Fem::GridPartInterface< GridPartTraits >::iend ( const typename Codim< 0 >::EntityType &  entity) const
inlineinherited

iend of corresponding intersection iterator for given entity

◆ indexSet()

template<class GridPartTraits >
const IndexSetType& Dune::Fem::GridPartInterface< GridPartTraits >::indexSet ( ) const
inlineinherited

Returns reference to index set of the underlying grid.

◆ level()

template<class GridPartTraits >
int Dune::Fem::GridPartInterface< GridPartTraits >::level ( ) const
inlineinherited

Level of the grid part.

◆ sequence()

template<class GridPartTraits >
int Dune::Fem::GridPartDefault< GridPartTraits >::sequence ( ) const
inline

return sequence number to update structures depending on the grid part

Note
The default returns DofManager< Grid > :: sequence ()
The default returns DofManager< Grid > :: sequence

Member Data Documentation

◆ dimension

template<class GridPartTraits >
const int Dune::Fem::GridPartInterface< GridPartTraits >::dimension = GridType::dimension
staticinherited

◆ dimensionworld

template<class GridPartTraits >
const int Dune::Fem::GridPartInterface< GridPartTraits >::dimensionworld = GridType::dimensionworld
staticinherited

◆ dofManager_

template<class GridPartTraits >
DofManagerType& Dune::Fem::GridPartDefault< GridPartTraits >::dofManager_
protected

◆ grid_

template<class GridPartTraits >
GridType& Dune::Fem::GridPartDefault< GridPartTraits >::grid_
protected

◆ indexSetInterfaceType

template<class GridPartTraits >
const InterfaceType Dune::Fem::GridPartInterface< GridPartTraits >::indexSetInterfaceType = Traits::indexSetInterfaceType
staticinherited

◆ indexSetPartitionType

template<class GridPartTraits >
const PartitionIteratorType Dune::Fem::GridPartInterface< GridPartTraits >::indexSetPartitionType = Traits::indexSetPartitionType
staticinherited

Maximum Partition type, the index set provides indices for.


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