tfel
Loading...
Searching...
No Matches
tfel::math::runtime_array< ValueType > Struct Template Reference

a class representing array of dynamic size. More...

Inheritance diagram for tfel::math::runtime_array< ValueType >:
tfel::math::GenericRuntimeArray< runtime_array< ValueType >, RuntimeVectorArrayPolicy< ValueType > > tfel::math::ArrayConceptBase< runtime_array< ValueType > > tfel::math::MutableRuntimeArrayBase< Child, ArrayPolicy > tfel::math::MutableArrayCommonMethods< Child, ArrayPolicy > tfel::math::MutableArraySTLCompatibilityLayer< Child, ArrayPolicy > tfel::math::ConstArrayCommonMethods< Child, ArrayPolicy >

Public Types

using GenericRuntimeArrayBase
 a simple alias
Public Types inherited from tfel::math::GenericRuntimeArray< runtime_array< ValueType >, RuntimeVectorArrayPolicy< ValueType > >
using Container
 a simple alias
using value_type
 a simple alias
Public Types inherited from tfel::math::ConstArrayCommonMethods< Child, ArrayPolicy >
using array_policy
 exposing the array policy
using indexing_policy
 exposing the indexing policy
Public Types inherited from tfel::math::ArrayConceptBase< runtime_array< ValueType > >
using ConceptTag

Public Member Functions

 runtime_array ()=default
 default constructor
 runtime_array (runtime_array &&)=default
 move constructor
 runtime_array (const runtime_array &)=default
 copy constructor
runtime_array & operator= (runtime_array &&)=default
 move assignement
runtime_array & operator= (const runtime_array &)=default
 standard assignement
Public Member Functions inherited from tfel::math::GenericRuntimeArray< runtime_array< ValueType >, RuntimeVectorArrayPolicy< ValueType > >
 GenericRuntimeArray ()=default
 default constructor
 GenericRuntimeArray (const typename RuntimeVectorArrayPolicy< ValueType >::IndexingPolicy &)
 default constructor
 GenericRuntimeArray (const GenericRuntimeArray &)=default
 copy constructor
 GenericRuntimeArray (GenericRuntimeArray &&)=default
 move constructor
 GenericRuntimeArray (const typename RuntimeVectorArrayPolicy< ValueType >::IndexingPolicy &, const ValueType &)
 constructor from a value
 GenericRuntimeArray (const typename GenericRuntimeArray< runtime_array< ValueType >, RuntimeVectorArrayPolicy< ValueType > >::indexing_policy, const std::initializer_list< ValueType > &)
 constructor from an initializer list
 GenericRuntimeArray (const std::initializer_list< ValueType > &)
 constructor from an initializer list
 GenericRuntimeArray (const OtherArray &)
 copy constructor from an object assignable to the Child class.
GenericRuntimeArray< runtime_array< ValueType >, RuntimeVectorArrayPolicy< ValueType > >::pointer data () noexcept
GenericRuntimeArray< runtime_array< ValueType >, RuntimeVectorArrayPolicy< ValueType > >::const_pointer data () const noexcept
void resize (const typename RuntimeVectorArrayPolicy< ValueType >::IndexingPolicy &)
 resize the array
GenericRuntimeArray< runtime_array< ValueType >, RuntimeVectorArrayPolicy< ValueType > >::size_type getContainerSize () const noexcept
runtime_array< ValueType > & operator= (const OtherArray &)
 assign values values from an other array
runtime_array< ValueType > & operator+= (const OtherArray &)
runtime_array< ValueType > & operator-= (const OtherArray &)
runtime_array< ValueType > & operator*= (const ValueType2 &) noexcept
runtime_array< ValueType > & operator/= (const ValueType2 &) noexcept
bool empty () const
void clear ()
void shrink_to_fit ()
Public Member Functions inherited from tfel::math::MutableRuntimeArrayBase< Child, ArrayPolicy >
 MutableRuntimeArrayBase ()=default
 default constructor
 MutableRuntimeArrayBase (const typename ArrayPolicy::IndexingPolicy &)
 constructor from an indexing policy
 MutableRuntimeArrayBase (const MutableRuntimeArrayBase &)=default
 copy constructor
 MutableRuntimeArrayBase (MutableRuntimeArrayBase &&)=default
 move constructor
MutableRuntimeArrayBase & operator= (const MutableRuntimeArrayBase &)=default
 copy assignement
MutableRuntimeArrayBase & operator= (MutableRuntimeArrayBase &&)=default
 move assignement
TFEL_HOST_DEVICE constexpr const ArrayPolicy::IndexingPolicy & getIndexingPolicy () const noexcept
template<typename Functor>
void iterate (const Functor &)
 apply a multi-indices functor
Public Member Functions inherited from tfel::math::MutableArrayCommonMethods< Child, ArrayPolicy >
constexpr ArrayPolicy::reference operator() (const Indices... i) noexcept
constexpr void assign (const OtherArray &src) noexcept
constexpr void addAndAssign (const OtherArray &src) noexcept
constexpr void substractAndAssign (const OtherArray &src) noexcept
constexpr Child & operator= (const std::initializer_list< ValueType > &values) noexcept
constexpr void import (const ImportIndexingPolicy &policy, const InputIterator p, const InputIterator pe)
constexpr void fill (const ValueType2 &v)
constexpr void clamp (const ValueType2 &lower_bound, const ValueType3 &upper_bound)
constexpr void multiplyByScalar (const ValueType2 &s)
constexpr void divideByScalar (const ValueType2 &s)
TFEL_HOST_DEVICE constexpr ArrayPolicy::reference operator[] (const typename ArrayPolicy::IndexingPolicy::size_type) noexcept
 access operator
Public Member Functions inherited from tfel::math::ConstArrayCommonMethods< Child, ArrayPolicy >
constexpr ArrayPolicy::const_reference operator() (const Indices... i) const noexcept
TFEL_HOST_DEVICE constexpr ArrayPolicy::const_reference operator[] (const typename ArrayPolicy::IndexingPolicy::size_type) const noexcept
 access operator

Additional Inherited Members

Protected Member Functions inherited from tfel::math::GenericRuntimeArray< runtime_array< ValueType >, RuntimeVectorArrayPolicy< ValueType > >
GenericRuntimeArray & operator= (const GenericRuntimeArray &)
 assignement operator
GenericRuntimeArray & operator= (GenericRuntimeArray &&) noexcept
 move assigment
Protected Attributes inherited from tfel::math::GenericRuntimeArray< runtime_array< ValueType >, RuntimeVectorArrayPolicy< ValueType > >
Container data_values
 values holded

Detailed Description

template<typename ValueType>
struct tfel::math::runtime_array< ValueType >

a class representing array of dynamic size.

Member Typedef Documentation

◆ GenericRuntimeArrayBase

template<typename ValueType>
using tfel::math::runtime_array< ValueType >::GenericRuntimeArrayBase
Initial value:

a simple alias


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