25 #include <pni/core/types.hpp>
113 const void *ptr)
const;
130 const pni::core::string &message)
const
180 pni::core::type_id_t tid,
182 const
type_imp::index_vector_type &chunk,
201 void grow(const
size_t &e=0,const
size_t &n=1) ;
227 type_imp::index_vector_type shape() const;
294 void read(
pni::core::type_id_t tid,
295 const
type_imp::index_vector_type &shape,
317 void write(
pni::core::type_id_t tid,
318 const
type_imp::index_vector_type &shape,
319 const
void *ptr) const;
337 pni::core::
string name() const;
413 pni::core::type_id_t tid,
414 bool overwrite=false) const;
433 pni::core::type_id_t tid,
434 const
type_imp::index_vector_type &shape,
435 bool overwrite=false) const;
473 size_t nattr() const ;
488 bool has_attr(const
pni::core::
string &name) const;
502 void del_attr(const
pni::core::
string &name) const;
object_imp _object
object guard
Definition: field_imp.hpp:55
dataspace object
Definition: h5dataspace.hpp:68
dataset object
Definition: field_imp.hpp:51
size_t rank() const
rank of the dataset
Definition: field_imp.cpp:145
size_t size() const
total number of elements
Definition: field_imp.cpp:133
field_imp() noexcept
default constructor
Definition: field_imp.cpp:57
void write(pni::core::type_id_t tid, const type_imp::index_vector_type &shape, const void *ptr) const
write a single value
Definition: field_imp.cpp:234
unexpected invalid object
Definition: exceptions.hpp:130
object_imp parent() const
get parent object
Definition: field_imp.cpp:302
bool _selection_applied
check whether to apply the selection
Definition: field_imp.hpp:61
attribute implementation
Definition: attribute_imp.hpp:45
provide implementation specific types
Definition: type_imp.hpp:46
HDF5 group object.
Definition: group_imp.hpp:47
HDF5 type wrapper.
Definition: h5datatype.hpp:43
Definition: cbf_reader.hpp:41
basic HDF5 ID wrapper
Definition: object_imp.hpp:59
describe a selection in an HDF5 file
Definition: selection.hpp:37
void _write_data(const h5datatype &memtype, const h5dataspace &memspace, const h5dataspace &filespace, const void *ptr) const
write data to file
Definition: field_imp.cpp:267
type_imp::index_vector_type shape() const
shape of dataset
Definition: field_imp.cpp:112
void _update()
update internal parameters
Definition: field_imp.cpp:46
size_t nattr() const
get number of attributes
Definition: field_imp.cpp:338
base class for filter implementations
Definition: h5filter.hpp:48
pni::core::type_id_t type_id() const
datatype ID
Definition: field_imp.cpp:123
void grow(const size_t &e=0, const size_t &n=1)
extend the shape along a dimension
Definition: field_imp.cpp:91
void del_attr(const pni::core::string &name) const
delete an attribute
Definition: field_imp.cpp:350
void clear_selections()
remove a selection
Definition: field_imp.cpp:392
pni::core::string name() const
get name
Definition: field_imp.cpp:293
bool is_valid() const
check group validity
Definition: field_imp.cpp:320
void close()
close the dataset
Definition: field_imp.cpp:286
void _read_data(const h5datatype &memtype, const h5dataspace &memspace, const h5dataspace &filespace, const object_imp &xfer_list, void *ptr) const
read data from file
Definition: field_imp.cpp:157
selection _selection
local selection object
Definition: field_imp.hpp:59
pni::core::string filename() const
get filename
Definition: field_imp.cpp:311
void apply_selection(const type_imp::selection_vector_type &s)
apply a selection
Definition: field_imp.cpp:381
h5dataspace _file_space
dataspace on file
Definition: field_imp.hpp:57
void read(pni::core::type_id_t tid, const type_imp::index_vector_type &shape, void *ptr) const
reading simple data from the dataset
Definition: field_imp.cpp:176
bool has_attr(const pni::core::string &name) const
check if attribute exists
Definition: field_imp.cpp:344
attribute_imp attr(const pni::core::string &name, pni::core::type_id_t tid, bool overwrite=false) const
create scalar attribute
void _throw_if_not_valid(const pni::core::exception_record &record, const pni::core::string &message) const
throw if not valid
Definition: field_imp.hpp:129