dune-fem  2.4.1-rc
Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::DofMapperCodeWriter Class Reference

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

Inheritance diagram for Dune::Fem::DofMapperCodeWriter:
Inheritance graph

Public Member Functions

 DofMapperCodeWriter (unsigned int numBlocks, unsigned int numDofs)
 
const unsigned int & operator[] (unsigned int i) const
 
unsigned int & operator[] (unsigned int i)
 
template<class Functor >
void operator() (Functor f) const
 execute DoF mapper code More...
 
unsigned int numBlocks () const
 
unsigned int numDofs () const
 

Protected Types

typedef const unsigned int * ConstIterator
 
typedef unsigned int * Iterator
 

Protected Member Functions

ConstIterator begin () const
 
Iterator begin ()
 
ConstIterator end () const
 
Iterator end ()
 
std::size_t size () const
 

Static Protected Member Functions

static std::size_t size (unsigned int numBlocks, unsigned int numDofs)
 

Protected Attributes

unsigned int * code_
 

Member Typedef Documentation

typedef const unsigned int* Dune::Fem::DofMapperCode::ConstIterator
protectedinherited
typedef unsigned int* Dune::Fem::DofMapperCode::Iterator
protectedinherited

Constructor & Destructor Documentation

Dune::Fem::DofMapperCodeWriter::DofMapperCodeWriter ( unsigned int  numBlocks,
unsigned int  numDofs 
)
inline

Member Function Documentation

ConstIterator Dune::Fem::DofMapperCode::begin ( ) const
inlineprotectedinherited
Iterator Dune::Fem::DofMapperCode::begin ( )
inlineprotectedinherited
ConstIterator Dune::Fem::DofMapperCode::end ( ) const
inlineprotectedinherited
Iterator Dune::Fem::DofMapperCode::end ( )
inlineprotectedinherited
unsigned int Dune::Fem::DofMapperCode::numBlocks ( ) const
inlineinherited
unsigned int Dune::Fem::DofMapperCode::numDofs ( ) const
inlineinherited
template<class Functor >
void Dune::Fem::DofMapperCode::operator() ( Functor  f) const
inlineinherited

execute DoF mapper code

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

struct Functor
{
void operator() ( unsigned int gtIndex, unsigned int subEntity, ConstIterator begin, ConstIterator end )
};

The type ConstIterator is defined by the DofMapperCode. It is passed the following arguments:

  • gtIndex: global geometry type index of a subentity
  • subEntity: local number of the subentity (wrt. the reference element)
  • begin / end: iterator pair returning the local indices (wrt. to the element) of the DoFs associated to the subentity

References Dune::Fem::DofMapperCode::begin(), and Dune::Fem::DofMapperCode::end().

const unsigned int& Dune::Fem::DofMapperCodeWriter::operator[] ( unsigned int  i) const
inline
unsigned int& Dune::Fem::DofMapperCodeWriter::operator[] ( unsigned int  i)
inline
std::size_t Dune::Fem::DofMapperCode::size ( ) const
inlineprotectedinherited
static std::size_t Dune::Fem::DofMapperCode::size ( unsigned int  numBlocks,
unsigned int  numDofs 
)
inlinestaticprotectedinherited

Member Data Documentation

unsigned int* Dune::Fem::DofMapperCode::code_
protectedinherited

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