Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Materials::IMeshMaterialVariableInternal Class Referenceabstract

Arcane internal API for 'IMeshMaterialVariable'. More...

#include <arcane/core/materials/internal/IMeshMaterialVariableInternal.h>

Inheritance diagram for Arcane::Materials::IMeshMaterialVariableInternal:
Collaboration diagram for Arcane::Materials::IMeshMaterialVariableInternal:

Public Member Functions

virtual Int32 dataTypeSize () const =0
 Byte size to save a variable value.
virtual void copyToBuffer (SmallSpan< const MatVarIndex > matvar_indexes, Span< std::byte > bytes, RunQueue *queue) const =0
 Copies the variable values into a buffer.
virtual void copyFromBuffer (SmallSpan< const MatVarIndex > matvar_indexes, Span< const std::byte > bytes, RunQueue *queue)=0
 Copies the variable values from a buffer.
virtual Ref< IDatainternalCreateSaveDataRef (Integer nb_value)=0
virtual void saveData (IMeshComponent *component, IData *data)=0
virtual void restoreData (IMeshComponent *component, IData *data, Integer data_index, Int32ConstArrayView ids, bool allow_null_id)=0
virtual void copyBetweenPartialAndGlobal (const CopyBetweenPartialAndGlobalArgs &args)=0
virtual void initializeNewItemsWithZero (InitializeWithZeroArgs &args)=0
 Initialize the values of new components with zero.
virtual ConstArrayView< VariableRef * > variableReferenceList () const =0
 List of 'VariableRef' associated with this variable.
virtual void syncReferences (bool check_resize)=0
 Synchronizes references.
virtual void resizeForIndexer (ResizeVariableIndexerArgs &args)=0
 Resizes the partial value associated with index index.

Detailed Description

Arcane internal API for 'IMeshMaterialVariable'.

Definition at line 164 of file IMeshMaterialVariableInternal.h.

Member Function Documentation

◆ copyBetweenPartialAndGlobal()

virtual void Arcane::Materials::IMeshMaterialVariableInternal::copyBetweenPartialAndGlobal ( const CopyBetweenPartialAndGlobalArgs & args)
pure virtual

◆ copyFromBuffer()

virtual void Arcane::Materials::IMeshMaterialVariableInternal::copyFromBuffer ( SmallSpan< const MatVarIndex > matvar_indexes,
Span< const std::byte > bytes,
RunQueue * queue )
pure virtual

Copies the variable values from a buffer.

queue may be null.

Implemented in Arcane::Materials::MeshMaterialVariablePrivate.

◆ copyToBuffer()

virtual void Arcane::Materials::IMeshMaterialVariableInternal::copyToBuffer ( SmallSpan< const MatVarIndex > matvar_indexes,
Span< std::byte > bytes,
RunQueue * queue ) const
pure virtual

Copies the variable values into a buffer.

queue may be null.

Implemented in Arcane::Materials::MeshMaterialVariablePrivate.

◆ dataTypeSize()

virtual Int32 Arcane::Materials::IMeshMaterialVariableInternal::dataTypeSize ( ) const
pure virtual

Byte size to save a variable value.

For a scalar variable, this is the size of the associated data type. For an array variable, this is the size of the data type multiplied by the number of elements in the array.

Implemented in Arcane::Materials::MeshMaterialVariablePrivate.

◆ initializeNewItemsWithZero()

virtual void Arcane::Materials::IMeshMaterialVariableInternal::initializeNewItemsWithZero ( InitializeWithZeroArgs & args)
pure virtual

Initialize the values of new components with zero.

Implemented in Arcane::Materials::MeshMaterialVariablePrivate.

◆ internalCreateSaveDataRef()

virtual Ref< IData > Arcane::Materials::IMeshMaterialVariableInternal::internalCreateSaveDataRef ( Integer nb_value)
pure virtual

◆ resizeForIndexer()

virtual void Arcane::Materials::IMeshMaterialVariableInternal::resizeForIndexer ( ResizeVariableIndexerArgs & args)
pure virtual

Resizes the partial value associated with index index.

Implemented in Arcane::Materials::MeshMaterialVariablePrivate.

◆ restoreData()

virtual void Arcane::Materials::IMeshMaterialVariableInternal::restoreData ( IMeshComponent * component,
IData * data,
Integer data_index,
Int32ConstArrayView ids,
bool allow_null_id )
pure virtual

◆ saveData()

virtual void Arcane::Materials::IMeshMaterialVariableInternal::saveData ( IMeshComponent * component,
IData * data )
pure virtual

◆ syncReferences()

virtual void Arcane::Materials::IMeshMaterialVariableInternal::syncReferences ( bool check_resize)
pure virtual

Synchronizes references.

Implemented in Arcane::Materials::MeshMaterialVariablePrivate.

Referenced by Arcane::Materials::MeshMaterialMng::syncVariablesReferences().

Here is the caller graph for this function:

◆ variableReferenceList()

virtual ConstArrayView< VariableRef * > Arcane::Materials::IMeshMaterialVariableInternal::variableReferenceList ( ) const
pure virtual

List of 'VariableRef' associated with this variable.

Implemented in Arcane::Materials::MeshMaterialVariablePrivate.

Referenced by Arcane::VariableUtils::markVariableAsMostlyReadOnly().

Here is the caller graph for this function:

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