27 #include <pni/core/types.hpp>
102 void _read_all(pni::core::type_id_t tid,
void *ptr)
const;
157 typedef pni::core::dynamic_array<T> array_type;
165 std::copy(view.begin(),view.end(),ptr);
191 void _write_all(pni::core::type_id_t tid,
const void *ptr)
const;
203 const void *ptr)
const;
223 typedef pni::core::dynamic_array<T> array_type;
231 std::copy(ptr,ptr+view.size(),view.begin());
275 void write(
pni::core::type_id_t tid,const
void *ptr) const;
293 void read(
pni::core::type_id_t tid,
void *ptr) const;
370 pni::core::
string name() const;
pni::core::string name() const
get name
Definition: attribute_imp.cpp:91
dataspace object
Definition: h5dataspace.hpp:68
void _write_selection(const pni::core::type_id_t tid, const void *ptr) const
write selection
Definition: attribute_imp.cpp:217
h5dataspace _dspace
handler to the dataspace object of the attribute
Definition: attribute_imp.hpp:51
void clear_selection()
remove selection
Definition: attribute_imp.cpp:370
selection _selection
selection instance
Definition: attribute_imp.hpp:56
void _read_all(pni::core::type_id_t tid, void *ptr) const
read the entire attribute
Definition: attribute_imp.cpp:277
h5datatype _dtype
handler to the datatype object of the attribute
Definition: attribute_imp.hpp:53
bool _apply_selection
flag determining whether or not the selection is set
Definition: attribute_imp.hpp:58
void _read_selection_typed(pni::core::type_id_t tid, T *ptr) const
read part of the attribute
Definition: attribute_imp.hpp:155
pni::core::string filename() const
get filename
Definition: attribute_imp.cpp:113
pni::core::type_id_t type_id() const
return type_id
Definition: attribute_imp.cpp:85
object_imp _object
handler to the undlying attribute object
Definition: attribute_imp.hpp:49
bool is_valid() const
check validity
Definition: attribute_imp.cpp:103
attribute implementation
Definition: attribute_imp.hpp:45
provide implementation specific types
Definition: type_imp.hpp:46
void close()
close object
Definition: attribute_imp.cpp:357
void _write_all(pni::core::type_id_t tid, const void *ptr) const
write all data
Definition: attribute_imp.cpp:175
type_imp::selection_vector_type create_slice_vector(const selection &s)
Definition: selection.cpp:201
object_imp parent() const
get parent
Definition: attribute_imp.cpp:97
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(pni::core::type_id_t tid, const void *ptr) const
write data from void
Definition: attribute_imp.cpp:202
attribute_imp() noexcept
default constructor
Definition: attribute_imp.cpp:58
size_t rank() const
get rank
Definition: attribute_imp.cpp:148
void _read_selection(pni::core::type_id_t tid, void *ptr) const
read part of the attribute
Definition: attribute_imp.cpp:311
type_imp::index_vector_type _get_io_shape() const
get shape for IO
Definition: attribute_imp.cpp:377
void _write_selection_typed(pni::core::type_id_t tid, const T *ptr) const
write data to selection
Definition: attribute_imp.hpp:221
std::vector< index_type > index_vector_type
container type for counters
Definition: type_imp.hpp:52
void _from_disk(const h5datatype &memtype, void *ptr) const
copy data from disk to memory
Definition: attribute_imp.cpp:193
void __update()
set dataspace and datatype
Definition: attribute_imp.cpp:40
size_t size() const
get size
Definition: attribute_imp.cpp:134
void read(pni::core::type_id_t tid, void *ptr) const
read data to void
Definition: attribute_imp.cpp:263
type_imp::index_vector_type shape() const
obtain attribute shape
Definition: attribute_imp.cpp:119
void apply_selection(const type_imp::selection_vector_type &s)
apply a selection to the attribute
Definition: attribute_imp.cpp:363
void _to_disk(const h5datatype &memtype, const void *ptr) const
write data from memory
Definition: attribute_imp.cpp:163