h5cpp  0.5.1
A modern C++ wrapper for the HDF5 C library
hdf5::dataspace::DataspaceHolder Class Reference

data space object holder

#include <type_trait.hpp>

Public Member Functions

 DataspaceHolder ()
 default constructor More...
 
 DataspaceHolder (DataspacePool &pool)
 constructor More...
 
template<typename T >
const Dataspaceget (const T &v)
 factory holder method for getting reference of data spaces More...
 

Constructor & Destructor Documentation

◆ DataspaceHolder() [1/2]

hdf5::dataspace::DataspaceHolder::DataspaceHolder ( )
inline

The default constructor. The dataspace pool is created internally

◆ DataspaceHolder() [2/2]

hdf5::dataspace::DataspaceHolder::DataspaceHolder ( DataspacePool pool)
inline
Parameters
pooldataspace pool

Member Function Documentation

◆ get()

template<typename T >
const Dataspace & hdf5::dataspace::DataspaceHolder::get ( const T &  v)

Returns data space reference for static data space object if available. Otherwise it creates a new data space object and returns its reference.

Parameters
vprovided dataspace data
Returns
data space reference for data space object

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