Serializer interface. More...
#include <arccore/serialize/ISerializer.h>
Public Types | |
| enum | eMode { ModeReserve , ModePut , ModeGet } |
| Serializer operating mode. More... | |
| enum | eReadMode { ReadReplace , ReadAdd } |
| Serializer read mode. More... | |
| enum | eDataType { DT_Byte = 0 , DT_Real = 1 , DT_Int16 = 2 , DT_Int32 = 3 , DT_Int64 = 4 , DT_Float32 = 12 , DT_Float16 = 11 , DT_BFloat16 = 10 , DT_Int8 = 13 , DT_Float128 = 14 , DT_Int128 = 15 , DT_Float64 = DT_Real } |
Public Member Functions | |
| virtual | ~ISerializer ()=default |
| Frees resources. | |
| virtual void | reserveSpan (eBasicDataType dt, Int64 n)=0 |
| Reserves memory for n values of dt. | |
| virtual void | reserveSpan (Span< const Real > values) |
| Reserve for a view of values elements. | |
| virtual void | reserveSpan (Span< const Int16 > values) |
| Reserve for a view of values elements. | |
| virtual void | reserveSpan (Span< const Int32 > values) |
| Reserve for a view of values elements. | |
| virtual void | reserveSpan (Span< const Int64 > values) |
| Reserve for a view of values elements. | |
| virtual void | reserveSpan (Span< const Byte > values) |
| Reserve for a view of values elements. | |
| virtual void | reserveSpan (Span< const Int8 > values) |
| Reserve for a view of values elements. | |
| virtual void | reserveSpan (Span< const Float16 > values) |
| Reserve for a view of values elements. | |
| virtual void | reserveSpan (Span< const BFloat16 > values) |
| Reserve for a view of values elements. | |
| virtual void | reserveSpan (Span< const Float32 > values) |
| Reserve for a view of values elements. | |
| virtual void | reserveSpan (Span< const Float128 > values) |
| Reserve for a view of values elements. | |
| virtual void | reserveSpan (Span< const Int128 > values) |
| Reserve for a view of values elements. | |
| virtual void | reserveArray (Span< const Real > values)=0 |
| Reserve to save the number of elements and the values elements. | |
| virtual void | reserveArray (Span< const Int16 > values)=0 |
| Reserve to save the number of elements and the values elements. | |
| virtual void | reserveArray (Span< const Int32 > values)=0 |
| Reserve to save the number of elements and the values elements. | |
| virtual void | reserveArray (Span< const Int64 > values)=0 |
| Reserve to save the number of elements and the values elements. | |
| virtual void | reserveArray (Span< const Byte > values)=0 |
| Reserve to save the number of elements and the values elements. | |
| virtual void | reserveArray (Span< const Int8 > values)=0 |
| Reserve to save the number of elements and the values elements. | |
| virtual void | reserveArray (Span< const Float16 > values)=0 |
| Reserve to save the number of elements and the values elements. | |
| virtual void | reserveArray (Span< const Float32 > values)=0 |
| Reserve to save the number of elements and the values elements. | |
| virtual void | reserveArray (Span< const BFloat16 > values)=0 |
| Reserve to save the number of elements and the values elements. | |
| virtual void | reserveArray (Span< const Float128 > values)=0 |
| Reserve to save the number of elements and the values elements. | |
| virtual void | reserveArray (Span< const Int128 > values)=0 |
| Reserve to save the number of elements and the values elements. | |
| virtual void | reserve (eBasicDataType dt, Int64 n)=0 |
| Reserves memory for n objects of type dt. | |
| virtual void | reserveInteger (Int64 n)=0 |
| virtual void | reserve (const String &str)=0 |
| Reserve memory for a character string str. | |
| void | reserveReal (Int64 n) |
| Reserve for n Real. | |
| void | reserveInt16 (Int64 n) |
| Reserve for n Int16. | |
| void | reserveInt64 (Int64 n) |
| Reserve for n Int64. | |
| void | reserveInt32 (Int64 n) |
| Reserve for n Int32. | |
| void | reserveByte (Int64 n) |
| Reserve for n Byte. | |
| void | reserveInt8 (Int64 n) |
| Reserve for n Int8. | |
| void | reserveFloat16 (Int64 n) |
| Reserve for n Float16. | |
| void | reserveFloat32 (Int64 n) |
| Reserve for n Float32. | |
| void | reserveBFloat16 (Int64 n) |
| Reserve for n BFloat16. | |
| void | reserveFloat128 (Int64 n) |
| Reserve for n Float128. | |
| void | reserveInt128 (Int64 n) |
| Reserve for n Int128. | |
| virtual void | reserveSpan (eDataType dt, Int64 n)=0 |
| Reserves memory for n values of dt. | |
| void | reserveSpan (int dt, Int64 n) |
| virtual void | reserve (eDataType dt, Int64 n)=0 |
| Reserves memory for n objects of type dt. | |
| void | reserve (int dt, Int64 n) |
| virtual void | put (Span< const Real > values)=0 |
| Add the array values. | |
| virtual void | put (Span< const Int16 > values)=0 |
| Add the array values. | |
| virtual void | put (Span< const Int32 > values)=0 |
| Add the array values. | |
| virtual void | put (Span< const Int64 > values)=0 |
| Add the array values. | |
| virtual void | put (Span< const Byte > values)=0 |
| Add the array values. | |
| virtual void | put (const String &value)=0 |
| Add the string value. | |
| virtual void | putSpan (Span< const Real > values) |
| Add the array values. | |
| virtual void | putSpan (Span< const Int16 > values) |
| Add the array values. | |
| virtual void | putSpan (Span< const Int32 > values) |
| Add the array values. | |
| virtual void | putSpan (Span< const Int64 > values) |
| Add the array values. | |
| virtual void | putSpan (Span< const Byte > values) |
| Add the array values. | |
| virtual void | putSpan (Span< const Int8 > values)=0 |
| Add the array values. | |
| virtual void | putSpan (Span< const Float16 > values)=0 |
| Add the array values. | |
| virtual void | putSpan (Span< const BFloat16 > values)=0 |
| Add the array values. | |
| virtual void | putSpan (Span< const Float32 > values)=0 |
| Add the array values. | |
| virtual void | putSpan (Span< const Float128 > values)=0 |
| Add the array values. | |
| virtual void | putSpan (Span< const Int128 > values)=0 |
| Add the array values. | |
| virtual void | putArray (Span< const Real > values)=0 |
| Save the number of elements and the values elements. | |
| virtual void | putArray (Span< const Int16 > values)=0 |
| Save the number of elements and the values elements. | |
| virtual void | putArray (Span< const Int32 > values)=0 |
| Save the number of elements and the values elements. | |
| virtual void | putArray (Span< const Int64 > values)=0 |
| Save the number of elements and the values elements. | |
| virtual void | putArray (Span< const Byte > values)=0 |
| Save the number of elements and the values elements. | |
| virtual void | putArray (Span< const Int8 > values)=0 |
| Save the number of elements and the values elements. | |
| virtual void | putArray (Span< const Float16 > values)=0 |
| Save the number of elements and the values elements. | |
| virtual void | putArray (Span< const BFloat16 > values)=0 |
| Save the number of elements and the values elements. | |
| virtual void | putArray (Span< const Float32 > values)=0 |
| Save the number of elements and the values elements. | |
| virtual void | putArray (Span< const Float128 > values)=0 |
| Save the number of elements and the values elements. | |
| virtual void | putArray (Span< const Int128 > values)=0 |
| Save the number of elements and the values elements. | |
| virtual void | put (Real value)=0 |
| Add value. | |
| virtual void | put (Int16 value)=0 |
| Add value. | |
| virtual void | put (Int32 value)=0 |
| Add value. | |
| virtual void | put (Int64 value)=0 |
| Add value. | |
| virtual void | put (Byte value)=0 |
| Add value. | |
| virtual void | put (Int8 value)=0 |
| Add value. | |
| virtual void | put (Float16 value)=0 |
| Add value. | |
| virtual void | put (BFloat16 value)=0 |
| Add value. | |
| virtual void | put (Float32 value)=0 |
| Add value. | |
| virtual void | put (Float128 value)=0 |
| Add value. | |
| virtual void | put (Int128 value)=0 |
| Add value. | |
| virtual void | putReal (Real value)=0 |
| Add the real value. | |
| virtual void | putInt16 (Int16 value)=0 |
| Add the integer value. | |
| virtual void | putInt32 (Int32 value)=0 |
| Add the integer value. | |
| virtual void | putInt64 (Int64 value)=0 |
| Add the integer value. | |
| virtual void | putInteger (Integer value)=0 |
| Add the integer value. | |
| virtual void | putByte (Byte value)=0 |
| Add the byte value. | |
| virtual void | putInt8 (Int8 value)=0 |
| Add value. | |
| virtual void | putFloat16 (Float16 value)=0 |
| Add value. | |
| virtual void | putBFloat16 (BFloat16 value)=0 |
| Add value. | |
| virtual void | putFloat32 (Float32 value)=0 |
| Add value. | |
| virtual void | putFloat128 (Float128 value)=0 |
| Add value. | |
| virtual void | putInt128 (Int128 value)=0 |
| Add value. | |
| virtual void | get (ArrayView< Real > values)=0 |
| Retrieve the array values. | |
| virtual void | get (ArrayView< Int16 > values)=0 |
| Retrieve the array values. | |
| virtual void | get (ArrayView< Int32 > values)=0 |
| Retrieve the array values. | |
| virtual void | get (ArrayView< Int64 > values)=0 |
| Retrieve the array values. | |
| virtual void | get (ArrayView< Byte > values)=0 |
| Retrieve the array values. | |
| virtual void | get (String &value)=0 |
| Retrieve the string value. | |
| virtual void | getSpan (Span< Real > values) |
| Retrieve the array values. | |
| virtual void | getSpan (Span< Int16 > values) |
| Retrieve the array values. | |
| virtual void | getSpan (Span< Int32 > values) |
| Retrieve the array values. | |
| virtual void | getSpan (Span< Int64 > values) |
| Retrieve the array values. | |
| virtual void | getSpan (Span< Byte > values) |
| Retrieve the array values. | |
| virtual void | getSpan (Span< Int8 > values)=0 |
| Retrieve the array values. | |
| virtual void | getSpan (Span< Float16 > values)=0 |
| Retrieve the array values. | |
| virtual void | getSpan (Span< BFloat16 > values)=0 |
| Retrieve the array values. | |
| virtual void | getSpan (Span< Float32 > values)=0 |
| Retrieve the array values. | |
| virtual void | getSpan (Span< Float128 > values)=0 |
| Retrieve the array values. | |
| virtual void | getSpan (Span< Int128 > values)=0 |
| Retrieve the array values. | |
| virtual void | getArray (Array< Real > &values)=0 |
| Resize and fill values. | |
| virtual void | getArray (Array< Int16 > &values)=0 |
| Resize and fill values. | |
| virtual void | getArray (Array< Int32 > &values)=0 |
| Resize and fill values. | |
| virtual void | getArray (Array< Int64 > &values)=0 |
| Resize and fill values. | |
| virtual void | getArray (Array< Byte > &values)=0 |
| Resize and fill values. | |
| virtual void | getArray (Array< Int8 > &values)=0 |
| Resize and fill values. | |
| virtual void | getArray (Array< Float16 > &values)=0 |
| Resize and fill values. | |
| virtual void | getArray (Array< BFloat16 > &values)=0 |
| Resize and fill values. | |
| virtual void | getArray (Array< Float32 > &values)=0 |
| Resize and fill values. | |
| virtual void | getArray (Array< Float128 > &values)=0 |
| Resize and fill values. | |
| virtual void | getArray (Array< Int128 > &values)=0 |
| Resize and fill values. | |
| virtual Real | getReal ()=0 |
| Retrieve a real number. | |
| virtual Int16 | getInt16 ()=0 |
| Retrieve a 16-bit integer. | |
| virtual Int32 | getInt32 ()=0 |
| Retrieve an integer. | |
| virtual Int64 | getInt64 ()=0 |
| Retrieve a size. | |
| virtual Integer | getInteger ()=0 |
| Retrieve a size. | |
| virtual Byte | getByte ()=0 |
| Retrieve a byte. | |
| virtual Int8 | getInt8 ()=0 |
| Retrieve an Int8. | |
| virtual Float16 | getFloat16 ()=0 |
| Retrieve a Float16. | |
| virtual BFloat16 | getBFloat16 ()=0 |
| Retrieve a BFloat16. | |
| virtual Float32 | getFloat32 ()=0 |
| Retrieve a Float32. | |
| virtual Float128 | getFloat128 ()=0 |
| Retrieve a Float128. | |
| virtual Int128 | getInt128 ()=0 |
| Retrieve an Int128. | |
| virtual void | allocateBuffer ()=0 |
| Allocates the serializer memory. | |
| virtual void | allocateBuffer (Int64 nb_real, Int64 nb_int16, Int64 nb_int32, Int64 nb_int64, Int64 nb_byte)=0 |
| virtual eMode | mode () const =0 |
| Current operating mode. | |
| virtual void | setMode (eMode new_mode)=0 |
| Sets the current mode. | |
| virtual eReadMode | readMode () const =0 |
| Read mode. | |
| virtual void | setReadMode (eReadMode read_mode)=0 |
| Sets the read mode. | |
| virtual void | copy (const ISerializer *from)=0 |
| Copies the data from from into this instance. | |
Serializer interface.
It is possible to create an instance of this class via the method createSerializer();
This interface manages a serializer to store and read a set of values. Serialization takes place in three phases:
Deserialization is done identically but uses the functions get()/getSpan(). The operation is similar to a queue: for every get()/getSpan(), a previous put()/putSpan() must correspond, and the get()/getSpan() and the put()/putSpan() must be in the same order.
It is possible to use overloads of reserve()/get()/put(). In this case, you must ensure consistency in their usage. For example, if you call reserveSpan(), you must then call putSpan() and getSpan().
Definition at line 58 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
| Enumerator | |
|---|---|
| DT_Byte | Byte data type. |
| DT_Real | Real data type. |
| DT_Int16 | 16-bit integer data type |
| DT_Int32 | 32-bit integer data type |
| DT_Int64 | 64-bit integer data type |
| DT_Float32 | 32-bit floating point data type |
| DT_Float16 | 16-bit floating point data type |
| DT_BFloat16 | 'brain float' data type |
| DT_Int8 | 8-bit integer data type |
| DT_Float128 | 128-bit floating point data type |
| DT_Int128 | 128-bit integer data type |
Definition at line 77 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
Serializer operating mode.
| Enumerator | |
|---|---|
| ModePut | The serializer expects reserve(). The serializer expects put() |
| ModeGet | The serializer expects get(). |
Definition at line 63 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
Serializer read mode.
| Enumerator | |
|---|---|
| ReadReplace | Replace current elements with those read. |
| ReadAdd | Add those read to the current elements. |
Definition at line 70 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
|
pure virtual |
Allocates the serializer memory.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References allocateBuffer().
Referenced by allocateBuffer(), and Arcane::Parallel::VariableParallelOperationBase::applyOperation().
|
pure virtual |
Copies the data from from into this instance.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References copy(), and Arcane::createSerializer().
Referenced by copy().
Retrieve the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References get().
Retrieve the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References get().
Retrieve the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References get().
Retrieve the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References get().
Retrieve the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References get().
Referenced by get(), get(), get(), get(), get(), get(), getSpan(), getSpan(), getSpan(), getSpan(), getSpan(), and Arcane::Materials::ItemMaterialVariableArray< DataType >::serialize().
|
pure virtual |
Retrieve the string value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Resize and fill values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getArray().
Resize and fill values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getArray().
Resize and fill values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getArray().
Resize and fill values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getArray().
Resize and fill values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getArray().
Resize and fill values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getArray().
Resize and fill values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getArray().
Resize and fill values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getArray().
Resize and fill values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getArray().
Resize and fill values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getArray().
Resize and fill values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getArray().
Referenced by getArray(), getArray(), getArray(), getArray(), getArray(), getArray(), getArray(), getArray(), getArray(), getArray(), and getArray().
|
pure virtual |
Retrieve a BFloat16.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getBFloat16().
Referenced by getBFloat16().
|
pure virtual |
Retrieve a byte.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getByte().
Referenced by getByte().
|
pure virtual |
Retrieve a Float128.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getFloat128().
Referenced by getFloat128().
|
pure virtual |
Retrieve a Float16.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getFloat16().
Referenced by getFloat16().
|
pure virtual |
Retrieve a Float32.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getFloat32().
Referenced by getFloat32().
|
pure virtual |
Retrieve an Int128.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getInt128().
Referenced by getInt128().
|
pure virtual |
Retrieve a 16-bit integer.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getInt16().
Referenced by getInt16().
|
pure virtual |
Retrieve an integer.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getInt32().
Referenced by getInt32().
|
pure virtual |
Retrieve a size.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getInt64().
Referenced by Arcane::Parallel::VariableParallelOperationBase::applyOperation(), getInt64(), Arcane::Materials::ItemMaterialVariableArray< DataType >::serialize(), and Arcane::Materials::ItemMaterialVariableScalar< DataType >::serialize().
|
pure virtual |
Retrieve an Int8.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getInt8().
Referenced by getInt8().
|
pure virtual |
Retrieve a size.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getInteger().
Referenced by getInteger().
|
pure virtual |
Retrieve a real number.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getReal().
Referenced by getReal().
Retrieve the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getSpan().
Retrieve the array values.
Reimplemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Definition at line 155 of file SerializeGlobal.cc.
References get(), and Arcane::SpanImpl< T, SizeType, Extent >::smallView().
Retrieve the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getSpan().
Retrieve the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getSpan().
Retrieve the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getSpan().
Retrieve the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getSpan().
Retrieve the array values.
Reimplemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Definition at line 137 of file SerializeGlobal.cc.
References get(), and Arcane::SpanImpl< T, SizeType, Extent >::smallView().
Retrieve the array values.
Reimplemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Definition at line 143 of file SerializeGlobal.cc.
References get(), and Arcane::SpanImpl< T, SizeType, Extent >::smallView().
Retrieve the array values.
Reimplemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Definition at line 149 of file SerializeGlobal.cc.
References get(), and Arcane::SpanImpl< T, SizeType, Extent >::smallView().
Retrieve the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References getSpan().
Retrieve the array values.
Reimplemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Definition at line 131 of file SerializeGlobal.cc.
References get(), and Arcane::SpanImpl< T, SizeType, Extent >::smallView().
Referenced by Arcane::Parallel::VariableParallelOperationBase::applyOperation(), get(), getSpan(), getSpan(), getSpan(), getSpan(), getSpan(), getSpan(), Arcane::Materials::ItemMaterialVariableArray< DataType >::serialize(), Arcane::Materials::ItemMaterialVariableScalar< DataType >::serialize(), and Arcane::VariablePrivate::serializeHashId().
|
pure virtual |
Current operating mode.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References mode().
Referenced by mode(), Arcane::Materials::ItemMaterialVariableArray< DataType >::serialize(), Arcane::Materials::ItemMaterialVariableScalar< DataType >::serialize(), Arcane::SerializedData::serialize(), Arcane::Variable::serialize(), Arcane::Variable::serialize(), and Arcane::VariablePrivate::serializeHashId().
|
pure virtual |
|
pure virtual |
|
pure virtual |
Add the string value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Add the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References put().
Add the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References put().
Add the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References put().
Add the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References put().
Add the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References put().
Referenced by put(), put(), put(), put(), put(), put(), put(), put(), put(), put(), put(), put(), put(), put(), put(), put(), put(), putSpan(), putSpan(), putSpan(), putSpan(), putSpan(), and Arcane::Materials::ItemMaterialVariableArray< DataType >::serialize().
Save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putArray().
Save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putArray().
Save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putArray().
Save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putArray().
Save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putArray().
Save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putArray().
Save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putArray().
Save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putArray().
Save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putArray().
Save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putArray().
Save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putArray().
Referenced by putArray(), putArray(), putArray(), putArray(), putArray(), putArray(), putArray(), putArray(), putArray(), putArray(), and putArray().
|
pure virtual |
Add value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putBFloat16().
Referenced by putBFloat16().
|
pure virtual |
Add the byte value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putByte().
Referenced by putByte().
|
pure virtual |
Add value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putFloat128().
Referenced by putFloat128().
|
pure virtual |
Add value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putFloat16().
Referenced by putFloat16().
|
pure virtual |
Add value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putFloat32().
Referenced by putFloat32().
|
pure virtual |
Add value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putInt128().
Referenced by putInt128().
|
pure virtual |
Add the integer value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putInt16().
Referenced by putInt16().
|
pure virtual |
Add the integer value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putInt32().
Referenced by putInt32().
|
pure virtual |
Add the integer value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putInt64().
Referenced by Arcane::Parallel::VariableParallelOperationBase::applyOperation(), putInt64(), Arcane::Materials::ItemMaterialVariableArray< DataType >::serialize(), and Arcane::Materials::ItemMaterialVariableScalar< DataType >::serialize().
|
pure virtual |
Add value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putInt8().
Referenced by putInt8().
|
pure virtual |
Add the integer value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putInteger().
Referenced by putInteger().
|
pure virtual |
Add the real value.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putReal().
Referenced by putReal().
Add the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putSpan().
Add the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putSpan().
Add the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putSpan().
Add the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putSpan().
Add the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putSpan().
Add the array values.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References putSpan().
Add the array values.
Definition at line 29 of file SerializeGlobal.cc.
References put().
Referenced by Arcane::Parallel::VariableParallelOperationBase::applyOperation(), put(), putSpan(), putSpan(), putSpan(), putSpan(), putSpan(), putSpan(), Arcane::Materials::ItemMaterialVariableArray< DataType >::serialize(), Arcane::Materials::ItemMaterialVariableScalar< DataType >::serialize(), and Arcane::VariablePrivate::serializeHashId().
|
pure virtual |
Read mode.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References readMode().
Referenced by readMode(), and Arcane::SerializedData::serialize().
|
pure virtual |
Reserve memory for a character string str.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
|
pure virtual |
Reserves memory for n objects of type dt.
n calls to a put() method with a single value must be made for the serialization to be correct.
If you want to serialize multiple values with a single call to put(), you must use the reserveSpan() method.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Referenced by reserve(), reserve(), reserveBFloat16(), reserveByte(), reserveFloat128(), reserveFloat16(), reserveFloat32(), reserveInt128(), reserveInt16(), reserveInt32(), reserveInt64(), reserveInt8(), reserveReal(), Arcane::Materials::ItemMaterialVariableArray< DataType >::serialize(), and Arcane::Materials::ItemMaterialVariableScalar< DataType >::serialize().
Reserves memory for n objects of type dt.
\dt must be an integral type: DT_Int16, DT_Int32, DT_Int64, DT_Real or DT_Byte.
n calls to a put() method with a single value must be made for the serialization to be correct.
If you want to serialize multiple values with a single call to put(), you must use the reserveSpan() method.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References reserve().
| void Arcane::ISerializer::reserve | ( | int | dt, |
| Int64 | n ) |
Definition at line 164 of file SerializeGlobal.cc.
References reserve().
Reserve to save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Reserve to save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Reserve to save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Reserve to save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Reserve to save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Reserve to save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Reserve to save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Reserve to save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Reserve to save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Reserve to save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
Reserve to save the number of elements and the values elements.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
|
inline |
Reserve for n BFloat16.
Definition at line 184 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
References reserve().
|
inline |
Reserve for n Byte.
Definition at line 176 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
References Arcane::Byte, and reserve().
|
inline |
Reserve for n Float128.
Definition at line 186 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
References Arcane::Float128, and reserve().
|
inline |
Reserve for n Float16.
Definition at line 180 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
References Arcane::Float16, and reserve().
|
inline |
Reserve for n Float32.
Definition at line 182 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
References Arcane::Float32, and reserve().
|
inline |
Reserve for n Int128.
Definition at line 188 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
References Arcane::Int128, and reserve().
|
inline |
Reserve for n Int16.
Definition at line 170 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
References Arcane::Int16, and reserve().
|
inline |
Reserve for n Int32.
Definition at line 174 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
References Arcane::Int32, and reserve().
|
inline |
Reserve for n Int64.
Definition at line 172 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
References Arcane::Int64, and reserve().
Referenced by Arcane::Parallel::VariableParallelOperationBase::applyOperation(), Arcane::BasicSerializer::reserve(), Arcane::BasicSerializer::reserveArray(), Arcane::BasicSerializer::reserveArray(), Arcane::BasicSerializer::reserveArray(), Arcane::BasicSerializer::reserveArray(), Arcane::BasicSerializer::reserveArray(), Arcane::BasicSerializer::reserveArray(), Arcane::BasicSerializer::reserveArray(), Arcane::BasicSerializer::reserveArray(), Arcane::BasicSerializer::reserveArray(), Arcane::BasicSerializer::reserveArray(), Arcane::BasicSerializer::reserveArray(), and Arcane::Materials::ItemMaterialVariableArray< DataType >::serialize().
|
inline |
Reserve for n Int8.
Definition at line 178 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
References Arcane::Int8, and reserve().
|
inline |
Reserve for n Real.
Definition at line 168 of file arccore/src/serialize/arccore/serialize/ISerializer.h.
References Arcane::Real, and reserve().
|
pure virtual |
Reserves memory for n values of dt.
A call to a putSpan() method must be made for the serialization to be correct.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References reserveSpan().
Referenced by Arcane::Parallel::VariableParallelOperationBase::applyOperation(), reserveSpan(), reserveSpan(), reserveSpan(), reserveSpan(), reserveSpan(), reserveSpan(), reserveSpan(), reserveSpan(), reserveSpan(), reserveSpan(), reserveSpan(), reserveSpan(), reserveSpan(), reserveSpan(), Arcane::Materials::ItemMaterialVariableArray< DataType >::serialize(), Arcane::Materials::ItemMaterialVariableScalar< DataType >::serialize(), and Arcane::VariablePrivate::serializeHashId().
Reserves memory for n values of dt.
\dt must be an integral type: DT_Int16, DT_Int32, DT_Int64, DT_Real or DT_Byte.
A call to a putSpan() method must be made for the serialization to be correct.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References reserveSpan().
| void Arcane::ISerializer::reserveSpan | ( | int | dt, |
| Int64 | n ) |
Definition at line 173 of file SerializeGlobal.cc.
References reserveSpan().
Reserve for a view of values elements.
Definition at line 104 of file SerializeGlobal.cc.
References DT_BFloat16, reserveSpan(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
Reserve for a view of values elements.
Definition at line 86 of file SerializeGlobal.cc.
References DT_Byte, reserveSpan(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
Reserve for a view of values elements.
Definition at line 116 of file SerializeGlobal.cc.
References Arcane::Float128, reserveSpan(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
Reserve for a view of values elements.
Definition at line 98 of file SerializeGlobal.cc.
References DT_Float16, reserveSpan(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
Reserve for a view of values elements.
Definition at line 110 of file SerializeGlobal.cc.
References DT_Float32, reserveSpan(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
Reserve for a view of values elements.
Definition at line 122 of file SerializeGlobal.cc.
References Arcane::Int128, reserveSpan(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
Reserve for a view of values elements.
Definition at line 68 of file SerializeGlobal.cc.
References DT_Int16, reserveSpan(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
Reserve for a view of values elements.
Definition at line 74 of file SerializeGlobal.cc.
References DT_Int32, reserveSpan(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
Reserve for a view of values elements.
Definition at line 80 of file SerializeGlobal.cc.
References DT_Int64, reserveSpan(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
Reserve for a view of values elements.
Definition at line 92 of file SerializeGlobal.cc.
References DT_Int8, reserveSpan(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
Reserve for a view of values elements.
Definition at line 62 of file SerializeGlobal.cc.
References DT_Real, reserveSpan(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
|
pure virtual |
Sets the current mode.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References setMode().
Referenced by Arcane::Parallel::VariableParallelOperationBase::applyOperation(), and setMode().
|
pure virtual |
Sets the read mode.
Implemented in Arcane::BasicSerializer, and Arccore::BasicSerializer.
References setReadMode().
Referenced by setReadMode().