dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
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>

Inheritance diagram for Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >:
Inheritance graph

Public Types

enum  { polynomialOrder = 111 }
 
typedef FunctionSpaceImp FunctionSpaceType
 
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 GridType::template Codim< 0 >::Entity EntityType
 
typedef GridPartType::IntersectionType IntersectionType
 
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
 
IteratorType end () const
 get iterator pointing behind the last entity of the associated grid partition
 
template<class FunctorType >
void forEach (FunctorType &f) const
 apply a functor to each entity in the associated grid partition
 
const GridPartTypegridPart () const
 get a reference to the associated grid partition
 
const IndexSetTypeindexSet () const
 Get a reference to the associated index set.
 
const GridTypegrid () const
 get reference to grid this discrete function space belongs to
 
bool continuous () const
 returns true if the space contains only globally continuous functions
 
bool continuous (const IntersectionType &intersection) const
 returns true if the space contains only globally continuous functions
 
int order () const
 get global order of space
 
int order (const EntityType &) const
 get global order of space
 
DFSpaceIdentifier type () const
 return type identifier of discrete function space
 

Protected Attributes

const GridPartTypegridPart_
 
const unsigned int order_
 

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 Typedef Documentation

◆ CommunicationManagerType

template<class FunctionSpaceImp , class GridPartImp >
typedef DefaultCommunicationManager< ThisType > Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::CommunicationManagerType

type of communication manager (only the default communication is valid here)

◆ EntityType

template<class FunctionSpaceImp , class GridPartImp >
typedef GridType::template Codim<0>::Entity Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::EntityType

◆ FunctionSpaceType

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

◆ GridPartType

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

type of the grid partition

◆ GridType

template<class FunctionSpaceImp , class GridPartImp >
typedef GridPartType::GridType Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::GridType

type of the grid

◆ IndexSetType

template<class FunctionSpaceImp , class GridPartImp >
typedef GridPartType::IndexSetType Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::IndexSetType

type of the index set

◆ IntersectionType

template<class FunctionSpaceImp , class GridPartImp >
typedef GridPartType::IntersectionType Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::IntersectionType

◆ IteratorType

template<class FunctionSpaceImp , class GridPartImp >
typedef GridPartType::template Codim<0>::IteratorType Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::IteratorType

type of the grid iterator

Member Enumeration Documentation

◆ anonymous enum

template<class FunctionSpaceImp , class GridPartImp >
anonymous enum
Enumerator
polynomialOrder 

Constructor & Destructor Documentation

◆ DiscreteFunctionSpaceAdapter() [1/2]

template<class FunctionSpaceImp , class GridPartImp >
Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::DiscreteFunctionSpaceAdapter ( const GridPartType gridPart,
unsigned int  order = polynomialOrder 
)
inlineexplicit

constructor taking grid Part

◆ DiscreteFunctionSpaceAdapter() [2/2]

template<class FunctionSpaceImp , class GridPartImp >
Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::DiscreteFunctionSpaceAdapter ( const ThisType other)
inline

copy constructor

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

◆ 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

◆ 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

◆ 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 & );
GridType::template Codim< 0 >::Entity EntityType
Definition: discretefunctionspace.hh:982
Parameters
[in]ffunctor to apply

◆ 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

◆ 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

◆ 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

Member Data Documentation

◆ gridPart_

template<class FunctionSpaceImp , class GridPartImp >
const GridPartType& Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::gridPart_
protected

◆ order_

template<class FunctionSpaceImp , class GridPartImp >
const unsigned int Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::order_
protected

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