Public Member Functions | |
| Impl (ArrayDataT< DataType > *p) | |
| void | reserve (Integer new_capacity) override |
| Reserves memory for new_capacity elements. | |
| Array< DataType > & | _internalDeprecatedValue () override |
| Container associated with the data. | |
| Integer | capacity () const override |
| Capacity allocated by the container. | |
| void | shrink () const override |
| Frees additional allocated memory. | |
| void | resize (Integer new_size) override |
| Resizes the container. | |
| void | dispose () override |
| Clears the container and frees 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 | |
| ArrayDataT< DataType > * | m_p = nullptr |
Definition at line 165 of file ArrayData.h.
|
inlineexplicit |
Definition at line 171 of file ArrayData.h.
|
inlineoverridevirtual |
Container associated with the data.
Implements Arcane::IArrayDataInternalT< DataType >.
Definition at line 178 of file ArrayData.h.
|
inlineoverridevirtual |
Capacity allocated by the container.
Implements Arcane::IArrayDataInternalT< DataType >.
Definition at line 179 of file ArrayData.h.
|
inlineoverridevirtual |
Changes the variable's allocator.
Implements Arcane::INumericDataInternal.
Definition at line 215 of file ArrayData.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 183 of file ArrayData.h.
References Arcane::asBytes(), Arcane::IDataCompressor::compress(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
|
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 216 of file ArrayData.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 196 of file ArrayData.h.
References Arcane::asWritableBytes(), and Arcane::IDataCompressor::decompress().
|
inlineoverridevirtual |
Clears the container and frees allocated memory.
Implements Arcane::IArrayDataInternalT< DataType >.
Definition at line 182 of file ArrayData.h.
|
inlineoverridevirtual |
Number of elements in the first dimension.
Implements Arcane::INumericDataInternal.
Definition at line 210 of file ArrayData.h.
|
inlineoverridevirtual |
Allocator used for the data.
Implements Arcane::INumericDataInternal.
Definition at line 220 of file ArrayData.h.
|
inlineoverridevirtual |
Memory view of the data.
Implements Arcane::INumericDataInternal.
Definition at line 206 of file ArrayData.h.
References Arcane::makeMutableMemoryView().
|
inlineoverridevirtual |
Generic interface for numeric data (nullptr if the data is not numeric).
Reimplemented from Arcane::IDataInternal.
Definition at line 214 of file ArrayData.h.
|
inlineoverridevirtual |
Reserves memory for new_capacity elements.
Implements Arcane::IArrayDataInternalT< DataType >.
Definition at line 177 of file ArrayData.h.
|
inlineoverridevirtual |
Resizes the container.
Implements Arcane::IArrayDataInternalT< DataType >.
Definition at line 181 of file ArrayData.h.
|
inlineoverridevirtual |
Frees additional allocated memory.
Implements Arcane::IArrayDataInternalT< DataType >.
Definition at line 180 of file ArrayData.h.
|
private |
Definition at line 224 of file ArrayData.h.