MGIS 3.1.0
Loading...
Searching...
No Matches
CompileTimeSize.hxx File Reference

File which defines the helpers used to determine the number of components of a type (scalar value, span, array, tensor, etc...) when it is known at compile time. More...

#include <span>
#include <array>
#include "MGIS/Config.hxx"

Classes

struct  mgis::function::internals::CompileTimeSize< T >
 traits giving the number of components of a type More...
struct  mgis::function::internals::CompileTimeSize< real >
 specialization for a scalar value, which has one component More...
struct  mgis::function::internals::CompileTimeSize< std::span< real, N > >
 specialization for a fixed-sized span More...
struct  mgis::function::internals::CompileTimeSize< std::span< const real, N > >
 specialization for a constant fixed-sized span More...
struct  mgis::function::internals::CompileTimeSize< std::span< real > >
 specialization for a dynamic-sized span More...
struct  mgis::function::internals::CompileTimeSize< std::span< const real > >
 specialization for a constant dynamic-sized span More...
struct  mgis::function::internals::CompileTimeSize< std::array< real, N > >
 specialization for a fixed-sized array More...
struct  mgis::function::internals::CompileTimeSize< std::array< const real, N > >
 specialization for a constant fixed-sized array More...

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Variables

template<typename T>
constexpr size_type mgis::function::compile_time_size
 number of components (size) of a type if known at compile time, dynamic_extent otherwise
template<typename FunctionOrEvaluatorType>
constexpr size_type mgis::function::number_of_components
 number of components of a function or an evaluator when known at compile-time, dynamic_extent otherwise

Detailed Description

File which defines the helpers used to determine the number of components of a type (scalar value, span, array, tensor, etc...) when it is known at compile time.

Author
Thomas Helfer
Date
10/05/2025

Variable Documentation

◆ compile_time_size

template<typename T>
size_type mgis::function::compile_time_size
inlineconstexpr
Initial value:
=
static constexpr size_type value
default value: the number of components is only known at run time
Definition CompileTimeSize.hxx:39

number of components (size) of a type if known at compile time, dynamic_extent otherwise

Template Parameters
Ttype

◆ number_of_components

template<typename FunctionOrEvaluatorType>
size_type mgis::function::number_of_components
inlineconstexpr
Initial value:
=
traits giving the number of components of a function or an evaluator when it is known at compile-time...
Definition CompileTimeSize.hxx:113

number of components of a function or an evaluator when known at compile-time, dynamic_extent otherwise

Template Parameters
FunctionOrEvaluatorTypefunction or evaluator type