Class managing a multi-dimensional 'NumVector' type variable on a mesh entity. More...
#include <arcane/core/MeshMDVariableRef.h>
Public Types | |
| using | NumVectorType = NumVector<DataType, Size> |
| using | ItemLocalIdType = typename ItemType::LocalIdType |
| using | ReferenceType = DataViewGetterSetter<NumVectorType> |
| using | ConstReferenceType = DataViewGetter<NumVectorType> |
| using | MDSpanType = MDSpan<NumVectorType, AddedFirstExtentsType, RightLayout> |
| Public Types inherited from Arcane::MeshMDVariableRefBaseT< ItemType, DataType, Extents::template AddedFirstLastExtentsType< DynExtent, Size > > | |
| using | UnderlyingVariableType |
| using | MDSpanType |
| using | ItemLocalIdType |
| using | FullExtentsType |
Public Member Functions | |
| MeshVectorMDVariableRefT (const VariableBuildInfo &b) | |
| template<typename X = Extents, typename = std::enable_if_t<X::rank() == 0, void>> | |
| ReferenceType | operator() (ItemLocalIdType id) |
| Accesses the data for reading/writing. | |
| template<typename X = Extents, typename = std::enable_if_t<X::rank() == 0, void>> | |
| ConstReferenceType | operator() (ItemLocalIdType id) const |
| Accesses the data for reading. | |
| template<typename X = Extents, typename = std::enable_if_t<X::rank() == 1, void>> | |
| ReferenceType | operator() (ItemLocalIdType id, Int32 i1) |
| Accesses the data for reading/writing. | |
| template<typename X = Extents, typename = std::enable_if_t<X::rank() == 1, void>> | |
| ConstReferenceType | operator() (ItemLocalIdType id, Int32 i1) const |
| Accesses the data for reading. | |
| template<typename X = Extents, typename = std::enable_if_t<X::rank() == 2, void>> | |
| ReferenceType | operator() (ItemLocalIdType id, Int32 i1, Int32 i2) |
| Accesses the data for reading/writing. | |
| template<typename X = Extents, typename = std::enable_if_t<X::rank() == 2, void>> | |
| ConstReferenceType | operator() (ItemLocalIdType id, Int32 i1, Int32 i2) const |
| Accesses the data for reading. | |
| void | reshape (std::array< Int32, Extents::nb_dynamic > dims) |
| Changes the data shape. | |
| Public Member Functions inherited from Arcane::MeshMDVariableRefBaseT< ItemType, DataType, Extents::template AddedFirstLastExtentsType< DynExtent, Size > > | |
| MeshMDVariableRefBaseT (const VariableBuildInfo &b) | |
| UnderlyingVariableType & | underlyingVariable () |
| Associated underlying variable. | |
| ArrayShape | fullShape () const |
| Full shape (static + dynamic) of the variable. | |
| Public Member Functions inherited from Arcane::MeshVariableRef | |
| MeshVariableRef (const VariableBuildInfo &vb) | |
| Constructs a reference linked to the module. | |
| void | synchronize () |
| void | synchronize (Int32ConstArrayView local_ids) |
| Public Member Functions inherited from Arcane::VariableRef | |
| virtual | ~VariableRef () |
| Releases resources. | |
| ISubDomain * | subDomain () const |
| Sub-domain associated with the variable (TODO deprecate end of 2023). | |
| IVariableMng * | variableMng () const |
| Variable manager associated with the variable. | |
| String | name () const |
| Variable name. | |
| virtual eDataType | dataType () const |
| Variable type (Real, Integer, ...). | |
| virtual void | print (std::ostream &o) const |
| Prints the variable value. | |
| virtual IModule * | module () const |
| Module associated with the variable (or nullptr, if none). | |
| virtual int | property () const |
| Variable properties. | |
| virtual int | referenceProperty () const |
| Reference properties (internal). | |
| virtual void | setProperty (int property) |
| Sets the property property. | |
| virtual void | unsetProperty (int property) |
| Unsets the property property. | |
| virtual void | registerVariable () |
| Registers the variable (internal). | |
| virtual void | unregisterVariable () |
| Unregisters the variable (internal). | |
| IVariable * | variable () const |
| Associated variable. | |
| virtual Integer | checkIfSync (int max_print=0) |
| Checks if the variable is synchronized. | |
| virtual Integer | checkIfSameOnAllReplica (int max_print=0) |
| Checks if the variable has the same values on all replicas. | |
| virtual Integer | arraySize () const |
| If the variable is an array, returns its dimension, otherwise returns 0. | |
| void | setUsed (bool v) |
| bool | isUsed () const |
| virtual void | internalSetUsed (bool) |
| const String & | assignmentStackTrace () const |
| Call stack at the time of assigning this instance. | |
| void | addTag (const String &tagname, const String &tagvalue) |
| Adds the tag tagname with the value tagvalue. | |
| void | removeTag (const String &tagname) |
| Removes the tag tagname. | |
| bool | hasTag (const String &tagname) const |
| true if the variable has the tag tagname | |
| String | tagValue (const String &tagname) const |
| Value of the tag tagname. The string is null if the tag does not exist. | |
| void | update () |
| Recalculates the variable if necessary. | |
| void | setUpToDate () |
| Indicates that the variable has just been updated. | |
| Int64 | modifiedTime () |
| Time when the variable was updated. | |
| void | addDependCurrentTime (const VariableRef &var) |
| Adds var to the dependency list at the current time. | |
| void | addDependCurrentTime (const VariableRef &var, const TraceInfo &tinfo) |
| Adds var to the dependency list at the current time with trace info tinfo. | |
| void | addDependPreviousTime (const VariableRef &var) |
| Adds var to the dependency list at the previous time. | |
| void | addDependPreviousTime (const VariableRef &var, const TraceInfo &tinfo) |
| Adds var to the dependency list at the previous time with trace info tinfo. | |
| void | removeDepend (const VariableRef &var) |
| Removes var from the dependency list. | |
| template<typename ClassType> | |
| void | setComputeFunction (ClassType *instance, void(ClassType::*func)()) |
| Sets the variable's recalculation function. | |
| template<typename ClassType> | |
| void | setComputeFunction (ClassType *instance, void(ClassType::*func)(), const TraceInfo &tinfo) |
| Sets the variable's recalculation function. | |
| VariableRef * | previousReference () |
| Previous reference (or null) to variable(). | |
| VariableRef * | nextReference () |
| Next reference (or null) to variable(). | |
| void | setPreviousReference (VariableRef *v) |
| Sets the previous reference. | |
| void | setNextReference (VariableRef *v) |
| Sets the next reference. | |
Static Public Attributes | |
| static constexpr int | nb_dynamic = Extents::nb_dynamic |
Protected Member Functions | |
| void | updateFromInternal () override |
| Updates from the internal part. | |
| Protected Member Functions inherited from Arcane::MeshVariableRef | |
| MeshVariableRef (const MeshVariableRef &rhs) | |
| MeshVariableRef (IVariable *var) | |
| void | operator= (const MeshVariableRef &rhs) |
| void | _internalInit (IVariable *) |
| Protected Member Functions inherited from Arcane::VariableRef | |
| VariableRef (const VariableBuildInfo &vbi) | |
| Constructs a reference to a variable with the infos vbi. | |
| VariableRef (const VariableRef &from) | |
| Copy constructor. | |
| VariableRef (IVariable *var) | |
| Constructs a reference to a variable var. | |
| VariableRef & | operator= (const VariableRef &from) |
| Copy assignment operator. | |
| VariableRef () | |
| Default constructor. | |
| void | _setComputeFunction (IVariableComputeFunction *v) |
| void | _internalInit (IVariable *) |
| Internal initialization of the variable. | |
| IVariable * | _variable () const |
| Referenced variable. | |
| void | _executeUpdateFunctors () |
| void | _internalAssignVariable (const VariableRef &var) |
Private Types | |
| using | BasicType = typename DataTypeTraitsT<DataType>::BasicType |
| using | AddedFirstLastExtentsType = typename Extents::template AddedFirstLastExtentsType<DynExtent, Size> |
| using | AddedFirstExtentsType = typename Extents::template AddedFirstExtentsType<DynExtent> |
| using | BaseClass = MeshMDVariableRefBaseT<ItemType, DataType, AddedFirstLastExtentsType> |
Private Attributes | |
| MDSpanType | m_vector_mdspan |
Additional Inherited Members | |
| static void | setTraceCreation (bool v) |
| static bool | hasTraceCreation () |
| Protected Attributes inherited from Arcane::MeshMDVariableRefBaseT< ItemType, DataType, Extents::template AddedFirstLastExtentsType< DynExtent, Size > > | |
| impl::MeshMDVariableRefWrapperT< ItemType, DataType > | m_underlying_var |
| MDSpanType | m_mdspan |
| bool | m_has_trace = false |
Class managing a multi-dimensional 'NumVector' type variable on a mesh entity.
Definition at line 241 of file MeshMDVariableRef.h.
|
private |
Definition at line 252 of file MeshMDVariableRef.h.
|
private |
Definition at line 251 of file MeshMDVariableRef.h.
|
private |
Definition at line 253 of file MeshMDVariableRef.h.
|
private |
Definition at line 250 of file MeshMDVariableRef.h.
| using Arcane::MeshVectorMDVariableRefT< ItemType, DataType, Size, Extents >::ConstReferenceType = DataViewGetter<NumVectorType> |
Definition at line 261 of file MeshMDVariableRef.h.
| using Arcane::MeshVectorMDVariableRefT< ItemType, DataType, Size, Extents >::ItemLocalIdType = typename ItemType::LocalIdType |
Definition at line 259 of file MeshMDVariableRef.h.
| using Arcane::MeshVectorMDVariableRefT< ItemType, DataType, Size, Extents >::MDSpanType = MDSpan<NumVectorType, AddedFirstExtentsType, RightLayout> |
Definition at line 262 of file MeshMDVariableRef.h.
| using Arcane::MeshVectorMDVariableRefT< ItemType, DataType, Size, Extents >::NumVectorType = NumVector<DataType, Size> |
Definition at line 246 of file MeshMDVariableRef.h.
| using Arcane::MeshVectorMDVariableRefT< ItemType, DataType, Size, Extents >::ReferenceType = DataViewGetterSetter<NumVectorType> |
Definition at line 260 of file MeshMDVariableRef.h.
|
inlineexplicit |
Definition at line 267 of file MeshMDVariableRef.h.
|
inline |
Accesses the data for reading/writing.
Definition at line 275 of file MeshMDVariableRef.h.
|
inline |
Accesses the data for reading.
Definition at line 282 of file MeshMDVariableRef.h.
|
inline |
Accesses the data for reading/writing.
Definition at line 289 of file MeshMDVariableRef.h.
|
inline |
Accesses the data for reading.
Definition at line 296 of file MeshMDVariableRef.h.
|
inline |
Accesses the data for reading/writing.
Definition at line 303 of file MeshMDVariableRef.h.
|
inline |
Accesses the data for reading.
Definition at line 310 of file MeshMDVariableRef.h.
|
inline |
Changes the data shape.
The number of elements in dims must correspond to the number of dynamic values in Extents.
Definition at line 321 of file MeshMDVariableRef.h.
|
inlineoverrideprotectedvirtual |
Updates from the internal part.
Reimplemented from Arcane::MeshMDVariableRefBaseT< ItemType, DataType, Extents::template AddedFirstLastExtentsType< DynExtent, Size > >.
Definition at line 334 of file MeshMDVariableRef.h.
References Arcane::MeshMDVariableRefBaseT< ItemType, DataType, AddedFirstLastExtentsType >::updateFromInternal().
|
private |
Definition at line 348 of file MeshMDVariableRef.h.
|
staticconstexpr |
Definition at line 263 of file MeshMDVariableRef.h.