dune-fem 2.8.0
|
DoF block proxy for discrete functions with random access to DoFs. More...
#include <dune/fem/function/common/dofblock.hh>
Public Types | |
typedef DiscreteFunction | DiscreteFunctionType |
typedef Dof | DofType |
typedef unsigned int | size_type |
typedef std::pair< DiscreteFunctionType *, size_type > | KeyType |
Public Member Functions | |
const ThisType & | operator= (const ConstDofBlockProxy &other) |
const ThisType & | operator= (const NonConstDofBlockProxy &other) |
const DofType & | operator[] (size_type index) const |
DofType & | operator[] (size_type index) |
size_type | dim () const |
Static Public Attributes | |
static const unsigned int | size = Size |
Protected Member Functions | |
DofBlockProxy (const KeyType &key) | |
DofBlockProxy (const ConstDofBlockProxy &other) | |
DofBlockProxy (const NonConstDofBlockProxy &other) | |
Protected Attributes | |
DiscreteFunctionType & | discreteFunction_ |
const size_type | first_ |
DoF block proxy for discrete functions with random access to DoFs.
Discrete functions are required to support random access to DoF blocks. If random access to the DoFs is available, DofBlockProxy can be used to fake the required DoF blocks.
A discrete function willing to use this proxy has to implement a method called "dof" (and it's constant counterpart) that provides access to the DoFs via an index.
Use of the DofBlockProxy is shown in VectorDiscreteFunction.
DiscreteFunction | type of the discrete function (for constant DoF blocks, use the const version here) |
Dof | type of the degrees of freedom (for constant DoF blocks, use the const version here) |
Size | size of the DoF blocks (block size returned from block mapper) |
typedef DiscreteFunction Dune::Fem::DofBlockProxy< DiscreteFunction, Dof, Size >::DiscreteFunctionType |
typedef Dof Dune::Fem::DofBlockProxy< DiscreteFunction, Dof, Size >::DofType |
typedef std::pair< DiscreteFunctionType *, size_type > Dune::Fem::DofBlockProxy< DiscreteFunction, Dof, Size >::KeyType |
typedef unsigned int Dune::Fem::DofBlockProxy< DiscreteFunction, Dof, Size >::size_type |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
static |