DUECA/DUSIME
Loading...
Searching...
No Matches
dueca::hdf5log::HDF5DCOWriteFunctor::LogDataSet Struct Reference

Organize data per element. More...

#include <HDF5DCOWriteFunctor.hxx>

Public Member Functions

 LogDataSet ()
 Default constructor.
void prepareRow (unsigned chunkidx, unsigned chunksize, bool flush)
 Before writing, prepare all indices.
void writeNew (const void *data, hsize_t chunkidx, const std::string &dum)
 With string.
template<size_t N>
void writeNew (const void *data, hsize_t chunkidx, const dueca::fixvector< N, std::string > &dum)
 With fixed size vector of strings.
template<typename Alloc, template< typename, typename > class V>
void writeNew (const void *data, hsize_t chunkidx, const V< std::string, Alloc > &dum)
 With iterable (stl vector & list) of c++ strings, needs copy of pointers.
template<typename K, typename V>
void writeNew (const void *data, hsize_t chunkidx, const std::map< K, V > &dum)
 With map, treat as iterable with key and val types, assume pairs are appropriately packed.
template<typename Alloc, typename D, template< typename, typename > class V>
void writeNew (const void *data, hsize_t chunkidx, const V< D, Alloc > &dum)
 With iterable and anything but strings, requires a copy.
template<typename T>
void writeNew (const void *data, hsize_t chunkidx, const T &dum)
 all objects are written as a direct type using HDF5 type from template
void writeNew (const void *data)
 Write data.
void finalize (unsigned finalsize)
 Flush the last bit.

Public Attributes

hsize_t dspace_dims [2]
 Dataspace dimensions, for current (1 row) write.
hsize_t ncols
 Size of the data vector, one for each element, becomes columns (if one, scalar)
H5::DataSet dset
 Handle to the data in the file.
H5::DataSpace memspace
 In-memory dataspace indices.
H5::DataSpace filspace
 In-file dataspace indices.
const H5::DataType * datatype
 Datatype.
unsigned offset
 Offset in the DCO object.

Detailed Description

Organize data per element.

Member Function Documentation

◆ writeNew()

template<typename T>
void dueca::hdf5log::HDF5DCOWriteFunctor::LogDataSet::writeNew ( const void * data,
hsize_t chunkidx,
const T & dum )
inline

all objects are written as a direct type using HDF5 type from template

Parameters
dataData pointer
chunkidxCurrent write index
dumReference to type

The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/dueca-4.2.8-build/dueca-4.2.8/hdf5utils/HDF5DCOWriteFunctor.hxx