dune-fem  2.4.1-rc
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
Dune::Fem::FourierDofMapper< GridPart, order > Class Template Reference

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/space/fourier/dofmapper.hh>

Inheritance diagram for Dune::Fem::FourierDofMapper< GridPart, order >:
Inheritance graph

Public Types

typedef BaseType::Traits Traits
 
typedef BaseType::ElementType ElementType
 
typedef BaseType::GlobalKeyType GlobalKeyType
 
typedef BaseType::SizeType SizeType
 
typedef Traits::DofMapperType DofMapperType
 type of the DofMapper implementation More...
 
typedef ElementType EntityType
 

Public Member Functions

SizeType numberOfHoles (const int block) const
 return number of holes for data block More...
 
GlobalKeyType oldIndex (const int hole, const int block) const
 return old index of hole for data block (with resprect to new offset) More...
 
GlobalKeyType newIndex (const int hole, const int block) const
 return new index of hole for data block (with resprect to new offset) More...
 
bool consecutive () const
 return true if compress will affect data More...
 
SizeType oldOffSet (const int block) const
 return old offsets for given block More...
 
SizeType offSet (const int block) const
 return current offsets for given block More...
 
SizeType numBlocks () const
 return number of supported blocks More...
 
SizeType size () const
 return number of dofs for special function space and grid on specified level More...
 
bool contains (const int codim) const
 returns true if DoFs for given codimension exist More...
 
bool fixedDataSize (const int codim) const
 Check, whether the data in a codimension has fixed size. More...
 
void mapEach (const ElementType &element, Functor f) const
 map each local DoF number to a global key More...
 
void mapEachEntityDof (const Entity &entity, Functor f) const
 map each local DoF number to a global key More...
 
int maxNumDofs () const
 obtain maximal number of DoFs on one entity More...
 
SizeType numDofs (const ElementType &element) const
 obtain number of DoFs on an entity More...
 
SizeType numEntityDofs (const Entity &entity) const
 obtain number of DoFs actually belonging to an entity More...
 

Static Public Member Functions

static SizeType size ()
 return number of dofs for special function space and grid on specified level More...
 
static bool contains (int codim)
 returns true if DoFs for given codimension exist More...
 
static bool fixedDataSize (int codim)
 Check, whether the data in a codimension has fixed size. More...
 
template<class Functor >
static void mapEach (const ElementType &element, Functor f)
 map each local DoF number to a global key More...
 
template<class Entity , class Functor >
static void mapEachEntityDof (const Entity &entity, Functor f)
 map each local DoF number to a global key More...
 
static SizeType maxNumDofs ()
 obtain maximal number of DoFs on one entity More...
 
static SizeType numDofs (const ElementType &element)
 obtain number of DoFs on an entity More...
 
template<class Entity >
static SizeType numEntityDofs (const Entity &entity)
 obtain number of DoFs actually belonging to an entity More...
 

Protected Member Functions

const FourierDofMapperTraits< GridPart, order >::DofMapperTypeasImp () const
 
FourierDofMapperTraits< GridPart, order >::DofMapperTypeasImp ()
 

Static Protected Member Functions

static const FourierDofMapperTraits< GridPart, order >::DofMapperTypeasImp (const ThisType &other)
 
static FourierDofMapperTraits< GridPart, order >::DofMapperTypeasImp (ThisType &other)
 

Member Typedef Documentation

type of the DofMapper implementation

template<class GridPart , int order>
typedef BaseType::ElementType Dune::Fem::FourierDofMapper< GridPart, order >::ElementType
typedef ElementType Dune::Fem::DofMapper< FourierDofMapperTraits< GridPart, order > >::EntityType
inherited
template<class GridPart , int order>
typedef BaseType::GlobalKeyType Dune::Fem::FourierDofMapper< GridPart, order >::GlobalKeyType
template<class GridPart , int order>
typedef BaseType::SizeType Dune::Fem::FourierDofMapper< GridPart, order >::SizeType
template<class GridPart , int order>
typedef BaseType::Traits Dune::Fem::FourierDofMapper< GridPart, order >::Traits

Member Function Documentation

