DUNE-FEM (unstable)

Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp > Class Template Reference

Create Obejct that behaves like a discrete function space without to provide functions with the iterator facilities. More...

#include <dune/fem/space/common/discretefunctionspace.hh>

Public Types

typedef GridPartImp GridPartType
 type of the grid partition
 
typedef GridPartType ::GridType GridType
 type of the grid
 
typedef GridPartType ::IndexSetType IndexSetType
 type of the index set
 
typedef GridPartType ::template Codim< 0 >::IteratorType IteratorType
 type of the grid iterator
 
typedef DefaultCommunicationManager< ThisTypeCommunicationManagerType
 type of communication manager (only the default communication is valid here)
 

Public Member Functions

 DiscreteFunctionSpaceAdapter (const GridPartType &gridPart, unsigned int order=polynomialOrder)
 constructor taking grid Part
 
 DiscreteFunctionSpaceAdapter (const ThisType &other)
 copy constructor
 
IteratorType begin () const
 get iterator pointing to the first entity of the associated grid partition More...
 
IteratorType end () const
 get iterator pointing behind the last entity of the associated grid partition More...
 
template<class FunctorType >
void forEach (FunctorType &f) const
 apply a functor to each entity in the associated grid partition More...
 
const GridPartTypegridPart () const
 get a reference to the associated grid partition More...
 
const IndexSetTypeindexSet () const
 Get a reference to the associated index set. More...
 
const GridTypegrid () const
 get reference to grid this discrete function space belongs to More...
 
bool continuous () const
 returns true if the space contains only globally continuous functions More...
 
bool continuous (const IntersectionType &intersection) const
 returns true if the space contains only globally continuous functions More...
 
int order () const
 get global order of space More...
 
int order (const EntityType &) const
 get global order of space More...
 
DFSpaceIdentifier type () const
 return type identifier of discrete function space More...
 

Detailed Description

template<class FunctionSpaceImp, class GridPartImp>
class Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >

Create Obejct that behaves like a discrete function space without to provide functions with the iterator facilities.

Note
DiscreteFunctionSpaceAdapter is itself derived from the template argument FunctionSpaceImp. Hence, the constructor will call the default constructor of FunctionSpaceImp when this class is instanciated. So do not use discrete function spaces for the first template argument.

Member Function Documentation

◆ begin()

template<class FunctionSpaceImp , class GridPartImp >
IteratorType Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::begin ( ) const
inline

get iterator pointing to the first entity of the associated grid partition

Returns
iterator pointing to first entity

Referenced by Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::forEach().

◆ continuous() [1/2]

template<class FunctionSpaceImp , class GridPartImp >
bool Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::continuous ( ) const
inline

returns true if the space contains only globally continuous functions

For example, a Lagrange space returns true while a discontiuous Galerkin space returns false.

Returns
true if the space contians only globally continous functions, false otherwise

Referenced by Dune::Fem::BasicGridFunctionAdapter< FunctionImp, GridPartImp >::continuous(), and Dune::Fem::LocalFunctionAdapter< LocalFunctionImpl >::continuous().

◆ continuous() [2/2]

template<class FunctionSpaceImp , class GridPartImp >
bool Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::continuous ( const IntersectionType &  intersection) const
inline

returns true if the space contains only globally continuous functions

For example, a Lagrange space returns true while a discontiuous Galerkin space returns false.

Returns
true if the space contians only globally continous functions, false otherwise

◆ end()

template<class FunctionSpaceImp , class GridPartImp >
IteratorType Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::end ( ) const
inline

get iterator pointing behind the last entity of the associated grid partition

Returns
iterator pointing behind last entity

Referenced by Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::forEach().

◆ forEach()

template<class FunctionSpaceImp , class GridPartImp >
template<class FunctorType >
void Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::forEach ( FunctorType &  f) const
inline

apply a functor to each entity in the associated grid partition

The functor must provide an the following operator

template< class EntityType >
void operator() ( const EntityType & );
Parameters
[in]ffunctor to apply

References Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::begin(), and Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::end().

◆ grid()

template<class FunctionSpaceImp , class GridPartImp >
const GridType& Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::grid ( ) const
inline

get reference to grid this discrete function space belongs to

Returns
constant reference to grid

◆ gridPart()

template<class FunctionSpaceImp , class GridPartImp >
const GridPartType& Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::gridPart ( ) const
inline

get a reference to the associated grid partition

Returns
reference to the grid partition

◆ indexSet()

template<class FunctionSpaceImp , class GridPartImp >
const IndexSetType& Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::indexSet ( ) const
inline

Get a reference to the associated index set.

Returns
const reference to index set

◆ order() [1/2]

template<class FunctionSpaceImp , class GridPartImp >
int Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::order ( ) const
inline

get global order of space

Returns
order of space, i.e., the maximal polynomial order of base functions

Referenced by Dune::Fem::BasicGridFunctionAdapter< FunctionImp, GridPartImp >::order(), and Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::order().

◆ order() [2/2]

template<class FunctionSpaceImp , class GridPartImp >
int Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::order ( const EntityType &  ) const
inline

get global order of space

Returns
order of space, i.e., the maximal polynomial order of base functions

References Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::order().

◆ type()

template<class FunctionSpaceImp , class GridPartImp >
DFSpaceIdentifier Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::type ( ) const
inline

return type identifier of discrete function space

Returns
return type identifier of discrete function space

References Dune::Fem::DFAdapter_id.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 27, 22:29, 2024)