9 #ifndef H5PROPERTY_LIST_HPP 10 #define H5PROPERTY_LIST_HPP 14 #include <H5Ppublic.h> 46 template <
typename Property>
47 void add(
const Property& property);
80 Chunking(
const std::vector<hsize_t>& dims) : _dims(dims) {}
84 template<
typename... Args>
85 Chunking(hsize_t item, Args... args) :
Chunking(
std::vector<hsize_t>{item,
static_cast<hsize_t
>(args)...}) {}
91 void apply(hid_t hid)
const;
92 const std::vector<hsize_t>
_dims;
102 void apply(hid_t hid)
const;
113 void apply(hid_t hid)
const;
123 Caching(
const size_t numSlots,
const size_t cacheSize,
124 const double w0 = H5D_CHUNK_CACHE_W0_DEFAULT)
125 : _numSlots(numSlots)
126 , _cacheSize(cacheSize)
132 void apply(hid_t hid)
const;
142 #endif // H5PROPERTY_LIST_HPP
void add(const Property &property)
Chunking(const std::vector< hsize_t > &dims)
Chunking(std::initializer_list< hsize_t > items)
Chunking(hsize_t item, Args... args)
Generic HDF5 property List.
Properties(Properties &&other)
const std::vector< hsize_t > _dims
const unsigned int _numSlots
Caching(const size_t numSlots, const size_t cacheSize, const double w0=H5D_CHUNK_CACHE_W0_DEFAULT)
Properties & operator=(Properties &&other)
const std::vector< hsize_t > & getDimensions() const