CNORXZ
Container with Native Operation Routines and Expressions
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CNORXZ::hdf5::SDataset< T > Class Template Reference

#include <h5_dataset.h>

Inheritance diagram for CNORXZ::hdf5::SDataset< T >:
CNORXZ::hdf5::Dataset CNORXZ::hdf5::ContentBase

Public Member Functions

 DEFAULT_MEMBERS (SDataset)
 
 SDataset (const String &name, const ContentBase *_parent)
 
MArray< Tread () const
 
template<class I , typename M >
MArray< Tread (const IndexInterface< I, M > &beg, const IndexInterface< I, M > &end) const
 
- Public Member Functions inherited from CNORXZ::hdf5::Dataset
 DEFAULT_MEMBERS (Dataset)
 
 Dataset (const String &name, const ContentBase *_parent)
 
 ~Dataset ()
 
virtual ContentType type () const override final
 
virtual bool ro () const override final
 
virtual Datasetopen () override final
 
virtual Datasetclose () override final
 
virtual String path () const override final
 
virtual String filename () const override final
 
virtual bool exists () const override final
 
Datasetinit (const RangePtr &dataRange, hid_t type)
 
template<typename T >
Datasetinit (const ArrayBase< T > &data)
 
const RangePtrdataRange () const
 
- Public Member Functions inherited from CNORXZ::hdf5::ContentBase
 DEFAULT_MEMBERS (ContentBase)
 
 ContentBase (const String &_name, const ContentBase *_parent=nullptr)
 
virtual ~ContentBase ()=default
 
const Stringname () const
 
const ContentBaseparent () const
 
hid_t id () const
 
bool isOpen () const
 
template<typename T >
ContentBaseaddAttribute (const String &name, const T &value)
 
DType getAttribute (const String &name) const
 
bool attributeExists (const String &name) const
 
std::map< String, DTypegetAttributes () const
 
std::map< String, DTypegetRecursiveAttributes () const
 

Additional Inherited Members

- Protected Attributes inherited from CNORXZ::hdf5::Dataset
RangePtr mDataRange
 
hid_t mType
 
hid_t mFilespace
 
- Protected Attributes inherited from CNORXZ::hdf5::ContentBase
String mName
 
const ContentBasemParent = nullptr
 
hid_t mId = 0
 

Detailed Description

template<typename T>
class CNORXZ::hdf5::SDataset< T >

Class to handle hdf5 datasets, the value type is known at compile time.

Template Parameters
TDataset value type.

Definition at line 76 of file h5_dataset.h.

Constructor & Destructor Documentation

◆ SDataset()

template<typename T >
CNORXZ::hdf5::SDataset< T >::SDataset ( const String & name,
const ContentBase * _parent )

Construct the class.

Parameters
nameDataset name.
_parentParent content object.

Definition at line 43 of file h5_dataset.cc.h.

Member Function Documentation

◆ DEFAULT_MEMBERS()

template<typename T >
CNORXZ::hdf5::SDataset< T >::DEFAULT_MEMBERS ( SDataset< T > )

Default constructors and assignments.

◆ read() [1/2]

template<typename T >
MArray< T > CNORXZ::hdf5::SDataset< T >::read ( ) const

Read the dataset.

Returns
Array containing the dataset values.

Definition at line 48 of file h5_dataset.cc.h.

◆ read() [2/2]

template<typename T >
template<class I , typename M >
MArray< T > CNORXZ::hdf5::SDataset< T >::read ( const IndexInterface< I, M > & beg,
const IndexInterface< I, M > & end ) const

Read a given subset of the dataset. The subset needs to be hypercubic.

Parameters
begIndex indicating the begin edge of the hypercube.
endIndex indicating the end edge of the hypercube (inclusive).
Returns
Array containing the dataset values.

Definition at line 68 of file h5_dataset.cc.h.


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