RMF
RMF::HDF5::DataSetD< TypeTraits, D > Class Template Reference

#include <RMF/HDF5/DataSetD.h>

Inheritance diagram for RMF::HDF5::DataSetD< TypeTraits, D >:

Public Types

typedef DataSetIndexD< D > Index
typedef DataSetIndexD< D - 1 > RowIndex
Public Types inherited from RMF::HDF5::ConstDataSetD< TypeTraits, D >
typedef DataSetIndexD< D > Index
typedef DataSetIndexD< D - 1 > RowIndex

Public Member Functions

void set_block (const Index &lb, const Index &size, const typename TypeTraits::Types &value)
 Write a rectangular block starting at ln of size size.
void set_row (const RowIndex &ijkr, const typename TypeTraits::Types &value)
void set_size (const DataSetIndexD< D > &ijk)
void set_value (const DataSetIndexD< D > &ijk, typename TypeTraits::Type value)
void set_attribute (std::string name, typename TypeTraits::Types value)
void set_int_attribute (std::string nm, const Ints &value)
void set_float_attribute (std::string nm, const Floats &value)
void set_index_attribute (std::string nm, const Ints &value)
void set_char_attribute (std::string nm, std::string value)
Public Member Functions inherited from RMF::HDF5::ConstDataSetD< TypeTraits, D >
TypeTraits::Types get_block (const Index &lb, const Index &size) const
 Read a rectangular block starting at ln of size size.
TypeTraits::Types get_row (const RowIndex ijkr) const
DataSetIndexD< D > get_size () const
TypeTraits::Type get_value (const DataSetIndexD< D > &ijk) const
Public Member Functions inherited from RMF::HDF5::ConstAttributes< Object >
CT copy_to (const CF &cf) const
bool get_has_attribute (std::string nm) const
TypeTraits::Types get_attribute (std::string name) const
Ints get_int_attribute (std::string nm) const
Floats get_float_attribute (std::string nm) const
Ints get_index_attribute (std::string nm) const
std::string get_char_attribute (std::string nm) const
Public Member Functions inherited from RMF::HDF5::Object
File get_file () const
 Get an object for the file containing the object.
hid_t get_handle () const
std::string get_name () const

Protected Types

typedef DataSetAccessPropertiesD< TypeTraits, D > AccessProperties
typedef DataSetCreationPropertiesD< TypeTraits, D > CreationProperties
Protected Types inherited from RMF::HDF5::ConstDataSetD< TypeTraits, D >
typedef DataSetAccessPropertiesD< TypeTraits, D > AccessProperties
typedef DataSetCreationPropertiesD< TypeTraits, D > CreationProperties

Protected Member Functions

 DataSetD (std::shared_ptr< SharedHandle > parent, std::string name, AccessProperties props)
 DataSetD (std::shared_ptr< SharedHandle > parent, std::string name, CreationProperties props)
Protected Member Functions inherited from RMF::HDF5::MutableAttributes< ConstDataSetD< TypeTraits, D > >
 MutableAttributes (const A &h)
 MutableAttributes (const A &h, const B &i)
 MutableAttributes (const A &h, const B &i, const C &j)
 MutableAttributes (const A &h, const B &i, const C &j, const D &k)
Protected Member Functions inherited from RMF::HDF5::ConstDataSetD< TypeTraits, D >
 ConstDataSetD (std::shared_ptr< SharedHandle > parent, std::string name, AccessProperties props)
 ConstDataSetD (std::shared_ptr< SharedHandle > parent, std::string name, CreationProperties props)
void check_index (const DataSetIndexD< D > &ijk) const
const Handle & get_data_space () const
const Handle & get_input_data_space () const
hsize_t * get_ones () const
const Handle & get_row_data_space () const
void initialize_handles ()
Protected Member Functions inherited from RMF::HDF5::ConstAttributes< Object >
 ConstAttributes (std::shared_ptr< SharedHandle > h)
Protected Member Functions inherited from RMF::HDF5::Object
 Object (std::shared_ptr< SharedHandle > h)
std::shared_ptr< SharedHandle > get_shared_handle () const
void open (std::shared_ptr< SharedHandle > h)

Detailed Description

template<class TypeTraits, unsigned int D>
class RMF::HDF5::DataSetD< TypeTraits, D >

Wrap an HDF5 data set. Typedefs and python types are provided for data sets in 1,2, and 3 dimensions with all the supported types. They are named as RMF::HDF5::IndexDataSet2D (or RMF.HDF5.IndexDataSet2). See the HDF5 manual for more information.

Definition at line 33 of file DataSetD.h.

Member Typedef Documentation

◆ AccessProperties

template<class TypeTraits, unsigned int D>
typedef DataSetAccessPropertiesD<TypeTraits, D> RMF::HDF5::DataSetD< TypeTraits, D >::AccessProperties
protected

Definition at line 39 of file DataSetD.h.

◆ CreationProperties

template<class TypeTraits, unsigned int D>
typedef DataSetCreationPropertiesD<TypeTraits, D> RMF::HDF5::DataSetD< TypeTraits, D >::CreationProperties
protected

Definition at line 38 of file DataSetD.h.

◆ Index

template<class TypeTraits, unsigned int D>
typedef DataSetIndexD<D> RMF::HDF5::DataSetD< TypeTraits, D >::Index

Definition at line 53 of file DataSetD.h.

◆ RowIndex

template<class TypeTraits, unsigned int D>
typedef DataSetIndexD<D - 1> RMF::HDF5::DataSetD< TypeTraits, D >::RowIndex

Definition at line 68 of file DataSetD.h.

Constructor & Destructor Documentation

◆ DataSetD() [1/3]

template<class TypeTraits, unsigned int D>
RMF::HDF5::DataSetD< TypeTraits, D >::DataSetD ( std::shared_ptr< SharedHandle > parent,
std::string name,
CreationProperties props )
protected

Definition at line 41 of file DataSetD.h.

◆ DataSetD() [2/3]

template<class TypeTraits, unsigned int D>
RMF::HDF5::DataSetD< TypeTraits, D >::DataSetD ( std::shared_ptr< SharedHandle > parent,
std::string name,
AccessProperties props )
protected

Definition at line 44 of file DataSetD.h.

◆ DataSetD() [3/3]

template<class TypeTraits, unsigned int D>
RMF::HDF5::DataSetD< TypeTraits, D >::DataSetD ( )

Definition at line 54 of file DataSetD.h.

Member Function Documentation

◆ set_block()

template<class TypeTraits, unsigned int D>
void RMF::HDF5::DataSetD< TypeTraits, D >::set_block ( const Index & lb,
const Index & size,
const typename TypeTraits::Types & value )

Definition at line 87 of file DataSetD.h.

◆ set_row()

template<class TypeTraits, unsigned int D>
void RMF::HDF5::DataSetD< TypeTraits, D >::set_row ( const RowIndex & ijkr,
const typename TypeTraits::Types & value )

Definition at line 69 of file DataSetD.h.

◆ set_size()

template<class TypeTraits, unsigned int D>
void RMF::HDF5::DataSetD< TypeTraits, D >::set_size ( const DataSetIndexD< D > & ijk)

Definition at line 113 of file DataSetD.h.

◆ set_value()

template<class TypeTraits, unsigned int D>
void RMF::HDF5::DataSetD< TypeTraits, D >::set_value ( const DataSetIndexD< D > & ijk,
typename TypeTraits::Type value )

Definition at line 56 of file DataSetD.h.


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