CNORXZ
Container with Native Operation Routines and Expressions
|
#include <h5_table.h>
Additional Inherited Members | |
Public Types inherited from CNORXZ::hdf5::Table | |
typedef std::pair< SizeT, String > | FieldID |
Protected Member Functions inherited from CNORXZ::hdf5::Table | |
void | mkTypes () |
Protected Attributes inherited from CNORXZ::hdf5::Table | |
RangePtr | mRecords |
RangePtr | mFields |
MArray< SizeT > | mSizes |
MArray< SizeT > | mOffsets |
MArray< hid_t > | mTypes |
hid_t | mType = 0 |
SizeT | mTypesize = 0 |
MArray< std::function< DType(const char *)> | mInterpret ) |
Protected Attributes inherited from CNORXZ::hdf5::ContentBase | |
String | mName |
const ContentBase * | mParent = nullptr |
hid_t | mId = 0 |
Class to handle hdf5 tables, the record type is known at compile time. The records are accessed by a std tuple. Caution: The ordering of the record entries is fixed by their memory location. The std tuple has a reverse ordering w.r.t. the memory location, i.e. a record with element types T1-T2-T3 (memory ordering) and field names "T1", "T2", "T3", requires template argumens <T3,T2,T1>.
Ts | Record element types. |
Definition at line 125 of file h5_table.h.
CNORXZ::hdf5::STable< Ts >::STable | ( | const String & | name, |
const ContentBase * | _parent ) |
Construct the class.
name | Table name. |
_parent | Parent content object. |
Definition at line 41 of file h5_table.cc.h.
CNORXZ::hdf5::STable< Ts >::STable | ( | const String & | name, |
const ContentBase * | _parent, | ||
const Arr< String, sizeof...(Ts)> & | fnames ) |
Construct the class.
name | Table name. |
_parent | Parent content object. |
fnames | Field names. |
Definition at line 67 of file h5_table.cc.h.
STable & CNORXZ::hdf5::STable< Ts >::appendRecord | ( | const MArray< Tuple< Ts... > > & | t | ) |
Append records to the table.
t | Array of tuples containing the records. |
STable< Ts... > & CNORXZ::hdf5::STable< Ts >::appendRecord | ( | const Tuple< Ts... > & | t | ) |
Append record to the table.
t | Tuple containing the record entries. |
Definition at line 105 of file h5_table.cc.h.
CNORXZ::hdf5::STable< Ts >::DEFAULT_MEMBERS | ( | STable< Ts > | ) |
Default constructors and assignments.
STable< Ts... > & CNORXZ::hdf5::STable< Ts >::initFields | ( | const Arr< String, sizeof...(Ts)> & | fnames | ) |
Ininitialize and setup table fields.
fnames | Table field names. |
Definition at line 75 of file h5_table.cc.h.
decltype(auto) CNORXZ::hdf5::STable< Ts >::iterRecords | ( | F && | f | ) | const |
Iterate over all table records.
f | Function object to be executed on each record. |
Definition at line 34 of file h5_table.cc.h.
MArray< Tuple< Ts... > > CNORXZ::hdf5::STable< Ts >::read | ( | ) | const |
Read the table.
Definition at line 118 of file h5_table.cc.h.