Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Hdf5Utils::StandardArrayT< DataType > Class Template Reference

Encapsulates a simple dataset from an HDF5 file that represents an array. More...

#include <arcane/hdf5/Hdf5Utils.h>

Inheritance diagram for Arcane::Hdf5Utils::StandardArrayT< DataType >:
Collaboration diagram for Arcane::Hdf5Utils::StandardArrayT< DataType >:

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

Detailed Description

template<typename DataType>
class Arcane::Hdf5Utils::StandardArrayT< DataType >

Encapsulates a simple dataset from an HDF5 file that represents an array.

Definition at line 819 of file hdf5/Hdf5Utils.h.

Constructor & Destructor Documentation

◆ StandardArrayT()

template<typename DataType>
Arcane::Hdf5Utils::StandardArrayT< DataType >::StandardArrayT ( hid_t hfile,
const String & hpath )

Definition at line 1274 of file Hdf5Utils.cc.

Member Function Documentation

◆ _writeSortedValues()

template<typename DataType>
void Arcane::Hdf5Utils::StandardArrayT< DataType >::_writeSortedValues ( ITraceMng * tm,
StandardTypes & st,
ConstArrayView< DataType > buffer,
Int64ConstArrayView unique_ids )
private

Definition at line 1354 of file Hdf5Utils.cc.

◆ directRead()

template<typename DataType>
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parallelRead()

template<typename DataType>
void Arcane::Hdf5Utils::StandardArrayT< DataType >::parallelRead ( IParallelMng * pm,
StandardTypes & st,
Array< DataType > & buffer,
Int64Array & unique_ids )

Definition at line 1303 of file Hdf5Utils.cc.

◆ parallelWrite()

template<typename DataType>
void Arcane::Hdf5Utils::StandardArrayT< DataType >::parallelWrite ( IParallelMng * pm,
StandardTypes & st,
ConstArrayView< DataType > buffer,
Int64ConstArrayView unique_ids )

Definition at line 1401 of file Hdf5Utils.cc.

◆ read()

template<typename DataType>
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

template<typename DataType>
void Arcane::Hdf5Utils::StandardArrayT< DataType >::write ( StandardTypes & st,
ConstArrayView< DataType > buffer )

Definition at line 1344 of file Hdf5Utils.cc.


The documentation for this class was generated from the following files: