CNORXZ
Container with Native Operation Routines and Expressions
|
#include <h5_group.h>
Protected Member Functions | |
void | mkCont () |
AIndex< ContentPtr > | getIndexTo (const String &name) const |
BIndex< ContentPtr > | getIndexTo (const String &name) |
Static Protected Member Functions | |
template<typename C , class F > | |
static void | recursion (const C &c, F &&f) |
Protected Attributes | |
MArray< ContentPtr > | mCont |
Protected Attributes inherited from CNORXZ::hdf5::ContentBase | |
String | mName |
const ContentBase * | mParent = nullptr |
hid_t | mId = 0 |
CNORXZ::hdf5::Group::Group | ( | const String & | gname, |
const ContentBase * | _parent ) |
Construct the class.
gname | Group name. |
_parent | Parent content object. |
Definition at line 20 of file h5_group.cc.
CNORXZ::hdf5::Group::~Group | ( | ) |
Destructor. Release all involved hdf5 ids.
Definition at line 24 of file h5_group.cc.
Add a new dataset to this group.
T | Value type. |
name | Name of the created dataset. |
data | Dataset data. |
Definition at line 83 of file h5_group.cc.h.
Add a new group to this group.
name | Name of the created group. |
Definition at line 132 of file h5_group.cc.
Group & CNORXZ::hdf5::Group::addTable | ( | const String & | name, |
const ArrayBase< Tuple< Ts... > > & | data, | ||
const Arr< String, sizeof...(Ts)> & | fnames ) |
Add a new table to this group.
Ts | Table element types. |
Definition at line 96 of file h5_group.cc.h.
|
overridevirtual |
Close object.
Implements CNORXZ::hdf5::ContentBase.
Reimplemented in CNORXZ::hdf5::File.
Definition at line 57 of file h5_group.cc.
CNORXZ::hdf5::Group::DEFAULT_MEMBERS | ( | Group | ) |
Default constructors and assignments.
|
overridevirtual |
Check if group exists in the parent object.
Implements CNORXZ::hdf5::ContentBase.
Reimplemented in CNORXZ::hdf5::File.
Definition at line 82 of file h5_group.cc.
|
overridevirtual |
Get the file name.
Implements CNORXZ::hdf5::ContentBase.
Reimplemented in CNORXZ::hdf5::File.
Definition at line 74 of file h5_group.cc.
const MArray< ContentPtr > & CNORXZ::hdf5::Group::get | ( | ) | const |
Get objects contained by this group.
Definition at line 126 of file h5_group.cc.
const ContentPtr & CNORXZ::hdf5::Group::get | ( | const String & | name | ) | const |
Get object contained by this group.
name | Object name. |
Definition at line 87 of file h5_group.cc.
Get object contained by this group as dataset. Checks if the object is a table.
name | Dataset name. |
Definition at line 118 of file h5_group.cc.
Get object contained by this group as dataset for given value type. Checks if the object is a dataset.
T | Dataset value type. |
name | Dataset name. |
proto | Empty prototype (template argument resolution). |
Definition at line 63 of file h5_group.cc.h.
Get object contained by this group as group. Checks if the object is a group.
name | Group name. |
Definition at line 102 of file h5_group.cc.
|
protected |
Get index to requested group element.
name | Element name. |
Definition at line 242 of file h5_group.cc.
|
protected |
Get index to requested group element (const).
name | Element name. |
Definition at line 233 of file h5_group.cc.
Get object contained by this group as table. Checks if the object is a table.
name | Table name. |
Definition at line 110 of file h5_group.cc.
Sptr< STable< Ts... > > CNORXZ::hdf5::Group::getTable | ( | const String & | name, |
Tuple< Ts... > | proto ) |
Get object contained by this group as table for given value type. Checks if the object is a table.
Ts | Table entry types. |
name | Table name. |
proto | Empty prototype (template argument resolution). |
Definition at line 43 of file h5_group.cc.h.
Iterate over all group elements.
f | function object to be executed on each group element. |
Definition at line 130 of file h5_group.cc.h.
Iterate over all group elements (const).
f | function object to be executed on each group element. |
Definition at line 112 of file h5_group.cc.h.
Iterate recursively over all group elements.
f | function object to be executed on each group element. |
Definition at line 139 of file h5_group.cc.h.
Iterate recursively over all group elements (const).
f | function object to be executed on each group element. |
Definition at line 121 of file h5_group.cc.h.
|
protected |
Setup group content.
Definition at line 219 of file h5_group.cc.
|
overridevirtual |
Open object.
Implements CNORXZ::hdf5::ContentBase.
Reimplemented in CNORXZ::hdf5::File.
Definition at line 42 of file h5_group.cc.
|
overridevirtual |
Get object path.
Implements CNORXZ::hdf5::ContentBase.
Reimplemented in CNORXZ::hdf5::File.
Definition at line 66 of file h5_group.cc.
Recursion helper functon.
c | Group element. |
f | Function to be executed. |
Definition at line 155 of file h5_group.h.
|
overridevirtual |
Check if in read-only mode
Implements CNORXZ::hdf5::ContentBase.
Reimplemented in CNORXZ::hdf5::File.
Definition at line 34 of file h5_group.cc.
|
overridevirtual |
Get the content type.
Implements CNORXZ::hdf5::ContentBase.
Reimplemented in CNORXZ::hdf5::File.
Definition at line 29 of file h5_group.cc.
|
protected |
Group elements.
Definition at line 148 of file h5_group.h.