Internal part of IData. More...
#include <arcane/core/internal/IDataInternal.h>
Public Member Functions | |
| virtual bool | compressAndClear (DataCompressionBuffer &buf) |
| Compresses the data and frees the associated memory. | |
| virtual bool | decompressAndFill (DataCompressionBuffer &buf) |
| Decompresses the data and fills the data values. | |
| virtual INumericDataInternal * | numericData () |
| Generic interface for numeric data (nullptr if the data is not numeric). | |
| virtual void | computeHash (DataHashInfo &hash_info)=0 |
| Calculates the hash of the data. | |
Definition at line 79 of file IDataInternal.h.
|
inlinevirtual |
Compresses the data and frees the associated memory.
Compresses the data and fills buf with the compressed information. Then it frees the associated memory. The instance will no longer be usable until decompressAndFill() has been called.
| true | if compression occurred. |
| false | if the instance does not support compression. In this case it remains usable. |
Reimplemented in Arcane::Array2DataT< DataType >::Impl, and Arcane::ArrayDataT< DataType >::Impl.
Definition at line 101 of file IDataInternal.h.
|
pure virtual |
Calculates the hash of the data.
Outputs the version and value into hash_info.m_version and hash_info.m_value.
Implemented in Arcane::Array2DataT< DataType >::Impl, Arcane::ArrayDataT< DataType >::Impl, Arcane::NumArrayDataT< DataType, RankValue >::Internal, Arcane::ScalarDataT< DataType >::Internal, Arcane::StringArrayData::Impl, and Arcane::StringScalarData::Internal.
Referenced by Arcane::VariableIOReaderMng::_checkHashFunction().
|
inlinevirtual |
Decompresses the data and fills the data values.
Decompresses the data from buf and fills the values of this instance with the decompressed information.
| true | if decompression occurred. |
| false | if no decompression occurred because the instance does not support it. |
Reimplemented in Arcane::Array2DataT< DataType >::Impl, and Arcane::ArrayDataT< DataType >::Impl.
Definition at line 119 of file IDataInternal.h.
|
inlinevirtual |
Generic interface for numeric data (nullptr if the data is not numeric).
Reimplemented in Arcane::Array2DataT< DataType >::Impl, and Arcane::ArrayDataT< DataType >::Impl.
Definition at line 126 of file IDataInternal.h.
Referenced by Arcane::VariablePrivate::computeComparisonHashCollective(), Arcane::VariableUtils::prefetchVariableAsync(), Arcane::VariableUtilsInternal::setFromMemoryBuffer(), and Arcane::VariableSynchronizer::synchronizeData().