Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ArrayExtentsBase< Extents > Class Template Reference

Class to maintain the number of elements in each dimension. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/base/arccore/base/ArrayExtents.h>

Inheritance diagram for Arcane::ArrayExtentsBase< Extents >:
Collaboration diagram for Arcane::ArrayExtentsBase< Extents >:

Public Member Functions

__host__ __device__ void setExtent0 (Int32 v)
 TEMPORARY: Sets the number of elements of dimension 0 to v.
__host__ __device__ ArrayExtentsPreviousRank removeFirstExtent () const
template<Int32 I>
constexpr __host__ __device__ Int64 constLargeExtent () const

Static Public Member Functions

__host__ static __device__ ArrayExtentsBase< Extents > fromSpan (SmallSpan< const Int32 > extents)
 Constructs an instance from the values given in extents.

Protected Types

using BaseClass = typename Extents::ArrayExtentsValueType
using ArrayExtentsPreviousRank = ArrayExtentsBase<typename Extents::RemovedFirstExtentsType>
using DynamicDimsType = typename Extents::DynamicDimsType

Protected Member Functions

constexpr __host__ __device__ ArrayExtentsBase (SmallSpan< const Int32 > extents)
constexpr __host__ __device__ ArrayExtentsBase (DynamicDimsType extents)

Detailed Description

template<typename Extents>
class Arcane::ArrayExtentsBase< Extents >

Class to maintain the number of elements in each dimension.

Definition at line 139 of file arccore/src/base/arccore/base/ArrayExtents.h.

Member Typedef Documentation

◆ ArrayExtentsPreviousRank

template<typename Extents>
using Arcane::ArrayExtentsBase< Extents >::ArrayExtentsPreviousRank = ArrayExtentsBase<typename Extents::RemovedFirstExtentsType>
protected

◆ BaseClass

template<typename Extents>
using Arcane::ArrayExtentsBase< Extents >::BaseClass = typename Extents::ArrayExtentsValueType
protected

◆ DynamicDimsType

template<typename Extents>
using Arcane::ArrayExtentsBase< Extents >::DynamicDimsType = typename Extents::DynamicDimsType
protected

Constructor & Destructor Documentation

◆ ArrayExtentsBase() [1/3]

template<typename Extents>
__host__ __device__ constexpr Arcane::ArrayExtentsBase< Extents >::ArrayExtentsBase ( )
inlineconstexpr

◆ ArrayExtentsBase() [2/3]

template<typename Extents>
__host__ __device__ Arcane::ArrayExtentsBase< Extents >::ArrayExtentsBase ( SmallSpan< const Int32 > extents)
inlineexplicitconstexprprotected

◆ ArrayExtentsBase() [3/3]

template<typename Extents>
__host__ __device__ Arcane::ArrayExtentsBase< Extents >::ArrayExtentsBase ( DynamicDimsType extents)
inlineexplicitconstexprprotected

Member Function Documentation

◆ constLargeExtent()

template<typename Extents>
template<Int32 I>
__host__ __device__ Int64 Arcane::ArrayExtentsBase< Extents >::constLargeExtent ( ) const
inlineconstexpr

◆ fromSpan()

template<typename Extents>
__host__ static __device__ ArrayExtentsBase< Extents > Arcane::ArrayExtentsBase< Extents >::fromSpan ( SmallSpan< const Int32 > extents)
inlinestatic

Constructs an instance from the values given in extents.

Definition at line 195 of file arccore/src/base/arccore/base/ArrayExtents.h.

Referenced by Arcane::MeshMDVariableRefBaseT< ItemType, DataType, AddedFirstExtentsType >::updateFromInternal().

Here is the caller graph for this function:

◆ removeFirstExtent()

template<typename Extents>
__host__ __device__ ArrayExtentsPreviousRank Arcane::ArrayExtentsBase< Extents >::removeFirstExtent ( ) const
inline

◆ setExtent0()

template<typename Extents>
__host__ __device__ void Arcane::ArrayExtentsBase< Extents >::setExtent0 ( Int32 v)
inline

TEMPORARY: Sets the number of elements of dimension 0 to v.

Definition at line 177 of file arccore/src/base/arccore/base/ArrayExtents.h.


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