MCKL
Monte Carlo Kernel Library
Public Member Functions | Protected Attributes | List of all members
mckl::HDF5ID< Derived > Class Template Reference

RAII class for HDF5 IDs. More...

#include <mckl/utility/hdf5.hpp>

Public Member Functions

 HDF5ID ()
 
 HDF5ID (::hid_t id)
 
 HDF5ID (const HDF5ID &other)
 
 HDF5ID (HDF5ID &&other)
 
 ~HDF5ID ()
 
bool good () const
 
::hid_t id () const
 
 operator bool () const
 
bool operator! () const
 
HDF5IDoperator= (const HDF5ID &other)
 
HDF5IDoperator= (HDF5ID &&other)
 

Protected Attributes

::hid_t id_
 

Detailed Description

template<typename Derived>
class mckl::HDF5ID< Derived >

RAII class for HDF5 IDs.

Definition at line 62 of file hdf5.hpp.

Constructor & Destructor Documentation

◆ HDF5ID() [1/4]

template<typename Derived>
mckl::HDF5ID< Derived >::HDF5ID ( )
inline

Definition at line 65 of file hdf5.hpp.

◆ HDF5ID() [2/4]

template<typename Derived>
mckl::HDF5ID< Derived >::HDF5ID ( ::hid_t  id)
inlineexplicit

Definition at line 67 of file hdf5.hpp.

◆ HDF5ID() [3/4]

template<typename Derived>
mckl::HDF5ID< Derived >::HDF5ID ( const HDF5ID< Derived > &  other)
inline

Definition at line 69 of file hdf5.hpp.

◆ HDF5ID() [4/4]

template<typename Derived>
mckl::HDF5ID< Derived >::HDF5ID ( HDF5ID< Derived > &&  other)
inline

Definition at line 86 of file hdf5.hpp.

◆ ~HDF5ID()

template<typename Derived>
mckl::HDF5ID< Derived >::~HDF5ID ( )
inline

Definition at line 94 of file hdf5.hpp.

Member Function Documentation

◆ good()

template<typename Derived>
bool mckl::HDF5ID< Derived >::good ( ) const
inline

Definition at line 102 of file hdf5.hpp.

◆ id()

template<typename Derived>
::hid_t mckl::HDF5ID< Derived >::id ( ) const
inline

Definition at line 101 of file hdf5.hpp.

◆ operator bool()

template<typename Derived>
mckl::HDF5ID< Derived >::operator bool ( ) const
inlineexplicit

Definition at line 104 of file hdf5.hpp.

◆ operator!()

template<typename Derived>
bool mckl::HDF5ID< Derived >::operator! ( ) const
inline

Definition at line 103 of file hdf5.hpp.

◆ operator=() [1/2]

template<typename Derived>
HDF5ID& mckl::HDF5ID< Derived >::operator= ( const HDF5ID< Derived > &  other)
inline

Definition at line 74 of file hdf5.hpp.

◆ operator=() [2/2]

template<typename Derived>
HDF5ID& mckl::HDF5ID< Derived >::operator= ( HDF5ID< Derived > &&  other)
inline

Definition at line 88 of file hdf5.hpp.

Member Data Documentation

◆ id_

template<typename Derived>
::hid_t mckl::HDF5ID< Derived >::id_
protected

Definition at line 107 of file hdf5.hpp.