MGIS 3.1.0
Loading...
Searching...
No Matches
mgis::function::FunctionStorage< Space, N > Struct Template Reference

an helper class storing the values of a function in a std::vector More...

#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/Function.hxx>

Inheritance diagram for mgis::function::FunctionStorage< Space, N >:
mgis::function::Function< Space, tfel::math::getUnderlyingArrayMinimalSize< typename TensorType::indexing_policy >()> mgis::function::Function< Space, tfel::math::getUnderlyingArrayMinimalSize< TensorType::indexing_policy >()> mgis::function::TensorialFunction< Space, tfel::math::stensor< N, real > > mgis::function::TensorialFunction< Space, tfel::math::tensor< N, real > > mgis::function::TensorialFunction< Space, tfel::math::st2tost2< N, real > > mgis::function::TensorialFunction< Space, tfel::math::t2tost2< N, real > > mgis::function::TensorialFunction< Space, tfel::math::st2tot2< N, real > > mgis::function::TensorialFunction< Space, tfel::math::t2tot2< N, real > > mgis::function::TensorialFunction< Space, TensorType >

Public Member Functions

constexpr FunctionStorage (const Space &s)
 constructor for a function whose number of components is known at compile time: allocates N * getSpaceSize(s) values initialized to zero
constexpr FunctionStorage (const Space &s, const size_type dsize)
 constructor for a function whose number of components is only known at run time: allocates getSpaceSize(s) * dsize values initialized to zero
constexpr FunctionStorage (FunctionStorage &&)=default
 move constructor
constexpr FunctionStorage (const FunctionStorage &)=default
 copy constructor
constexpr ~FunctionStorage ()=default
 destructor

Protected Attributes

std::vector< real > storage_values
 values

Detailed Description

template<LinearFunctionalSpaceConcept Space, size_type N>
struct mgis::function::FunctionStorage< Space, N >

an helper class storing the values of a function in a std::vector

Template Parameters
Spacetype of the discretization space on which the function is defined
Nnumber of components, which may be dynamic_extent
Note
moving or copying the storage moves or copies the values but does not update the views which point to them: this is the responsibility of the classes deriving from this class

Constructor & Destructor Documentation

◆ FunctionStorage() [1/2]

template<LinearFunctionalSpaceConcept Space, size_type N>
mgis::function::FunctionStorage< Space, N >::FunctionStorage ( const Space & s)
inlineconstexpr

constructor for a function whose number of components is known at compile time: allocates N * getSpaceSize(s) values initialized to zero

Parameters
[in]sspace on which the function is defined

◆ FunctionStorage() [2/2]

template<LinearFunctionalSpaceConcept Space, size_type N>
mgis::function::FunctionStorage< Space, N >::FunctionStorage ( const Space & s,
const size_type dsize )
inlineconstexpr

constructor for a function whose number of components is only known at run time: allocates getSpaceSize(s) * dsize values initialized to zero

Parameters
[in]sspace on which the function is defined
[in]dsizenumber of components of the function

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