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

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

Inheritance diagram for Dune::Fem::DofMapperCode:
Inheritance graph

Public Member Functions

 DofMapperCode ()
 
 DofMapperCode (const DofMapperCode &other)
 
 ~DofMapperCode ()
 
const DofMapperCodeoperator= (const DofMapperCode &other)
 
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

 DofMapperCode (unsigned int numBlocks, unsigned int numDofs)
 
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_
 

Friends

std::ostream & operator<< (std::ostream &out, const DofMapperCode &code)
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

Dune::Fem::DofMapperCode::DofMapperCode ( unsigned int  numBlocks,
unsigned int  numDofs 
)
inlineprotected

References code_, numBlocks(), numDofs(), and size().

Dune::Fem::DofMapperCode::DofMapperCode ( )
inline

References code_, and size().

Dune::Fem::DofMapperCode::DofMapperCode ( const DofMapperCode other)
inline

References code_, end(), and size().

Dune::Fem::DofMapperCode::~DofMapperCode ( )
inline

References code_.

Member Function Documentation

ConstIterator Dune::Fem::DofMapperCode::begin ( ) const
inlineprotected
Iterator Dune::Fem::DofMapperCode::begin ( )
inlineprotected

References code_.

ConstIterator Dune::Fem::DofMapperCode::end ( ) const
inlineprotected
Iterator Dune::Fem::DofMapperCode::end ( )
inlineprotected

References code_, and size().

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

References code_.

Referenced by DofMapperCode(), and size().

unsigned int Dune::Fem::DofMapperCode::numDofs ( ) const
inline
template<class Functor >
void Dune::Fem::DofMapperCode::operator() ( Functor  f) const
inline

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 begin(), and end().

const DofMapperCode& Dune::Fem::DofMapperCode::operator= ( const DofMapperCode other)
inline

References code_, end(), and size().

std::size_t Dune::Fem::DofMapperCode::size ( ) const
inlineprotected
static std::size_t Dune::Fem::DofMapperCode::size ( unsigned int  numBlocks,
unsigned int  numDofs 
)
inlinestaticprotected

References numDofs().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const DofMapperCode code 
)
friend

Member Data Documentation

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

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