h5cpp
0.5.2
A modern C++ wrapper for the HDF5 C library
|
dataset creation property list
#include <dataset_creation.hpp>
Public Member Functions | |
DatasetCreationList () | |
default constructor More... | |
DatasetCreationList (const DatasetCreationList &)=default | |
~DatasetCreationList () override | |
destructor More... | |
DatasetCreationList (ObjectHandle &&handle) | |
constructor More... | |
void | layout (DatasetLayout layout) const |
set dataset layout More... | |
DatasetLayout | layout () const |
get dataset layout More... | |
void | chunk (const hdf5::Dimensions &chunk_dims) const |
set chunk dimensions More... | |
hdf5::Dimensions | chunk () const |
get chunk dimensions More... | |
template<typename T > | |
void | fill_value (const T &value, const datatype::Datatype &type=datatype::TypeTrait< T >::create()) const |
set fill value for a dataset More... | |
template<typename T > | |
T | fill_value (const datatype::Datatype &type=datatype::TypeTrait< T >::create()) const |
get the fill value More... | |
DatasetFillValueStatus | fill_value_status () const |
void | fill_time (DatasetFillTime time) const |
set fill time More... | |
DatasetFillTime | fill_time () const |
get fill time More... | |
void | allocation_time (DatasetAllocTime time) const |
set allocation time More... | |
DatasetAllocTime | allocation_time () const |
get allocation time More... | |
unsigned int | nfilters () const |
get a number of filters More... | |
Public Member Functions inherited from hdf5::property::ObjectCreationList | |
ObjectCreationList () | |
constructor More... | |
ObjectCreationList (const ObjectCreationList &)=default | |
virtual | ~ObjectCreationList () override |
destructor More... | |
ObjectCreationList (ObjectHandle &&handle) | |
void | enable_time_tracking () const |
enable object time tracking More... | |
void | disable_time_tracking () const |
disable object time tracking More... | |
bool | time_tracking () const |
return time tacking status More... | |
void | attribute_creation_order (const CreationOrder &order) const |
set the attribute creation order More... | |
CreationOrder | attribute_creation_order () const |
retrieve current attribute creation order More... | |
void | attribute_storage_thresholds (unsigned max_compact, unsigned min_dense) const |
set storage layout thresholds More... | |
unsigned | attribute_storage_maximum_compact () const |
get upper threshold for compact storage More... | |
unsigned | attribute_storage_minimum_dense () const |
get lower threshold for dense threshold More... | |
Public Member Functions inherited from hdf5::property::List | |
List (const Class &plist_class) | |
constructor More... | |
List (const List &plist) | |
copy constructor More... | |
List (ObjectHandle &&handle) | |
constructor More... | |
List & | operator= (const List &type) |
copy assignment More... | |
virtual | ~List () |
destructor More... | |
List & | operator= (List &&type)=default |
List (List &&type)=default | |
Class | get_class () const |
return property list class More... | |
operator hid_t () const | |
conversion operator More... | |
Additional Inherited Members | |
Protected Member Functions inherited from hdf5::property::ObjectCreationList | |
ObjectCreationList (const Class &plist_class) | |
hdf5::property::DatasetCreationList::DatasetCreationList | ( | ) |
|
default |
|
override |
|
explicit |
Construct a new dataset creation property list from an HDF5 handle. This constructor will throw an exception if the handle does not reference a dataset creation property list.
std::runtime_error | in case of a failure |
handle | r-value reference to an HDF5 handle |
DatasetAllocTime hdf5::property::DatasetCreationList::allocation_time | ( | ) | const |
void hdf5::property::DatasetCreationList::allocation_time | ( | DatasetAllocTime | time | ) | const |
hdf5::Dimensions hdf5::property::DatasetCreationList::chunk | ( | ) | const |
std::runtime_error | in case of a failure |
void hdf5::property::DatasetCreationList::chunk | ( | const hdf5::Dimensions & | chunk_dims | ) | const |
The chunk dimensions must be of same rank as the dataspace used to create the dataset.
std::runtime_error | in case of a failure |
chunk_dims | vector with elements along each chunk dimension |
DatasetFillTime hdf5::property::DatasetCreationList::fill_time | ( | ) | const |
void hdf5::property::DatasetCreationList::fill_time | ( | DatasetFillTime | time | ) | const |
T hdf5::property::DatasetCreationList::fill_value | ( | const datatype::Datatype & | type = datatype::TypeTrait<T>::create() | ) | const |
Get the fill value for a dataset stored in the property list as an instance of T. T must not necessarily be of the same type as the data type used t
T | requrested type for the fill value |
type | optional HDF5 data type |
void hdf5::property::DatasetCreationList::fill_value | ( | const T & | value, |
const datatype::Datatype & | type = datatype::TypeTrait<T>::create() |
||
) | const |
By default the library tries to deduce the appropriate HDF5 data type automatically. This will succeed if
T
is a native type already implemented in the libraryT
Optionally, an HDF5 data type can be passed as a second argument to this member function. T must not necessarily be the same type used to create the dataset however, the two types must be convertible.
std::runtime_error | in case of a failure |
value | the actual fill value |
type | an optional HDF5 data type |
T | the type of the fill value |
DatasetFillValueStatus hdf5::property::DatasetCreationList::fill_value_status | ( | ) | const |
DatasetLayout hdf5::property::DatasetCreationList::layout | ( | ) | const |
std::runtime_error | in case of failures |
void hdf5::property::DatasetCreationList::layout | ( | DatasetLayout | layout | ) | const |
std::runtime_error | in case of failures |
layout | required dataset layout |
unsigned int hdf5::property::DatasetCreationList::nfilters | ( | ) | const |