dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::DofMapperCodeWriter Class Reference

#include <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
 
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

◆ ConstIterator

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

◆ Iterator

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

Constructor & Destructor Documentation

◆ DofMapperCodeWriter()

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

Member Function Documentation

◆ begin() [1/2]

Iterator Dune::Fem::DofMapperCode::begin ( )
inlineprotectedinherited

◆ begin() [2/2]

ConstIterator Dune::Fem::DofMapperCode::begin ( ) const
inlineprotectedinherited

◆ end() [1/2]

Iterator Dune::Fem::DofMapperCode::end ( )
inlineprotectedinherited

◆ end() [2/2]

ConstIterator Dune::Fem::DofMapperCode::end ( ) const
inlineprotectedinherited

◆ numBlocks()

unsigned int Dune::Fem::DofMapperCode::numBlocks ( ) const
inlineinherited

◆ numDofs()

unsigned int Dune::Fem::DofMapperCode::numDofs ( ) const
inlineinherited

◆ operator()()

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 )
};
const unsigned int * ConstIterator
Definition: code.hh:20

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

◆ operator[]() [1/2]

unsigned int & Dune::Fem::DofMapperCodeWriter::operator[] ( unsigned int  i)
inline

◆ operator[]() [2/2]

const unsigned int & Dune::Fem::DofMapperCodeWriter::operator[] ( unsigned int  i) const
inline

◆ size() [1/2]

std::size_t Dune::Fem::DofMapperCode::size ( ) const
inlineprotectedinherited

◆ size() [2/2]

static std::size_t Dune::Fem::DofMapperCode::size ( unsigned int  numBlocks,
unsigned int  numDofs 
)
inlinestaticprotectedinherited

Member Data Documentation

◆ code_

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

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