Serialization/Deserialization of link families. More...
#include <arcane/mesh/ParticleFamilySerializer.h>
Public Member Functions | |
| ParticleFamilySerializer (ParticleFamily *family) | |
| void | serializeItems (ISerializer *buf, Int32ConstArrayView local_ids) override |
| Serializes the entities of the family family() into buf. | |
| void | deserializeItems (ISerializer *buf, Int32Array *local_ids) override |
| Deserializes the entities of the family family() from buf. | |
| void | serializeItemRelations (ISerializer *buf, Int32ConstArrayView cells_local_id) override |
| Serializes the relations of the entities of the family family() into buf. | |
| void | deserializeItemRelations (ISerializer *buf, Int32Array *cells_local_id) override |
| Deserializes the relations of the entities of the family family() from buf. | |
| IItemFamily * | family () const override |
| Associated family. | |
| Public Member Functions inherited from Arcane::TraceAccessor | |
| TraceAccessor (ITraceMng *m) | |
| Constructs an accessor via the trace manager m. | |
| TraceAccessor (const TraceAccessor &rhs) | |
| Copy constructor. | |
| TraceAccessor & | operator= (const TraceAccessor &rhs) |
| Copy assignment operator. | |
| virtual | ~TraceAccessor () |
| Frees resources. | |
| ITraceMng * | traceMng () const |
| Trace manager. | |
| TraceMessage | info () const |
| Flow for an information message. | |
| TraceMessage | pinfo () const |
| Flow for a parallel information message. | |
| TraceMessage | info (char category) const |
| Flow for an information message of a given category. | |
| TraceMessage | pinfo (char category) const |
| Flow for a parallel information message of a given category. | |
| TraceMessage | info (bool v) const |
| Flow for an information message. | |
| TraceMessage | warning () const |
| Flow for a warning message. | |
| TraceMessage | pwarning () const |
| TraceMessage | error () const |
| Flow for an error message. | |
| TraceMessage | perror () const |
| TraceMessage | log () const |
| Flow for a log message. | |
| TraceMessage | plog () const |
| Flow for a log message. | |
| TraceMessage | logdate () const |
| Flow for a log message preceded by the date. | |
| TraceMessage | fatal () const |
| Flow for a fatal error message. | |
| TraceMessage | pfatal () const |
| Flow for a parallel fatal error message. | |
| TraceMessageDbg | debug (Trace::eDebugLevel=Trace::Medium) const |
| Flow for a debug message. | |
| Trace::eDebugLevel | configDbgLevel () const |
| Debug level of the configuration file. | |
| TraceMessage | info (Int32 verbose_level) const |
| Flow for an information message of a given level. | |
| TraceMessage | linfo () const |
| Flow for an information message with the local information level of this instance. | |
| TraceMessage | linfo (Int32 relative_level) const |
| Flow for an information message with the local information level of this instance. | |
| void | fatalMessage (const StandaloneTraceMessage &o) const |
Private Attributes | |
| ParticleFamily * | m_family |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
Serialization/Deserialization of link families.
Definition at line 38 of file ParticleFamilySerializer.h.
| Arcane::mesh::ParticleFamilySerializer::ParticleFamilySerializer | ( | ParticleFamily * | family | ) |
Definition at line 31 of file ParticleFamilySerializer.cc.
|
inlineoverridevirtual |
Deserializes the relations of the entities of the family family() from buf.
If items_lid is not null, it contains the local numbers of the cells whose relations have been deserialized in return.
Implements Arcane::IItemFamilySerializer.
Definition at line 55 of file ParticleFamilySerializer.h.
|
overridevirtual |
Deserializes the entities of the family family() from buf.
If items_lid is not null, it contains the local numbers of the deserialized cells in return.
Implements Arcane::IItemFamilySerializer.
Definition at line 81 of file ParticleFamilySerializer.cc.
References Arcane::ISerializer::getInt64(), Arcane::ISerializer::getSpan(), Arcane::IItemFamily::itemsUniqueIdToLocalId(), Arcane::Item::owner(), Arcane::Array< T >::resize(), and Arcane::Array< T >::view().
Referenced by serializeItems().
|
overridevirtual |
Associated family.
Implements Arcane::IItemFamilySerializer.
Definition at line 147 of file ParticleFamilySerializer.cc.
|
inlineoverridevirtual |
Serializes the relations of the entities of the family family() into buf.
In 'Put' or 'Reserve' mode, items contains the local cell numbers. In 'Get' mode, it calls deserializeItemRelations() and items is unused.
Implements Arcane::IItemFamilySerializer.
Definition at line 50 of file ParticleFamilySerializer.h.
|
overridevirtual |
Serializes the entities of the family family() into buf.
In 'Put' or 'Reserve' mode, items contains the local cell numbers. In 'Get' mode, it calls deserializeItems() and items is unused.
Implements Arcane::IItemFamilySerializer.
Definition at line 41 of file ParticleFamilySerializer.cc.
References Arcane::Particle::cell(), deserializeItems(), Arcane::Particle::hasCell(), Arcane::Int64, Arcane::ISerializer::mode(), Arcane::ISerializer::ModeGet, Arcane::ISerializer::ModePut, Arcane::ISerializer::putInt64(), Arcane::ISerializer::putSpan(), Arcane::ISerializer::reserveInt64(), Arcane::ISerializer::reserveSpan(), Arcane::ConstArrayView< T >::size(), Arcane::Item::uniqueId(), and Arcane::ItemGenericInfoListView::uniqueId().
|
private |
Definition at line 64 of file ParticleFamilySerializer.h.