tfel
Loading...
Searching...
No Matches
tfel::math::ConstRuntimeArrayBase< Child, ArrayPolicyType > Struct Template Reference

a base class for fixed sized const arrays. More...

#include </home/runner/work/tfel/tfel/include/TFEL/Math/Array/ConstRuntimeArrayBase.hxx>

Inheritance diagram for tfel::math::ConstRuntimeArrayBase< Child, ArrayPolicyType >:
tfel::math::ConstArrayCommonMethods< Child, ArrayPolicyType > tfel::math::ConstArraySTLCompatibilityLayer< Child, ArrayPolicyType >

Public Member Functions

TFEL_HOST_DEVICE constexpr ConstRuntimeArrayBase (const typename ArrayPolicyType::IndexingPolicy &)
 contructor using the indexing policy
constexpr ConstRuntimeArrayBase (ConstRuntimeArrayBase &&)=default
 move constructor
constexpr ConstRuntimeArrayBase (const ConstRuntimeArrayBase &)=default
 copy constructor
constexpr ConstRuntimeArrayBase & operator= (ConstRuntimeArrayBase &&)=default
 move assignement
constexpr ConstRuntimeArrayBase & operator= (const ConstRuntimeArrayBase &)=default
 standard assignement
constexpr auto & getIndexingPolicy () const noexcept
template<typename Functor>
void iterate (const Functor &) const
 apply a multi-indices functor
Public Member Functions inherited from tfel::math::ConstArrayCommonMethods< Child, ArrayPolicyType >
TFEL_HOST_DEVICE constexpr ArrayPolicyType::const_reference operator[] (const typename ArrayPolicyType::IndexingPolicy::size_type) const noexcept
 access operator
TFEL_HOST_DEVICE constexpr ArrayPolicyType::const_reference operator[] (const std::array< typename ArrayPolicyType::IndexingPolicy::size_type, ArrayPolicyType::IndexingPolicy::arity > &) const noexcept
 access operator
template<typename... Indices>
TFEL_HOST_DEVICE constexpr ArrayPolicyType::const_reference operator() (const Indices...) const noexcept
 access operator
TFEL_HOST_DEVICE constexpr ArrayPolicyType::const_reference operator() (const std::array< typename ArrayPolicyType::IndexingPolicy::size_type, ArrayPolicyType::IndexingPolicy::arity > &) const noexcept
 access operator
template<typename... Indices>
constexpr ArrayPolicyType::const_reference operator() (const Indices... i) const noexcept

Additional Inherited Members

Public Types inherited from tfel::math::ConstArrayCommonMethods< Child, ArrayPolicyType >
using array_policy = ArrayPolicyType
 exposing the array policy
using indexing_policy = typename ArrayPolicyType::IndexingPolicy
 exposing the indexing policy

Detailed Description

template<typename Child, typename ArrayPolicyType>
struct tfel::math::ConstRuntimeArrayBase< Child, ArrayPolicyType >

a base class for fixed sized const arrays.

Constructor & Destructor Documentation

◆ ConstRuntimeArrayBase()

template<typename Child, typename ArrayPolicyType>
TFEL_HOST_DEVICE constexpr tfel::math::ConstRuntimeArrayBase< Child, ArrayPolicyType >::ConstRuntimeArrayBase ( const typename ArrayPolicyType::IndexingPolicy & )
constexpr

contructor using the indexing policy

Parameters
[in]iindexing policy

Member Function Documentation

◆ getIndexingPolicy()

template<typename Child, typename ArrayPolicy>
auto & tfel::math::ConstRuntimeArrayBase< Child, ArrayPolicy >::getIndexingPolicy ( ) const
constexprnoexcept
Returns
the current indexing policy

◆ iterate()

template<typename Child, typename ArrayPolicy>
template<typename Functor>
void tfel::math::ConstRuntimeArrayBase< Child, ArrayPolicy >::iterate ( const Functor & f) const

apply a multi-indices functor

Parameters
[in]ffunctor
Template Parameters
Functiontype of the functor

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