Private section of a material variable. More...
#include <arcane/materials/internal/MeshMaterialVariablePrivate.h>
Public Member Functions | |
| MeshMaterialVariablePrivate (const MaterialVariableBuildInfo &v, MatVarSpace mvs, MeshMaterialVariable *variable) | |
| MatVarSpace | space () const |
| bool | hasRecursiveDepend () const |
| const String & | name () const |
| IMeshMaterialMng * | materialMng () const |
| IMeshMaterialVariableInternal * | _internalApi () |
| Int32 | dataTypeSize () const override |
| Byte size to save a variable value. | |
| void | copyToBuffer (SmallSpan< const MatVarIndex > matvar_indexes, Span< std::byte > bytes, RunQueue *queue) const override |
| Copies the variable values into a buffer. | |
| void | copyFromBuffer (SmallSpan< const MatVarIndex > matvar_indexes, Span< const std::byte > bytes, RunQueue *queue) override |
| Copies the variable values from a buffer. | |
| Ref< IData > | internalCreateSaveDataRef (Integer nb_value) override |
| void | saveData (IMeshComponent *component, IData *data) override |
| void | restoreData (IMeshComponent *component, IData *data, Integer data_index, Int32ConstArrayView ids, bool allow_null_id) override |
| void | copyBetweenPartialAndGlobal (const CopyBetweenPartialAndGlobalArgs &args) override |
| void | initializeNewItemsWithZero (InitializeWithZeroArgs &args) override |
| Initialize the values of new components with zero. | |
| ConstArrayView< VariableRef * > | variableReferenceList () const override |
| List of 'VariableRef' associated with this variable. | |
| void | syncReferences (bool check_resize) override |
| Synchronizes references. | |
| void | resizeForIndexer (ResizeVariableIndexerArgs &args) override |
| Resizes the partial value associated with index index. | |
Public Attributes | |
| Int32 | m_nb_reference = 0 |
| MeshMaterialVariableRef * | m_first_reference = nullptr |
| UniqueArray< VariableRef * > | m_refs |
| Stores references to array variables used to store values per material. A reference must be kept to prevent the variable from being destroyed if it is no longer used elsewhere. | |
| bool | m_keep_on_change = true |
| IObserver * | m_global_variable_changed_observer = nullptr |
| UniqueArray< MeshMaterialVariableDependInfo > | m_mat_depends |
| List of dependencies for this variable. | |
| UniqueArray< VariableDependInfo > | m_depends |
| List of dependencies for this variable. | |
| UniqueArray< Int64 > | m_modified_times |
| Tag of the last modification per material. | |
| ScopedPtrT< IMeshMaterialVariableComputeFunction > | m_compute_function |
| Calculation function. | |
Private Attributes | |
| String | m_name |
| First reference on the variable. | |
| IMeshMaterialMng * | m_material_mng = nullptr |
| bool | m_has_recursive_depend = true |
| MatVarSpace | m_var_space = MatVarSpace::MaterialAndEnvironment |
| MeshMaterialVariable * | m_variable = nullptr |
Private section of a material variable.
Definition at line 43 of file MeshMaterialVariablePrivate.h.
| Arcane::Materials::MeshMaterialVariablePrivate::MeshMaterialVariablePrivate | ( | const MaterialVariableBuildInfo & | v, |
| MatVarSpace | mvs, | ||
| MeshMaterialVariable * | variable ) |
Definition at line 60 of file MeshMaterialVariable.cc.
| Arcane::Materials::MeshMaterialVariablePrivate::~MeshMaterialVariablePrivate | ( | ) |
Definition at line 76 of file MeshMaterialVariable.cc.
|
inline |
Definition at line 58 of file MeshMaterialVariablePrivate.h.
|
overridevirtual |
Implements Arcane::Materials::IMeshMaterialVariableInternal.
Definition at line 143 of file MeshMaterialVariable.cc.
|
overridevirtual |
Copies the variable values from a buffer.
queue may be null.
Implements Arcane::Materials::IMeshMaterialVariableInternal.
Definition at line 105 of file MeshMaterialVariable.cc.
|
overridevirtual |
Copies the variable values into a buffer.
queue may be null.
Implements Arcane::Materials::IMeshMaterialVariableInternal.
Definition at line 95 of file MeshMaterialVariable.cc.
|
overridevirtual |
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.
Implements Arcane::Materials::IMeshMaterialVariableInternal.
Definition at line 86 of file MeshMaterialVariable.cc.
|
inline |
Definition at line 55 of file MeshMaterialVariablePrivate.h.
|
overridevirtual |
Initialize the values of new components with zero.
Implements Arcane::Materials::IMeshMaterialVariableInternal.
Definition at line 152 of file MeshMaterialVariable.cc.
|
overridevirtual |
Implements Arcane::Materials::IMeshMaterialVariableInternal.
Definition at line 115 of file MeshMaterialVariable.cc.
|
inline |
Definition at line 57 of file MeshMaterialVariablePrivate.h.
|
inline |
Definition at line 56 of file MeshMaterialVariablePrivate.h.
|
overridevirtual |
Resizes the partial value associated with index index.
Implements Arcane::Materials::IMeshMaterialVariableInternal.
Definition at line 170 of file MeshMaterialVariable.cc.
|
overridevirtual |
Implements Arcane::Materials::IMeshMaterialVariableInternal.
Definition at line 133 of file MeshMaterialVariable.cc.
|
overridevirtual |
Implements Arcane::Materials::IMeshMaterialVariableInternal.
Definition at line 124 of file MeshMaterialVariable.cc.
|
inline |
Definition at line 54 of file MeshMaterialVariablePrivate.h.
|
overridevirtual |
Synchronizes references.
Implements Arcane::Materials::IMeshMaterialVariableInternal.
Definition at line 161 of file MeshMaterialVariable.cc.
|
inlineoverridevirtual |
List of 'VariableRef' associated with this variable.
Implements Arcane::Materials::IMeshMaterialVariableInternal.
Definition at line 80 of file MeshMaterialVariablePrivate.h.
References m_refs.
| ScopedPtrT<IMeshMaterialVariableComputeFunction> Arcane::Materials::MeshMaterialVariablePrivate::m_compute_function |
Calculation function.
Definition at line 120 of file MeshMaterialVariablePrivate.h.
| UniqueArray<VariableDependInfo> Arcane::Materials::MeshMaterialVariablePrivate::m_depends |
List of dependencies for this variable.
Definition at line 114 of file MeshMaterialVariablePrivate.h.
| MeshMaterialVariableRef* Arcane::Materials::MeshMaterialVariablePrivate::m_first_reference = nullptr |
Definition at line 90 of file MeshMaterialVariablePrivate.h.
| IObserver* Arcane::Materials::MeshMaterialVariablePrivate::m_global_variable_changed_observer = nullptr |
Definition at line 108 of file MeshMaterialVariablePrivate.h.
|
private |
Definition at line 124 of file MeshMaterialVariablePrivate.h.
| bool Arcane::Materials::MeshMaterialVariablePrivate::m_keep_on_change = true |
Definition at line 107 of file MeshMaterialVariablePrivate.h.
| UniqueArray<MeshMaterialVariableDependInfo> Arcane::Materials::MeshMaterialVariablePrivate::m_mat_depends |
List of dependencies for this variable.
Definition at line 111 of file MeshMaterialVariablePrivate.h.
|
private |
Definition at line 95 of file MeshMaterialVariablePrivate.h.
| UniqueArray<Int64> Arcane::Materials::MeshMaterialVariablePrivate::m_modified_times |
Tag of the last modification per material.
Definition at line 117 of file MeshMaterialVariablePrivate.h.
|
private |
First reference on the variable.
Definition at line 94 of file MeshMaterialVariablePrivate.h.
| Int32 Arcane::Materials::MeshMaterialVariablePrivate::m_nb_reference = 0 |
Definition at line 89 of file MeshMaterialVariablePrivate.h.
| UniqueArray<VariableRef*> Arcane::Materials::MeshMaterialVariablePrivate::m_refs |
Stores references to array variables used to store values per material. A reference must be kept to prevent the variable from being destroyed if it is no longer used elsewhere.
Definition at line 105 of file MeshMaterialVariablePrivate.h.
Referenced by variableReferenceList().
|
private |
Definition at line 125 of file MeshMaterialVariablePrivate.h.
|
private |
Definition at line 126 of file MeshMaterialVariablePrivate.h.