Encapsulates a simple dataset from an HDF5 file that represents an array. More...
#include <arcane/hdf5/Hdf5Utils.h>
Classes | |
| struct | ValueWithUid |
Public Member Functions | |
| StandardArrayT (hid_t hfile, const String &hpath) | |
| void | read (StandardTypes &st, ArrayView< DataType > buffer) |
| Reads the dataset of a 1D array. This operation is only valid after calling readDim(). buffer must have been allocated. To read directly, use directRead(). | |
| void | directRead (StandardTypes &st, Array< DataType > &buffer) |
| Reads the dataset of a 1D array. | |
| void | parallelRead (IParallelMng *pm, StandardTypes &st, Array< DataType > &buffer, Int64Array &unique_ids) |
| void | write (StandardTypes &st, ConstArrayView< DataType > buffer) |
| void | parallelWrite (IParallelMng *pm, StandardTypes &st, ConstArrayView< DataType > buffer, Int64ConstArrayView unique_ids) |
| Public Member Functions inherited from Arcane::Hdf5Utils::StandardArray | |
| StandardArray (hid_t hfile, const String &hpath) | |
| void | setIdsPath (const String &ids_path) |
| When reading, positions the path in hfile to the dataset containing the unique_ids. | |
| void | readDim () |
| Int64ConstArrayView | dimensions () const |
| virtual bool | exists () const |
Private Member Functions | |
| void | _writeSortedValues (ITraceMng *tm, StandardTypes &st, ConstArrayView< DataType > buffer, Int64ConstArrayView unique_ids) |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::Hdf5Utils::StandardArray | |
| void | _write (const void *buffer, Integer nb_element, hid_t save_type, hid_t native_type) |
| Protected Attributes inherited from Arcane::Hdf5Utils::StandardArray | |
| hid_t | m_hfile |
| String | m_hpath |
| String | m_ids_hpath |
| HDataset | m_hdataset |
| HDataset | m_ids_dataset |
| Int64UniqueArray | m_dimensions |
| bool | m_is_init |
Encapsulates a simple dataset from an HDF5 file that represents an array.
Definition at line 819 of file hdf5/Hdf5Utils.h.
| Arcane::Hdf5Utils::StandardArrayT< DataType >::StandardArrayT | ( | hid_t | hfile, |
| const String & | hpath ) |
Definition at line 1274 of file Hdf5Utils.cc.
|
private |
Definition at line 1354 of file Hdf5Utils.cc.
| void Arcane::Hdf5Utils::StandardArrayT< DataType >::directRead | ( | StandardTypes & | st, |
| Array< DataType > & | buffer ) |
Reads the dataset of a 1D array.
Definition at line 1292 of file Hdf5Utils.cc.
References read(), and Arcane::Array< T >::resize().
Referenced by Arcane::Hdf5VariableReaderHelper2::open().
| void Arcane::Hdf5Utils::StandardArrayT< DataType >::parallelRead | ( | IParallelMng * | pm, |
| StandardTypes & | st, | ||
| Array< DataType > & | buffer, | ||
| Int64Array & | unique_ids ) |
Definition at line 1303 of file Hdf5Utils.cc.
| void Arcane::Hdf5Utils::StandardArrayT< DataType >::parallelWrite | ( | IParallelMng * | pm, |
| StandardTypes & | st, | ||
| ConstArrayView< DataType > | buffer, | ||
| Int64ConstArrayView | unique_ids ) |
Definition at line 1401 of file Hdf5Utils.cc.
| void Arcane::Hdf5Utils::StandardArrayT< DataType >::read | ( | StandardTypes & | st, |
| ArrayView< DataType > | buffer ) |
Reads the dataset of a 1D array. This operation is only valid after calling readDim(). buffer must have been allocated. To read directly, use directRead().
Definition at line 1283 of file Hdf5Utils.cc.
References Arcane::ArrayView< T >::data().
Referenced by directRead().
| void Arcane::Hdf5Utils::StandardArrayT< DataType >::write | ( | StandardTypes & | st, |
| ConstArrayView< DataType > | buffer ) |
Definition at line 1344 of file Hdf5Utils.cc.