static const FourierDofMapperTraits< GridPart, order >::DofMapperType & Dune::Fem::BartonNackmanInterface< DofMapper< FourierDofMapperTraits< GridPart, order > > , FourierDofMapperTraits< GridPart, order >::DofMapperType >::asImp ( const ThisType other)
inlinestaticprotectedinherited
static FourierDofMapperTraits< GridPart, order >::DofMapperType & Dune::Fem::BartonNackmanInterface< DofMapper< FourierDofMapperTraits< GridPart, order > > , FourierDofMapperTraits< GridPart, order >::DofMapperType >::asImp ( ThisType other)
inlinestaticprotectedinherited
const FourierDofMapperTraits< GridPart, order >::DofMapperType & Dune::Fem::BartonNackmanInterface< DofMapper< FourierDofMapperTraits< GridPart, order > > , FourierDofMapperTraits< GridPart, order >::DofMapperType >::asImp ( ) const
inlineprotectedinherited
FourierDofMapperTraits< GridPart, order >::DofMapperType & Dune::Fem::BartonNackmanInterface< DofMapper< FourierDofMapperTraits< GridPart, order > > , FourierDofMapperTraits< GridPart, order >::DofMapperType >::asImp ( )
inlineprotectedinherited
template<class GridPart , int order>
bool Dune::Fem::FourierDofMapper< GridPart, order >::consecutive ( ) const
inline

return true if compress will affect data

template<class GridPart , int order>
static bool Dune::Fem::FourierDofMapper< GridPart, order >::contains ( int  codim)
inlinestatic

returns true if DoFs for given codimension exist

Parameters
[in]codimcodimension to check
Returns
true if DoFs for codimension exist
bool Dune::Fem::DofMapper< FourierDofMapperTraits< GridPart, order > >::contains ( const int  codim) const
inlineinherited

returns true if DoFs for given codimension exist

Parameters
[in]codimcodimension to check
Returns
true if DoFs for codimension exist

References Dune::Fem::BartonNackmanInterface< DofMapper< DofMapperTraits >, DofMapperTraits::DofMapperType >::asImp(), and Dune::Fem::DofMapper< DofMapperTraits >::contains().

template<class GridPart , int order>
static bool Dune::Fem::FourierDofMapper< GridPart, order >::fixedDataSize ( int  codim)
inlinestatic

Check, whether the data in a codimension has fixed size.

bool Dune::Fem::DofMapper< FourierDofMapperTraits< GridPart, order > >::fixedDataSize ( const int  codim) const
inlineinherited
template<class GridPart , int order>
template<class Functor >
static void Dune::Fem::FourierDofMapper< GridPart, order >::mapEach ( const ElementType element,
Functor  f 
)
inlinestatic

map each local DoF number to a global key

Parameters
[in]elementelement, the DoFs belong to
[in]ffunctor to call for each DoF

The functor has to be a copyable object satisfying the following interface:

struct Functor
{
// application operator
template< class GlobalKey >
void operator() ( const int localDoF, const GlobalKey &globalDoF );
};

For each DoF to be mapped, this method will call the application operator once.

Note
There is no guarantee on the order, in which the functor is applied.
The global key has to be compatible with the Dof storage.
void Dune::Fem::DofMapper< FourierDofMapperTraits< GridPart, order > >::mapEach ( const ElementType element,
Functor  f 
) const
inlineinherited

map each local DoF number to a global key

Parameters
[in]elementelement, the DoFs belong to
[in]ffunctor to call for each DoF

The functor has to be a copyable object satisfying the following interface:

struct Functor
{
// application operator
template< class GlobalKey >
void operator() ( const int localDoF, const GlobalKey &globalDoF );
};

For each DoF to be mapped, this method will call the application operator once.

Note
There is no guarantee on the order, in which the functor is applied.
The global key has to be compatible with the Dof storage.

References Dune::Fem::BartonNackmanInterface< DofMapper< DofMapperTraits >, DofMapperTraits::DofMapperType >::asImp(), and Dune::Fem::DofMapper< DofMapperTraits >::mapEach().

template<class GridPart , int order>
template<class Entity , class Functor >
static void Dune::Fem::FourierDofMapper< GridPart, order >::mapEachEntityDof ( const Entity &  entity,
Functor  f 
)
inlinestatic

map each local DoF number to a global key

Parameters
[in]entityentity, the DoFs belong to
[in]ffunctor to call for each DoF

The functor has to be a copyable object satisfying the following interface:

struct Functor
{
// application operator
template< class GlobalKey >
void operator() ( const int localDoF, const GlobalKey &globalKey );
};

For each DoF to be mapped, this method will call the application operator once.

Note
There is no guarantee on the order, in which the functor is applied.
The global key has to be compatible with the Dof storage.
void Dune::Fem::DofMapper< FourierDofMapperTraits< GridPart, order > >::mapEachEntityDof ( const Entity &  entity,
Functor  f 
) const
inlineinherited

map each local DoF number to a global key

Parameters
[in]entityentity, the DoFs belong to
[in]ffunctor to call for each DoF

The functor has to be a copyable object satisfying the following interface:

