Value history of type T. More...
#include <arcane/impl/internal/TimeHistoryMngInternal.h>
Public Types | |
| typedef VariableRefArrayT< DataType > | ValueList |
| typedef VariableRefArrayT< Int32 > | IterationList |
Public Member Functions | |
| TimeHistoryValueT (IVariableMng *vm, const TimeHistoryAddValueArgInternal &thpi, Integer index, Integer nb_element, bool shrink) | |
| Constructor for building a value history not linked to a mesh. | |
| TimeHistoryValueT (const TimeHistoryAddValueArgInternal &thpi, Integer index, Integer nb_element, bool shrink) | |
| Constructor for building a value history linked to a mesh. | |
| void | fromOldToNewVariables (IVariableMng *vm, IMesh *default_mesh) override |
| Method allowing the conversion of variables from old saves to the new format. | |
| Integer | size () const override |
| Method allowing the retrieval of the number of recorded values. | |
| void | addValue (ConstArrayView< DataType > values, Integer iteration) |
| Method allowing the addition of values to an iteration. | |
| void | removeAfterIteration (Integer last_iteration) override |
| Method allowing the removal of all values after a certain iteration. | |
| void | dumpValues (ITraceMng *msg, ITimeHistoryCurveWriter2 *writer, const TimeHistoryCurveWriterInfo &infos) const override |
| Prints the history values using the writer writer. | |
| void | applyTransformation (ITraceMng *msg, ITimeHistoryTransformer *v) override |
| Method allowing the application of a transformation on the values of the value history. | |
| void | arrayToWrite (UniqueArray< Int32 > &iterations, UniqueArray< Real > &values, const TimeHistoryCurveWriterInfo &infos) const override |
| Method allowing the retrieval of iterations and values from a value history. | |
| const ValueList & | values () const |
| const IterationList & | iterations () const |
| Public Member Functions inherited from Arcane::TimeHistoryValue | |
| TimeHistoryValue (const TimeHistoryAddValueArgInternal &thpi, eDataType dt, Integer index, Integer sub_size) | |
| virtual | ~TimeHistoryValue ()=default |
| Frees resources. | |
| const String & | name () const |
| History name. | |
| eDataType | dataType () const |
| History data type. | |
| Integer | index () const |
| History index in the list. | |
| Integer | subSize () const |
| const MeshHandle & | meshHandle () const |
| Method allowing the retrieval of the registered MeshHandle. | |
| bool | isLocal () const |
| Method allowing determination if it is a global history or local to a subdomain. | |
| Integer | localSubDomainId () const |
| Method allowing the retrieval of the subdomain ID to which this history belongs. | |
Public Attributes | |
| const int | VAR_BUILD_FLAGS = IVariable::PNoRestore | IVariable::PExecutionDepend | IVariable::PNoReplicaSync |
Static Public Attributes | |
| static const Integer | COMPRESSED_TAG = -15 |
Private Attributes | |
| ValueList | m_values |
| IterationList | m_iterations |
| bool | m_use_compression |
| bool | m_shrink_history |
Value history of type T.
Currently, only three types of values are supported: Real, Int32 and Int64.
A history is composed of an array of pairs (x,y) where x is the iteration number and y is the history value.
Histories must be sorted in ascending order of iteration.
Definition at line 180 of file TimeHistoryMngInternal.h.
| typedef VariableRefArrayT<Int32> Arcane::TimeHistoryValueT< DataType >::IterationList |
Definition at line 196 of file TimeHistoryMngInternal.h.
| typedef VariableRefArrayT<DataType> Arcane::TimeHistoryValueT< DataType >::ValueList |
Definition at line 195 of file TimeHistoryMngInternal.h.
|
inline |
Constructor for building a value history not linked to a mesh.
| vm | The variableMng to create the variables. |
| thpi | The arguments to create the history. |
| index | The index of the global variables. |
| nb_element | The number of values per iteration. |
| shrink | If there is compression. |
Definition at line 214 of file TimeHistoryMngInternal.h.
References Arcane::TimeHistoryValue::index().
|
inline |
Constructor for building a value history linked to a mesh.
| thpi | The arguments to create the history. |
| index | The index of the global variables. |
| nb_element | The number of values per iteration. |
| shrink | If there is compression. |
Definition at line 231 of file TimeHistoryMngInternal.h.
References Arcane::TimeHistoryValue::index(), and Arcane::TimeHistoryValue::meshHandle().
|
inline |
Method allowing the addition of values to an iteration.
| values | The values to add. |
| iteration | The iteration linked to the values. |
Definition at line 273 of file TimeHistoryMngInternal.h.
References Arcane::math::max().
Referenced by Arcane::TimeHistoryMngInternal::_addHistoryValue().
|
inlineoverridevirtual |
Method allowing the application of a transformation on the values of the value history.
| msg | The traceMng where messages should be written. |
| v | The transformer. |
Implements Arcane::TimeHistoryValue.
Definition at line 336 of file TimeHistoryMngInternal.h.
References Arcane::ITimeHistoryTransformer::CommonInfo::iterations, Arcane::ITimeHistoryTransformer::CommonInfo::name, Arcane::TimeHistoryValue::name(), Arcane::ITimeHistoryTransformer::CommonInfo::sub_size, Arcane::ITimeHistoryTransformer::transform(), and Arcane::ITraceMng::warning().
|
inlineoverridevirtual |
Method allowing the retrieval of iterations and values from a value history.
| iterations | [OUT] The iterations where each value was retrieved. |
| values | [OUT] The retrieved values. |
| infos | The information necessary to retrieve the history. |
Implements Arcane::TimeHistoryValue.
Definition at line 365 of file TimeHistoryMngInternal.h.
References Arcane::ConstArrayView< T >::size(), Arcane::TimeHistoryCurveWriterInfo::times(), and Arcane::Convert::toReal().
Referenced by dumpValues().
|
inlineoverridevirtual |
Prints the history values using the writer writer.
Implements Arcane::TimeHistoryValue.
Definition at line 310 of file TimeHistoryMngInternal.h.
References arrayToWrite(), Arcane::TimeHistoryValue::localSubDomainId(), Arcane::TimeHistoryValue::meshHandle(), Arcane::TimeHistoryValue::name(), and Arcane::ITimeHistoryCurveWriter2::writeCurve().
|
inlineoverridevirtual |
Method allowing the conversion of variables from old saves to the new format.
| vm | The VariableMng. |
| default_mesh | The default mesh. |
Implements Arcane::TimeHistoryValue.
Definition at line 242 of file TimeHistoryMngInternal.h.
References ARCANE_FATAL, Arcane::IVariableMng::findMeshVariable(), Arcane::TimeHistoryValue::index(), Arcane::VariableRefArrayT< T >::resize(), and Arcane::ArrayView< T >::size().
|
inline |
Definition at line 388 of file TimeHistoryMngInternal.h.
|
inlineoverridevirtual |
Method allowing the removal of all values after a certain iteration.
| last_iteration | The desired last iteration. |
Implements Arcane::TimeHistoryValue.
Definition at line 294 of file TimeHistoryMngInternal.h.
References size().
|
inlineoverridevirtual |
Method allowing the retrieval of the number of recorded values.
Implements Arcane::TimeHistoryValue.
Definition at line 262 of file TimeHistoryMngInternal.h.
Referenced by removeAfterIteration().
|
inline |
Definition at line 387 of file TimeHistoryMngInternal.h.
|
static |
Definition at line 197 of file TimeHistoryMngInternal.h.
|
private |
Definition at line 393 of file TimeHistoryMngInternal.h.
|
private |
Definition at line 395 of file TimeHistoryMngInternal.h.
|
private |
Definition at line 394 of file TimeHistoryMngInternal.h.
|
private |
Definition at line 392 of file TimeHistoryMngInternal.h.
| const int Arcane::TimeHistoryValueT< DataType >::VAR_BUILD_FLAGS = IVariable::PNoRestore | IVariable::PExecutionDepend | IVariable::PNoReplicaSync |
Definition at line 201 of file TimeHistoryMngInternal.h.