dune-fem  2.4.1-rc
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
Dune::Fem::__NonBlockMapper::AdaptiveDofMapper< T > Class Template Reference

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/space/mapper/nonblockmapper.hh>

Inheritance diagram for Dune::Fem::__NonBlockMapper::AdaptiveDofMapper< T >:
Inheritance graph

Public Types

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

Public Member Functions

 AdaptiveDofMapper (BlockMapperType &blockMapper)
 
bool consecutive () const
 
SizeType numBlocks () const
 
SizeType numberOfHoles (const int block) const
 
GlobalKeyType oldIndex (const int hole, const int block) const
 
GlobalKeyType newIndex (const int hole, const int block) const
 
SizeType oldOffSet (const int block) const
 
SizeType offSet (const int block) const
 
SizeType size () const
 
bool contains (const int codim) const
 
bool fixedDataSize (int codim) const
 
void mapEach (const ElementType &element, Functor f) const
 
void mapEach (const ElementType &element, Functor f) const
 map each local DoF number to a global key More...
 
void map (const ElementType &element, std::vector< std::size_t > &indices) const
 
void mapEachEntityDof (const Entity &entity, Functor f) const
 
int maxNumDofs () const
 
SizeType numDofs (const ElementType &element) const
 
SizeType numDofs (const ElementType &element) const
 obtain number of DoFs on an entity More...
 
SizeType numEntityDofs (const Entity &entity) const
 

Static Public Member Functions

static constexpr bool consecutive () noexcept
 

Protected Types

typedef Traits::BlockMapperType BlockMapperType
 

Protected Member Functions

const BlockMapperTypeblockMapper () const
 
const T::DofMapperType & asImp () const
 
T::DofMapperType & asImp ()
 

Static Protected Member Functions

static const T::DofMapperType & asImp (const ThisType &other)
 
static T::DofMapperType & asImp (ThisType &other)
 

Static Protected Attributes

static const int blockSize = Traits::blockSize
 

Member Typedef Documentation

type of the DofMapper implementation

typedef ElementType Dune::Fem::DofMapper< T >::EntityType
inherited

Constructor & Destructor Documentation

template<class T >
Dune::Fem::__NonBlockMapper::AdaptiveDofMapper< T >::AdaptiveDofMapper ( BlockMapperType blockMapper)
inline

Member Function Documentation

static const T::DofMapperType & Dune::Fem::BartonNackmanInterface< DofMapper< T > , T::DofMapperType >::asImp ( const ThisType other)
inlinestaticprotectedinherited
static T::DofMapperType & Dune::Fem::BartonNackmanInterface< DofMapper< T > , T::DofMapperType >::asImp ( ThisType other)
inlinestaticprotectedinherited
const T::DofMapperType & Dune::Fem::BartonNackmanInterface< DofMapper< T > , T::DofMapperType >::asImp ( ) const
inlineprotectedinherited
T::DofMapperType & Dune::Fem::BartonNackmanInterface< DofMapper< T > , T::DofMapperType >::asImp ( )
inlineprotectedinherited
const BlockMapperType& Dune::Fem::__NonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::blockMapper ( ) const
inlineprotectedinherited
static constexpr bool Dune::Fem::__NonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::consecutive ( )
inlinestaticnoexceptinherited
template<class T >
bool Dune::Fem::__NonBlockMapper::AdaptiveDofMapper< T >::consecutive ( ) const
inline
bool Dune::Fem::__NonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::contains ( const int  codim) const
inlineinherited
bool Dune::Fem::__NonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::fixedDataSize ( int  codim) const
inlineinherited
void Dune::Fem::__NonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::map ( const ElementType element,
std::vector< std::size_t > &  indices 
) const
inlineinherited
Deprecated:
"This function is out dated and will be deleted in version 1.5"
void Dune::Fem::__NonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::mapEach ( const ElementType element,
Functor  f 
) const
inlineinherited
void Dune::Fem::DofMapper< T >::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.
void Dune::Fem::__NonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::mapEachEntityDof ( const Entity &  entity,
Functor  f 
) const
inlineinherited
int Dune::Fem::__NonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::maxNumDofs ( ) const
inlineinherited
template<class T >
GlobalKeyType Dune::Fem::__NonBlockMapper::AdaptiveDofMapper< T >::newIndex ( const int  hole,
const int  block 
) const
inline
template<class T >
SizeType Dune::Fem::__NonBlockMapper::AdaptiveDofMapper< T >::numberOfHoles ( const int  block) const
inline
template<class T >
SizeType Dune::Fem::__NonBlockMapper::AdaptiveDofMapper< T >::numBlocks ( ) const
inline
SizeType Dune::Fem::__NonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::numDofs ( const ElementType element) const
inlineinherited
SizeType Dune::Fem::DofMapper< T >::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
SizeType Dune::Fem::__NonBlockMapper::DofMapper< T, Dune::Fem::AdaptiveDofMapper >::numEntityDofs ( const Entity &  entity) const
inlineinherited
template<class T >
SizeType Dune::Fem::__NonBlockMapper::AdaptiveDofMapper< T >::offSet ( const int  block) const
inline
template<class T >
GlobalKeyType Dune::Fem::__NonBlockMapper::AdaptiveDofMapper< T >::oldIndex ( const int  hole,
const int  block 
) const
inline
template<class T >
SizeType Dune::Fem::__NonBlockMapper::AdaptiveDofMapper< T >::oldOffSet ( const int  block) const
inline

Member Data Documentation

template<class T >
const int Dune::Fem::__NonBlockMapper::AdaptiveDofMapper< T >::blockSize = Traits::blockSize
staticprotected

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