NiHu  2.0
NiHu::function_space_impl< function_space< FieldTypeVector > > Class Template Reference

class describing a function space More...

#include <function_space.hpp>

Classes

struct  field_adder
 subclass called by call_each to add a field to the function space More...
 

Public Types

typedef function_space_traits< function_space< FieldTypeVector > > traits_t
 the traits class
 
typedef traits_t::field_type_vector_t field_type_vector_t
 the field type vector
 
typedef traits_t::mesh_t mesh_t
 the underlying mesh type
 
typedef tmp::inherit< typename tmp::transform< field_type_vector_t, tmp::inserter< typename tmp::empty< field_type_vector_t >::type, tmp::push_back< tmp::_1, tmp::_2 > >, eigen_std_vector< tmp::_1 > >::type >::type field_container_t
 combine field_type_vector into a BIG heterogeneous std::vector container
 

Public Member Functions

 function_space_impl ()
 constructor
 
template<class node_matrix_t , class field_matrix_t >
 function_space_impl (node_matrix_t const &nodes, field_matrix_t const &fields)
 constructor from node and field definition matrices
 
const mesh_tget_mesh () const
 return underlying mesh reference More...
 
template<class FieldType >
traits_t::template iterator< FieldType >::type field_begin () const
 return begin iterator of a subspace
 
template<class FieldType >
traits_t::template iterator< FieldType >::type field_end () const
 return end iterator of a subspace
 
bool add_field (unsigned const input[])
 add a field to the function space
 
template<class field_t >
const field_tpush_field (field_base< field_t > const &f)
 push a field to the vector of fields
 
unsigned get_num_fields () const
 return number of fields More...
 
unsigned get_num_dofs () const
 return number of dofs
 

Protected Attributes

field_container_t m_fields
 fields (BIG heterogeneous container)
 
unsigned m_num_dofs
 number of degrees of freedoms
 

Detailed Description

template<class FieldTypeVector>
class NiHu::function_space_impl< function_space< FieldTypeVector > >

class describing a function space

Template Parameters
FieldTypeVectorcompile time vector of fields building the function space

Definition at line 464 of file function_space.hpp.

Member Function Documentation

◆ get_mesh()

template<class FieldTypeVector >
const mesh_t& NiHu::function_space_impl< function_space< FieldTypeVector > >::get_mesh ( ) const
inline

return underlying mesh reference

Returns
the mesh

Definition at line 554 of file function_space.hpp.

◆ get_num_fields()

template<class FieldTypeVector >
unsigned NiHu::function_space_impl< function_space< FieldTypeVector > >::get_num_fields ( ) const
inline

return number of fields

Returns
number of fields in the function space

Definition at line 598 of file function_space.hpp.


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