CNORXZ
Container with Native Operation Routines and Expressions
|
#include <h5_table.h>
Public Types | |
typedef std::pair< SizeT, String > | FieldID |
Protected Member Functions | |
void | mkTypes () |
Protected Attributes | |
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 |
typedef std::pair<SizeT,String> CNORXZ::hdf5::Table::FieldID |
Meta data type of fields range.
Definition at line 28 of file h5_table.h.
CNORXZ::hdf5::Table::Table | ( | const String & | name, |
const ContentBase * | _parent ) |
Construct the class.
name | Table name. |
_parent | Parent content object. |
Definition at line 19 of file h5_table.cc.
CNORXZ::hdf5::Table::~Table | ( | ) |
Destructor. Release all involved hdf5 ids.
Definition at line 58 of file h5_table.cc.
Append records to the table.
n | Number of records to append. |
data | Records data. |
Definition at line 137 of file h5_table.cc.
|
finaloverridevirtual |
Close object.
Implements CNORXZ::hdf5::ContentBase.
Definition at line 83 of file h5_table.cc.
CNORXZ::hdf5::Table::DEFAULT_MEMBERS | ( | Table | ) |
Default constructors and assignments.
|
finaloverridevirtual |
Check if group exists in the parent object.
Implements CNORXZ::hdf5::ContentBase.
Definition at line 103 of file h5_table.cc.
|
finaloverridevirtual |
Get the file name.
Implements CNORXZ::hdf5::ContentBase.
Definition at line 98 of file h5_table.cc.
Ininitialize table field names.
fnames | Table field names. |
Definition at line 108 of file h5_table.cc.
Table & CNORXZ::hdf5::Table::initTable | ( | SizeT | n, |
const void * | data, | ||
SizeT | dsize, | ||
SizeT | chunk_size ) |
Initialize the table.
n | Number of records (rows). |
data | Table data. |
dsize | Record type size. |
chunk_size | Chunk size. |
Definition at line 120 of file h5_table.cc.
Iterate over table records.
f | function object to be executed on each table record. |
Definition at line 23 of file h5_table.cc.h.
|
protected |
Type setup function.
Definition at line 194 of file h5_table.cc.
|
finaloverridevirtual |
Open object.
Implements CNORXZ::hdf5::ContentBase.
Definition at line 73 of file h5_table.cc.
|
finaloverridevirtual |
Get object path.
Implements CNORXZ::hdf5::ContentBase.
Definition at line 93 of file h5_table.cc.
Read table.
Definition at line 168 of file h5_table.cc.
Read record.
pos | Number of the record to be read. |
Definition at line 153 of file h5_table.cc.
Read records.
pos | Number of first record to read. |
n | Number of records to read. |
data | Target pointer. |
Definition at line 146 of file h5_table.cc.
|
finaloverridevirtual |
Check if in read-only mode
Implements CNORXZ::hdf5::ContentBase.
Definition at line 68 of file h5_table.cc.
|
finaloverridevirtual |
Get the content type.
Implements CNORXZ::hdf5::ContentBase.
Definition at line 63 of file h5_table.cc.
|
protected |
Fields range.
Definition at line 104 of file h5_table.h.
Field element type interpreting functions.
Definition at line 110 of file h5_table.h.
Field element offsets.
Definition at line 106 of file h5_table.h.
|
protected |
Records range.
Definition at line 103 of file h5_table.h.
Field element type sizes.
Definition at line 105 of file h5_table.h.
|
protected |
Record type id.
Definition at line 108 of file h5_table.h.
Field element type ids.
Definition at line 107 of file h5_table.h.
|
protected |
Record type size.
Definition at line 109 of file h5_table.h.