Public Member Functions | |
| Impl (Array2DataT< DataType > *p) | |
| void | reserve (Integer new_capacity) override |
| Reserves memory for new_capacity elements. | |
| void | resizeOnlyDim1 (Int32 new_dim1_size) override |
| Resizes the container only in dimension 1. | |
| void | resize (Int32 new_dim1_size, Int32 new_dim2_size) override |
| Resizes the container. | |
| Array2< DataType > & | _internalDeprecatedValue () override |
| Container associated with the data. | |
| void | shrink () const override |
| Frees additional allocated memory. | |
| bool | compressAndClear (DataCompressionBuffer &buf) override |
| Compresses the data and frees the associated memory. | |
| bool | decompressAndFill (DataCompressionBuffer &buf) override |
| Decompresses the data and fills the data values. | |
| MutableMemoryView | memoryView () override |
| Memory view of the data. | |
| Int32 | extent0 () const override |
| Number of elements in the first dimension. | |
| INumericDataInternal * | numericData () override |
| Generic interface for numeric data (nullptr if the data is not numeric). | |
| void | changeAllocator (const MemoryAllocationOptions &v) override |
| Changes the variable's allocator. | |
| void | computeHash (DataHashInfo &hash_info) override |
| Calculates the hash of the data. | |
| IMemoryAllocator * | memoryAllocator () const override |
| Allocator used for the data. | |
Private Attributes | |
| Array2DataT< DataType > * | m_p = nullptr |
Definition at line 163 of file Array2Data.h.
|
inlineexplicit |
Definition at line 169 of file Array2Data.h.
|
inlineoverridevirtual |
Container associated with the data.
Implements Arcane::IArray2DataInternalT< DataType >.
Definition at line 197 of file Array2Data.h.
|
inlineoverridevirtual |
Changes the variable's allocator.
Implements Arcane::INumericDataInternal.
Definition at line 239 of file Array2Data.h.
|
inlineoverridevirtual |
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 from Arcane::IDataInternal.
Definition at line 199 of file Array2Data.h.
References Arcane::asBytes(), and Arcane::IDataCompressor::compress().
|
inlineoverridevirtual |
Calculates the hash of the data.
Outputs the version and value into hash_info.m_version and hash_info.m_value.
Implements Arcane::IDataInternal.
Definition at line 240 of file Array2Data.h.
|
inlineoverridevirtual |
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 from Arcane::IDataInternal.
Definition at line 213 of file Array2Data.h.
References Arcane::asWritableBytes(), and Arcane::IDataCompressor::decompress().
|
inlineoverridevirtual |
Number of elements in the first dimension.
Implements Arcane::INumericDataInternal.
Definition at line 234 of file Array2Data.h.
|
inlineoverridevirtual |
Allocator used for the data.
Implements Arcane::INumericDataInternal.
Definition at line 244 of file Array2Data.h.
|
inlineoverridevirtual |
Memory view of the data.
Implements Arcane::INumericDataInternal.
Definition at line 224 of file Array2Data.h.
References Arcane::basicDataTypeSize(), Arcane::makeMutableMemoryView(), and Arcane::Array2DataT< DataType >::value().
|
inlineoverridevirtual |
Generic interface for numeric data (nullptr if the data is not numeric).
Reimplemented from Arcane::IDataInternal.
Definition at line 238 of file Array2Data.h.
|
inlineoverridevirtual |
Reserves memory for new_capacity elements.
Implements Arcane::IArray2DataInternalT< DataType >.
Definition at line 175 of file Array2Data.h.
|
inlineoverridevirtual |
Resizes the container.
Implements Arcane::IArray2DataInternalT< DataType >.
Definition at line 180 of file Array2Data.h.
References ARCANE_FATAL.
|
inlineoverridevirtual |
Resizes the container only in dimension 1.
Implements Arcane::IArray2DataInternalT< DataType >.
Definition at line 176 of file Array2Data.h.
|
inlineoverridevirtual |
Frees additional allocated memory.
Implements Arcane::IArray2DataInternalT< DataType >.
Definition at line 198 of file Array2Data.h.
|
private |
Definition at line 248 of file Array2Data.h.