Arguments for the event notifying a variable synchronization. More...
#include <arcane/core/VariableSynchronizerEventArgs.h>
Public Types | |
| enum class | State { BeginSynchronize , EndSynchronize } |
| Enum to know if we are at the beginning or the end of the synchronization. More... | |
| enum class | CompareStatus { Unknown , Same , Different } |
| Comparison of phantom entity values before/after a synchronization. More... | |
Private Member Functions | |
| void | _reset () |
Private Attributes | |
| IVariableSynchronizer * | m_var_syncer = nullptr |
| UniqueArray< IVariable * > | m_variables |
| UniqueArray< CompareStatus > | m_compare_status_list |
| Real | m_elapsed_time = 0.0 |
| State | m_state = State::BeginSynchronize |
Arguments for the event notifying a variable synchronization.
Instances of this class can be used multiple times. You must call initialize() to initialize or reset the instance with default values.
Definition at line 39 of file VariableSynchronizerEventArgs.h.
|
strong |
Comparison of phantom entity values before/after a synchronization.
| Enumerator | |
|---|---|
| Unknown | No comparison or unknown result. |
| Same | Same values before and after synchronization. |
| Different | Different values before and after synchronization. |
Definition at line 51 of file VariableSynchronizerEventArgs.h.
|
strong |
Enum to know if we are at the beginning or the end of the synchronization.
Definition at line 44 of file VariableSynchronizerEventArgs.h.
| Arcane::VariableSynchronizerEventArgs::VariableSynchronizerEventArgs | ( | VariableCollection | vars, |
| IVariableSynchronizer * | vs, | ||
| Real | elapsed_time, | ||
| State | state = State::EndSynchronize ) |
Definition at line 39 of file VariableSynchronizerEventArgs.cc.
| Arcane::VariableSynchronizerEventArgs::VariableSynchronizerEventArgs | ( | IVariable * | var, |
| IVariableSynchronizer * | vs, | ||
| Real | elapsed_time, | ||
| State | state = State::EndSynchronize ) |
Definition at line 26 of file VariableSynchronizerEventArgs.cc.
| Arcane::VariableSynchronizerEventArgs::VariableSynchronizerEventArgs | ( | VariableCollection | vars, |
| IVariableSynchronizer * | vs ) |
Definition at line 62 of file VariableSynchronizerEventArgs.cc.
| Arcane::VariableSynchronizerEventArgs::VariableSynchronizerEventArgs | ( | IVariable * | var, |
| IVariableSynchronizer * | vs ) |
Definition at line 52 of file VariableSynchronizerEventArgs.cc.
|
inline |
Definition at line 76 of file VariableSynchronizerEventArgs.h.
|
private |
Definition at line 108 of file VariableSynchronizerEventArgs.cc.
|
inline |
List of comparison status.
The value of the i-th element of compareStatus() indicates the state of comparison for the i-th variable in variables().
This list is only valid for end synchronization events (state()==State::EndSynchronize).
Definition at line 100 of file VariableSynchronizerEventArgs.h.
|
inline |
Time spent in synchronization.
Definition at line 106 of file VariableSynchronizerEventArgs.h.
| void Arcane::VariableSynchronizerEventArgs::initialize | ( | const VariableCollection & | vars | ) |
Definition at line 82 of file VariableSynchronizerEventArgs.cc.
| void Arcane::VariableSynchronizerEventArgs::initialize | ( | IVariable * | var | ) |
Definition at line 97 of file VariableSynchronizerEventArgs.cc.
|
inline |
Sets the comparison status of the i-th variable.
Definition at line 103 of file VariableSynchronizerEventArgs.h.
|
inline |
Definition at line 107 of file VariableSynchronizerEventArgs.h.
|
inline |
Definition at line 111 of file VariableSynchronizerEventArgs.h.
|
inline |
Indicator of the event moment.
Definition at line 110 of file VariableSynchronizerEventArgs.h.
|
inline |
Associated synchronizer.
Definition at line 86 of file VariableSynchronizerEventArgs.h.
| ConstArrayView< IVariable * > Arcane::VariableSynchronizerEventArgs::variables | ( | ) | const |
List of synchronized variables.
Definition at line 73 of file VariableSynchronizerEventArgs.cc.
|
private |
Definition at line 117 of file VariableSynchronizerEventArgs.h.
|
private |
Definition at line 118 of file VariableSynchronizerEventArgs.h.
|
private |
Definition at line 119 of file VariableSynchronizerEventArgs.h.
|
private |
Definition at line 115 of file VariableSynchronizerEventArgs.h.
|
private |
Definition at line 116 of file VariableSynchronizerEventArgs.h.