NiHu  2.0
NiHu::function_space_base< Derived > Class Template Reference

CRTP base class of function spaces. More...

#include <function_space.hpp>

Public Types

enum  { quantity_dimension = traits_t::quantity_dimension }
 
typedef traits_t::mesh_t mesh_t
 the underlying mesh type
 
typedef traits_t::field_type_vector_t field_type_vector_t
 the field type vector
 
typedef tmp::deref< typename tmp::begin< typename mesh_t::elem_type_vector_t >::type >::type::x_t x_t
 the location type in the function space
 

Public Member Functions

const mesh_tget_mesh () const
 return reference to the underlying mesh More...
 
template<class FieldType >
traits_t::template iterator< FieldType >::type field_begin () const
 begin iterator of given field type More...
 
template<class FieldType >
traits_t::template iterator< FieldType >::type field_end () const
 end iterator of given field type More...
 
size_t get_num_dofs () const
 return number of degrees of freedom More...
 

Public Attributes

NIHU_CRTP_HELPERS typedef function_space_traits< Derived > traits_t
 the traits class
 

Detailed Description

template<class Derived>
class NiHu::function_space_base< Derived >

CRTP base class of function spaces.

Definition at line 44 of file function_space.hpp.

Member Function Documentation

◆ field_begin()

template<class Derived >
template<class FieldType >
traits_t::template iterator<FieldType>::type NiHu::function_space_base< Derived >::field_begin ( ) const
inline

begin iterator of given field type

Template Parameters
FieldTypethe field type to access

Definition at line 82 of file function_space.hpp.

◆ field_end()

template<class Derived >
template<class FieldType >
traits_t::template iterator<FieldType>::type NiHu::function_space_base< Derived >::field_end ( ) const
inline

end iterator of given field type

Template Parameters
FieldTypethe field type to access

Definition at line 93 of file function_space.hpp.

◆ get_mesh()

template<class Derived >
const mesh_t& NiHu::function_space_base< Derived >::get_mesh ( ) const
inline

return reference to the underlying mesh

Returns
reference to the mesh part

Definition at line 71 of file function_space.hpp.

◆ get_num_dofs()

template<class Derived >
size_t NiHu::function_space_base< Derived >::get_num_dofs ( ) const
inline

return number of degrees of freedom

Returns
number of degrees of freedom

Definition at line 102 of file function_space.hpp.


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