Information necessary to synchronize entities across a group. More...
#include <arcane/impl/DataSynchronizeInfo.h>
Public Member Functions | |
| DataSynchronizeInfo (const DataSynchronizeInfo &)=delete | |
| DataSynchronizeInfo | operator= (const DataSynchronizeInfo &)=delete |
| DataSynchronizeInfo (DataSynchronizeInfo &&)=delete | |
| DataSynchronizeInfo | operator= (DataSynchronizeInfo &&)=delete |
| void | clear () |
| Int32 | size () const |
| void | add (const VariableSyncInfo &s) |
| const DataSynchronizeBufferInfoList & | sendInfo () const |
| Send (shared) information. | |
| const DataSynchronizeBufferInfoList & | receiveInfo () const |
| Receive (ghost) information. | |
| Int32 | targetRank (Int32 index) const |
| Rank of the index-th target. | |
| ConstArrayView< Int32 > | communicatingRanks () const |
| Ranks of all targets. | |
| void | changeLocalIds (ConstArrayView< Int32 > old_to_new_ids) |
| Notifies the instance that the local IDs have changed. | |
| void | recompute () |
| Notifies the instance that the values have changed. | |
| void | addReference () |
| void | removeReference () |
| ConstArrayView< VariableSyncInfo > | infos () const |
| ArrayView< VariableSyncInfo > | infos () |
| VariableSyncInfo & | operator[] (Int32 i) |
| const VariableSyncInfo & | operator[] (Int32 i) const |
| VariableSyncInfo & | rankInfo (Int32 i) |
| const VariableSyncInfo & | rankInfo (Int32 i) const |
Static Public Member Functions | |
| static Ref< DataSynchronizeInfo > | create () |
Private Member Functions | |
| DataSynchronizeBufferInfoList & | _sendInfo () |
| DataSynchronizeBufferInfoList & | _receiveInfo () |
| Private Member Functions inherited from Arcane::ReferenceCounterImpl | |
| void | addReference () |
| void | removeReference () |
| void | _internalAddReference () |
| bool | _internalRemoveReference () |
Private Attributes | |
| UniqueArray< Int32 > | m_communicating_ranks |
| UniqueArray< VariableSyncInfo > | m_ranks_info |
| std::array< DataSynchronizeBufferInfoList, 2 > | m_buffer_infos = { { { this, true }, { this, false } } } |
Static Private Attributes | |
| static constexpr int | SEND = 0 |
| static constexpr int | RECEIVE = 1 |
Friends | |
| class | DataSynchronizeBufferInfoList |
Information necessary to synchronize entities across a group.
recompute() must be called after adding or modifying the instances of VariableSyncInfo.
Instances of this class are shared with all dispatchers (IVariableSynchronizeDispatcher) created from an instance of IVariableSynchronizer. Only the latter can therefore modify an instance of this class.
Definition at line 171 of file DataSynchronizeInfo.h.
|
inlineprivate |
Definition at line 258 of file DataSynchronizeInfo.h.
|
inlineprivate |
Definition at line 257 of file DataSynchronizeInfo.h.
| void Arcane::DataSynchronizeInfo::add | ( | const VariableSyncInfo & | s | ) |
Definition at line 167 of file DataSynchronizeInfo.cc.
|
inline |
Definition at line 228 of file DataSynchronizeInfo.h.
| void Arcane::DataSynchronizeInfo::changeLocalIds | ( | ConstArrayView< Int32 > | old_to_new_ids | ) |
Notifies the instance that the local IDs have changed.
Definition at line 155 of file DataSynchronizeInfo.cc.
References recompute().
|
inline |
Definition at line 201 of file DataSynchronizeInfo.h.
|
inline |
Ranks of all targets.
Definition at line 218 of file DataSynchronizeInfo.h.
|
inlinestatic |
Definition at line 194 of file DataSynchronizeInfo.h.
|
inline |
Definition at line 237 of file DataSynchronizeInfo.h.
|
inline |
Definition at line 234 of file DataSynchronizeInfo.h.
|
inline |
Definition at line 240 of file DataSynchronizeInfo.h.
|
inline |
Definition at line 242 of file DataSynchronizeInfo.h.
|
inline |
Definition at line 245 of file DataSynchronizeInfo.h.
|
inline |
Definition at line 247 of file DataSynchronizeInfo.h.
|
inline |
Receive (ghost) information.
Definition at line 212 of file DataSynchronizeInfo.h.
Referenced by Arcane::VariableSynchronizerComputeList::_createList().
| void Arcane::DataSynchronizeInfo::recompute | ( | ) |
Notifies the instance that the values have changed.
Definition at line 120 of file DataSynchronizeInfo.cc.
References Arcane::DataSynchronizeBufferInfoList::m_displacements_base, and Arcane::Array< T >::resize().
Referenced by Arcane::VariableSynchronizerComputeList::_createList(), and changeLocalIds().
|
inline |
Definition at line 229 of file DataSynchronizeInfo.h.
|
inline |
Send (shared) information.
Definition at line 210 of file DataSynchronizeInfo.h.
|
inline |
Definition at line 206 of file DataSynchronizeInfo.h.
Rank of the index-th target.
Definition at line 215 of file DataSynchronizeInfo.h.
Referenced by Arcane::VariableSynchronizerComputeList::_createList().
|
friend |
Definition at line 174 of file DataSynchronizeInfo.h.
|
private |
Definition at line 253 of file DataSynchronizeInfo.h.
|
private |
Definition at line 251 of file DataSynchronizeInfo.h.
|
private |
Definition at line 252 of file DataSynchronizeInfo.h.
|
staticconstexprprivate |
Definition at line 179 of file DataSynchronizeInfo.h.
|
staticconstexprprivate |
Definition at line 178 of file DataSynchronizeInfo.h.