struct Functor
{
// application operator
template< class GlobalKey >
void operator() ( const int localDoF, const GlobalKey &globalKey );
};

For each DoF to be mapped, this method will call the application operator once.

Note
There is no guarantee on the order, in which the functor is applied.
The global key has to be compatible with the Dof storage.

References Dune::Fem::BartonNackmanInterface< DofMapper< DofMapperTraits >, DofMapperTraits::DofMapperType >::asImp(), and Dune::Fem::DofMapper< DofMapperTraits >::mapEachEntityDof().

template<class GridPart , int order>
static SizeType Dune::Fem::FourierDofMapper< GridPart, order >::maxNumDofs ( )
inlinestatic

obtain maximal number of DoFs on one entity

int Dune::Fem::DofMapper< FourierDofMapperTraits< GridPart, order > >::maxNumDofs ( ) const
inlineinherited
template<class GridPart , int order>
GlobalKeyType Dune::Fem::FourierDofMapper< GridPart, order >::newIndex ( const int  hole,
const int  block 
) const
inline

return new index of hole for data block (with resprect to new offset)

template<class GridPart , int order>
SizeType Dune::Fem::FourierDofMapper< GridPart, order >::numberOfHoles ( const int  block) const
inline

return number of holes for data block

template<class GridPart , int order>
SizeType Dune::Fem::FourierDofMapper< GridPart, order >::numBlocks ( ) const
inline

return number of supported blocks

template<class GridPart , int order>
static SizeType Dune::Fem::FourierDofMapper< GridPart, order >::numDofs ( const ElementType element)
inlinestatic

obtain number of DoFs on an entity

Parameters
[in]elemententity of codimension 0
Returns
number of DoFs on the entity
SizeType Dune::Fem::DofMapper< FourierDofMapperTraits< GridPart, order > >::numDofs ( const ElementType element) const
inlineinherited

obtain number of DoFs on an entity

Parameters
[in]elemententity of codimension 0
Returns
number of DoFs on the entity

References Dune::Fem::BartonNackmanInterface< DofMapper< DofMapperTraits >, DofMapperTraits::DofMapperType >::asImp(), and Dune::Fem::DofMapper< DofMapperTraits >::numDofs().

template<class GridPart , int order>
template<class Entity >
static SizeType Dune::Fem::FourierDofMapper< GridPart, order >::numEntityDofs ( const Entity &  entity)
inlinestatic

obtain number of DoFs actually belonging to an entity

In contrast to numDofs, this method returns the number of DoFs actually associated with an entity (usually a subentity). We have the following relation for an entity $E$ of codimension 0:

\[ \mathrm{numDofs}( E ) = \sum_{e \subset E} \mathrm{numEntityDofs}( e ), \]

where $\subset$ denotes the subentity relation.

Parameters
[in]entityentity of codimension
Returns
number of DoFs on the entity
SizeType Dune::Fem::DofMapper< FourierDofMapperTraits< GridPart, order > >::numEntityDofs ( const Entity &  entity) const
inlineinherited

obtain number of DoFs actually belonging to an entity

In contrast to numDofs, this method returns the number of DoFs actually associated with an entity (usually a subentity). We have the following relation for an entity $E$ of codimension 0:

\[ \mathrm{numDofs}( E ) = \sum_{e \subset E} \mathrm{numEntityDofs}( e ), \]

where $\subset$ denotes the subentity relation.

Parameters
[in]entityentity of codimension
Returns
number of DoFs on the entity

References Dune::Fem::BartonNackmanInterface< DofMapper< DofMapperTraits >, DofMapperTraits::DofMapperType >::asImp(), and Dune::Fem::DofMapper< DofMapperTraits >::numEntityDofs().

template<class GridPart , int order>
SizeType Dune::Fem::FourierDofMapper< GridPart, order >::offSet ( const int  block) const
inline

return current offsets for given block

template<class GridPart , int order>
GlobalKeyType Dune::Fem::FourierDofMapper< GridPart, order >::oldIndex ( const int  hole,
const int  block 
) const
inline

return old index of hole for data block (with resprect to new offset)

template<class GridPart , int order>
SizeType Dune::Fem::FourierDofMapper< GridPart, order >::oldOffSet ( const int  block) const
inline

return old offsets for given block

template<class GridPart , int order>
static SizeType Dune::Fem::FourierDofMapper< GridPart, order >::size ( )
inlinestatic

return number of dofs for special function space and grid on specified level

SizeType Dune::Fem::DofMapper< FourierDofMapperTraits< GridPart, order > >::size ( ) const
inlineinherited

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