dune-fem  2.4.1-rc
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 </local/tomalk/somewhere/tmp/dune-fem/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::CollectiveCommunicationType CollectiveCommunicationType
 Collective communication. More...
 
typedef DofManager< GridTypeDofManagerType
 type of DofManager More...
 
typedef Traits::GridPartType GridPartType
 Type of the implementation. More...
 
typedef Traits::TwistUtilityType TwistUtilityType
 Twist utility type. More...
 
typedef Traits::IntersectionIteratorType IntersectionIteratorType
 type of IntersectionIterator More...
 
typedef IntersectionIteratorType::Intersection IntersectionType
 type of Intersection 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...
 
GridViewType gridView () const
 convert grid part into a dune grid view 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...
 
int boundaryId (const IntersectionType &intersection) const
 return boundary if given an intersection 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)
 
 ~GridPartDefault ()
 

Protected Attributes

GridTypegrid_
 
DofManagerTypedofManager_
 

Detailed Description

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

Default implementation for the GridPart classes.

Member Typedef Documentation

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

Collective communication.

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

type of DofManager

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

Type of the implementation.

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

Grid implementation.

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

Index set implementation.

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

type of IntersectionIterator

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

type of Intersection

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

Type of the Traits.

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

Twist utility type.

Constructor & Destructor Documentation

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

constructor

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

Member Function Documentation

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
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
template<class GridPartTraits>
int Dune::Fem::GridPartInterface< GridPartTraits >::boundaryId ( const IntersectionType intersection) const
inlineinherited
template<class GridPartTraits>
const CollectiveCommunicationType& Dune::Fem::GridPartDefault< GridPartTraits >::comm ( ) const
inline

obtain collective communication object

template<class GridPartTraits>
template<class DataHandleImp , class DataType >
void Dune::Fem::GridPartInterface< GridPartTraits >::communicate ( CommDataHandleIF< DataHandleImp, DataType > &  data,
InterfaceType  iftype,
CommunicationDirection  dir 
) const
inlineinherited
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
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
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
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.

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

Returns const reference to the underlying grid.

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

Returns reference to the underlying grid.

template<class GridPartTraits>
GridViewType Dune::Fem::GridPartInterface< GridPartTraits >::gridView ( ) const
inlineinherited

convert grid part into a dune grid view

Deprecated:
"gridPart.gridView() is deprecated, use direct cast to GridPart::GridViewType instead"
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

Referenced by Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::ibegin().

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

Referenced by Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::iend().

template<class GridPartTraits>
const IndexSetType& Dune::Fem::GridPartInterface< GridPartTraits >::indexSet ( ) const
inlineinherited
template<class GridPartTraits>
int Dune::Fem::GridPartInterface< GridPartTraits >::level ( ) const
inlineinherited
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

template<class GridPartTraits>
const int Dune::Fem::GridPartInterface< GridPartTraits >::dimension = GridType::dimension
staticinherited
template<class GridPartTraits>
const int Dune::Fem::GridPartInterface< GridPartTraits >::dimensionworld = GridType::dimensionworld
staticinherited
template<class GridPartTraits>
DofManagerType& Dune::Fem::GridPartDefault< GridPartTraits >::dofManager_
protected
template<class GridPartTraits>
GridType& Dune::Fem::GridPartDefault< GridPartTraits >::grid_
protected
template<class GridPartTraits>
const InterfaceType Dune::Fem::GridPartInterface< GridPartTraits >::indexSetInterfaceType = Traits::indexSetInterfaceType
staticinherited
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: