Serialization/Deserialization of cell families. More...
#include <arcane/mesh/CellFamilySerializer.h>
Public Member Functions | |
| CellFamilySerializer (CellFamily *family, bool use_flags, DynamicMeshIncrementalBuilder *mesh_builder) | |
| void | serializeItems (ISerializer *buf, Int32ConstArrayView cells_local_id) override |
| Serializes the entities of the family family() into buf. | |
| void | deserializeItems (ISerializer *buf, Int32Array *cells_local_id) 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 | |
| DynamicMeshIncrementalBuilder * | m_mesh_builder |
| CellFamily * | m_family |
| bool | m_use_flags |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
Serialization/Deserialization of cell families.
Definition at line 39 of file CellFamilySerializer.h.
| Arcane::mesh::CellFamilySerializer::CellFamilySerializer | ( | CellFamily * | family, |
| bool | use_flags, | ||
| DynamicMeshIncrementalBuilder * | mesh_builder ) |
Definition at line 34 of file CellFamilySerializer.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 57 of file CellFamilySerializer.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 104 of file CellFamilySerializer.cc.
References ARCANE_FATAL, Arcane::arcaneIsCheck(), Arcane::Cell::edges(), Arcane::Cell::faces(), Arcane::ISerializer::getInt64(), Arcane::ISerializer::getSpan(), Arcane::TraceAccessor::info(), Arcane::ItemBase::localId(), Arcane::ItemWithNodes::nodes(), Arcane::Array< T >::reserve(), Arcane::Array< T >::resize(), Arcane::MutableItemBase::setFlags(), and Arcane::MutableItemBase::setOwner().
Referenced by serializeItems().
|
overridevirtual |
Associated family.
Implements Arcane::IItemFamilySerializer.
Definition at line 213 of file CellFamilySerializer.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 52 of file CellFamilySerializer.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 47 of file CellFamilySerializer.cc.
References Arcane::Array< T >::clear(), deserializeItems(), Arcane::TraceAccessor::info(), Arcane::AbstractArray< T >::largeSize(), Arcane::ISerializer::mode(), Arcane::ISerializer::ModeGet, Arcane::ISerializer::ModePut, Arcane::ISerializer::putInt64(), Arcane::ISerializer::putSpan(), Arcane::Array< T >::reserve(), Arcane::ISerializer::reserveInt64(), Arcane::ISerializer::reserveSpan(), and Arcane::ConstArrayView< T >::size().
|
private |
Definition at line 67 of file CellFamilySerializer.h.
|
private |
Definition at line 66 of file CellFamilySerializer.h.
|
private |
Definition at line 68 of file CellFamilySerializer.h.