Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::Materials::MaterialVariableScalarTraits< DataType > Class Template Reference

Characteristics for a scalar material variable. More...

#include <arcane/materials/MeshMaterialVariable.h>

Public Types

using ValueType = DataType
using SubViewType = DataType
using SubConstViewType = DataType
using SubInputViewType = DataType
using ContainerSpanType = SmallSpan<DataType>
using ContainerViewType = ArrayView<DataType>
using ContainerConstViewType = ConstArrayView<DataType>
using PrivatePartType = VariableArrayT<DataType>
using ValueDataType = IArrayDataT<DataType>
using ContainerType = Array<DataType>
using UniqueContainerType = UniqueArray<DataType>
using VariableRefType = VariableRefArrayT<DataType>

Static Public Member Functions

static ARCANE_MATERIALS_EXPORT void saveData (IMeshComponent *component, IData *data, Array< ContainerViewType > &cviews)
static ARCANE_MATERIALS_EXPORT void copyTo (SmallSpan< const DataType > input, SmallSpan< const Int32 > input_indexes, SmallSpan< DataType > output, SmallSpan< const Int32 > output_indexes, const RunQueue &queue)
static ARCANE_MATERIALS_EXPORT void resizeAndFillWithDefault (ValueDataType *data, ContainerType &container, Integer dim1_size)
static __host__ __device__ void setValue (DataType &view, const DataType &v)
static ARCANE_MATERIALS_EXPORT void resizeWithReserve (PrivatePartType *var, Int32 new_size, Real reserve_ratio)
static Integer dimension ()
static SmallSpan< std::byte > toBytes (ArrayView< DataType > view)

Detailed Description

template<typename DataType>
class Arcane::Materials::MaterialVariableScalarTraits< DataType >

Characteristics for a scalar material variable.

Definition at line 178 of file MeshMaterialVariable.h.

Member Typedef Documentation

◆ ContainerConstViewType

template<typename DataType>
using Arcane::Materials::MaterialVariableScalarTraits< DataType >::ContainerConstViewType = ConstArrayView<DataType>

Definition at line 189 of file MeshMaterialVariable.h.

◆ ContainerSpanType

template<typename DataType>
using Arcane::Materials::MaterialVariableScalarTraits< DataType >::ContainerSpanType = SmallSpan<DataType>

Definition at line 187 of file MeshMaterialVariable.h.

◆ ContainerType

template<typename DataType>
using Arcane::Materials::MaterialVariableScalarTraits< DataType >::ContainerType = Array<DataType>

Definition at line 192 of file MeshMaterialVariable.h.

◆ ContainerViewType

template<typename DataType>
using Arcane::Materials::MaterialVariableScalarTraits< DataType >::ContainerViewType = ArrayView<DataType>

Definition at line 188 of file MeshMaterialVariable.h.

◆ PrivatePartType

template<typename DataType>
using Arcane::Materials::MaterialVariableScalarTraits< DataType >::PrivatePartType = VariableArrayT<DataType>

Definition at line 190 of file MeshMaterialVariable.h.

◆ SubConstViewType

template<typename DataType>
using Arcane::Materials::MaterialVariableScalarTraits< DataType >::SubConstViewType = DataType

Definition at line 185 of file MeshMaterialVariable.h.

◆ SubInputViewType

template<typename DataType>
using Arcane::Materials::MaterialVariableScalarTraits< DataType >::SubInputViewType = DataType

Definition at line 186 of file MeshMaterialVariable.h.

◆ SubViewType

template<typename DataType>
using Arcane::Materials::MaterialVariableScalarTraits< DataType >::SubViewType = DataType

Definition at line 184 of file MeshMaterialVariable.h.

◆ UniqueContainerType

template<typename DataType>
using Arcane::Materials::MaterialVariableScalarTraits< DataType >::UniqueContainerType = UniqueArray<DataType>

Definition at line 193 of file MeshMaterialVariable.h.

◆ ValueDataType

template<typename DataType>
using Arcane::Materials::MaterialVariableScalarTraits< DataType >::ValueDataType = IArrayDataT<DataType>

Definition at line 191 of file MeshMaterialVariable.h.

◆ ValueType

template<typename DataType>
using Arcane::Materials::MaterialVariableScalarTraits< DataType >::ValueType = DataType

Definition at line 182 of file MeshMaterialVariable.h.

◆ VariableRefType

template<typename DataType>
using Arcane::Materials::MaterialVariableScalarTraits< DataType >::VariableRefType = VariableRefArrayT<DataType>

Definition at line 194 of file MeshMaterialVariable.h.

Member Function Documentation

◆ copyTo()

template<typename DataType>
void Arcane::Materials::MaterialVariableScalarTraits< DataType >::copyTo ( SmallSpan< const DataType > input,
SmallSpan< const Int32 > input_indexes,
SmallSpan< DataType > output,
SmallSpan< const Int32 > output_indexes,
const RunQueue & queue )
static

Definition at line 86 of file MeshMaterialVariableScalar.cc.

◆ dimension()

template<typename DataType>
Integer Arcane::Materials::MaterialVariableScalarTraits< DataType >::dimension ( )
inlinestatic

Definition at line 213 of file MeshMaterialVariable.h.

◆ resizeAndFillWithDefault()

template<typename DataType>
void Arcane::Materials::MaterialVariableScalarTraits< DataType >::resizeAndFillWithDefault ( ValueDataType * data,
ContainerType & container,
Integer dim1_size )
static

Definition at line 109 of file MeshMaterialVariableScalar.cc.

◆ resizeWithReserve()

template<typename DataType>
void Arcane::Materials::MaterialVariableScalarTraits< DataType >::resizeWithReserve ( PrivatePartType * var,
Int32 new_size,
Real reserve_ratio )
static

Definition at line 122 of file MeshMaterialVariableScalar.cc.

◆ saveData()

template<typename DataType>
void Arcane::Materials::MaterialVariableScalarTraits< DataType >::saveData ( IMeshComponent * component,
IData * data,
Array< ContainerViewType > & cviews )
static

Definition at line 65 of file MeshMaterialVariableScalar.cc.

◆ setValue()

template<typename DataType>
__host__ __device__ void Arcane::Materials::MaterialVariableScalarTraits< DataType >::setValue ( DataType & view,
const DataType & v )
inlinestatic

Definition at line 207 of file MeshMaterialVariable.h.

◆ toBytes()

template<typename DataType>
SmallSpan< std::byte > Arcane::Materials::MaterialVariableScalarTraits< DataType >::toBytes ( ArrayView< DataType > view)
inlinestatic

Definition at line 214 of file MeshMaterialVariable.h.


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