dune-fem  2.4.1-rc
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 </local/tomalk/somewhere/tmp/dune-fem/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 More...
 
typedef GridPartType::GridType GridType
 type of the grid More...
 
typedef GridPartType::IndexSetType IndexSetType
 type of the index set More...
 
typedef GridPartType::template Codim< 0 >::IteratorType IteratorType
 type of the grid iterator More...
 
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) More...
 

Public Member Functions

 DiscreteFunctionSpaceAdapter (const GridPartType &gridPart, unsigned int order=polynomialOrder)
 constructor taking grid Part More...
 
 DiscreteFunctionSpaceAdapter (const ThisType &other)
 copy constructor More...
 
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...
 

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

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)

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

type of the grid partition

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

type of the grid

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

type of the index set

template<class FunctionSpaceImp , class GridPartImp >
typedef GridPartType :: IntersectionType Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::IntersectionType
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

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

Constructor & Destructor Documentation

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

constructor taking grid Part

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

copy constructor

Member Function Documentation

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
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
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
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
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
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
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
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
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
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
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.

Member Data Documentation

template<class FunctionSpaceImp , class GridPartImp >
const GridPartType& Dune::Fem::DiscreteFunctionSpaceAdapter< FunctionSpaceImp, GridPartImp >::gridPart_
protected
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: