|
| group ()=default |
| Initializes the handle with its null state.
|
|
group | create_group (const std::string &name) |
| Creates a new group within this group. More...
|
|
dataset | create_dataset (const std::string &name, const type &datatype, const std::vector< hsize_t > &dims, const dataset_options &options=dataset_options()) |
| Creates a new dataset within this group. More...
|
|
dataset | create_dataset (const std::string &name, const type &datatype, const std::vector< hsize_t > &dims, const std::vector< hsize_t > &max_dims, const dataset_options &options=dataset_options()) |
| Creates a new dataset within this group. More...
|
|
template<typename T > |
dataset | create_dataset (const std::string &name, const std::vector< hsize_t > &dims, const dataset_options &options=dataset_options()) |
| Creates a new dataset within this group. More...
|
|
template<typename T > |
dataset | create_dataset (const std::string &name, const std::vector< hsize_t > &dims, const std::vector< hsize_t > &max_dims, const dataset_options &options=dataset_options()) |
| Creates a new dataset within this group. More...
|
|
scalar_dataset | create_scalar_dataset (const std::string &name, const type &datatype) |
| Creates a new scalar dataset within this group. More...
|
|
template<typename T > |
scalar_dataset | create_scalar_dataset (const std::string &name) |
| Creates a new scalar dataset within this group. More...
|
|
template<typename T > |
scalar_dataset | create_scalar_dataset (const std::string &name, const T &value) |
| Creates a new scalar dataset within this group and initializes it with a given value. More...
|
|
object | operator[] (const std::string &name) const |
| Accessor function for this group. More...
|
|
void | remove (const std::string &name) const |
| Removes the specified object from the group. More...
|
|
group | require_group (const std::string &name) |
| Returns the requested group, if it already exists, otherwise a new group is created. More...
|
|
dataset | require_dataset (const std::string &name, const type &datatype, const std::vector< hsize_t > &dims, const dataset_options &options=dataset_options()) |
| Returns the requested dataset, if it already exists, otherwise a new dataset is created. More...
|
|
template<typename T > |
dataset | require_dataset (const std::string &name, const std::vector< hsize_t > &dims, const dataset_options &options=dataset_options()) |
| Returns the requested dataset, if it already exists, otherwise a new dataset is created. More...
|
|
scalar_dataset | require_scalar_dataset (const std::string &name, const type &datatype) |
| Returns the requested scalar dataset, if it already exists, otherwise a new scalar dataset is created. More...
|
|
template<typename T > |
scalar_dataset | require_scalar_dataset (const std::string &name) |
| Returns the requested scalar dataset, if it already exists, otherwise the scalar dataset is created. More...
|
|
template<typename T > |
scalar_dataset | require_scalar_dataset (const std::string &name, const T &value) |
| Returns the requested scalar dataset, if it already exists, otherwise a new scalar dataset is created. More...
|
|
void | iterate_links (const std::function< void(const link &)> &op) const |
| Iterates over every link within this group. More...
|
|
void | visit_links (const std::function< void(const link &)> &visitor) const |
| Visits every link, which is reachable from this group. More...
|
|
void | visit_objects (const std::function< void(const object &)> &visitor) const |
| Visits every object, which is reachable from this group (including this group) More...
|
|
object_reference | ref () const |
| An object reference to this group.
|
|
native_handle_type | native_handle () const |
| The underlying HDF5 low-level handle.
|
|
| operator bool () const |
| Tests the validity of the handle.
|
|
attribute_repository< group > | attributes () const |
| The attributes, which are attached to the group.
|
|
A handle to a group object.
Returns the requested dataset, if it already exists, otherwise a new dataset is created.
The new dataset is created using the given parameters.
This method allows the user to make a contract with the library, that an object with certain properties exists after the method has terminated.
If the dataset already exists and its shape or datatype differ from their requested value and an exception is thrown, since the contract can't be fulfilled.
- Parameters
-
name | name of the requested dataset |
datatype | value type of the new dataset |
dims | shape of the new dataset |
options | additional dataset creation options
keyword | semantic |
compression_level | level of the deflate compression (0 - 9) |
shuffle_filter | enable/disable the shuffle filter |
auto_chunking | enable/disable auto-chunking |
chunk_shape | shape of a dataset chunk |
|
- Exceptions
-
broken_contract_exception | is thrown, if the contract can't be fulfilled. |
- Returns
- the requested dataset, if it is already existing, or a new dataset otherwise
Returns the requested dataset, if it already exists, otherwise a new dataset is created.
The new dataset is created using the given parameters.
This method allows the user to make a contract with the library, that an object with certain properties exists after the method has terminated.
If the dataset already exists and its shape or datatype differ from their requested value and an exception is thrown, since the contract can't be fulfilled.
- Parameters
-
name | name of the requested dataset |
dims | shape of the new dataset |
options | additional dataset creation options
keyword | semantic |
compression_level | level of the deflate compression (0 - 9) |
shuffle_filter | enable/disable the shuffle filter |
auto_chunking | enable/disable auto-chunking |
chunk_shape | shape of a dataset chunk |
|
- Template Parameters
-
T | C++ type, which should be used to determine the dataset's value type |
- Exceptions
-
broken_contract_exception | is thrown, if the contract can't be fulfilled. |
- Returns
- the requested dataset, if it is already existing, or a new dataset otherwise
scalar_dataset echelon::group::require_scalar_dataset |
( |
const std::string & |
name, |
|
|
const type & |
datatype |
|
) |
| |
Returns the requested scalar dataset, if it already exists, otherwise a new scalar dataset is created.
The new dataset is created using the given parameters.
This method allows the user to make a contract with the library, that an object with certain properties exists after the method has terminated.
If the scalar dataset already exists and its datatype differs from its requested value and an exception is thrown, since the contract can't be fulfilled.
- Parameters
-
name | name of the requested dataset |
datatype | value type of the new dataset |
- Exceptions
-
broken_contract_exception | is thrown, if the contract can't be fulfilled. |
- Returns
- the requested scalar dataset, if it is already existing, or a new scalar dataset otherwise
template<typename T >
scalar_dataset echelon::group::require_scalar_dataset |
( |
const std::string & |
name | ) |
|
|
inline |
Returns the requested scalar dataset, if it already exists, otherwise the scalar dataset is created.
The new dataset is created using the given parameters.
This method allows the user to make a contract with the library, that an object with certain properties exists after the method has terminated.
If the scalar dataset already exists and its datatype differs from its requested value and an exception is thrown, since the contract can't be fulfilled.
- Parameters
-
name | name of the requested dataset |
- Template Parameters
-
T | C++ type, which should be used to determine the dataset's value type |
- Exceptions
-
broken_contract_exception | is thrown, if the contract can't be fulfilled. |
- Returns
- the requested scalar dataset, if it is already existing, or a new scalar dataset otherwise
template<typename T >
scalar_dataset echelon::group::require_scalar_dataset |
( |
const std::string & |
name, |
|
|
const T & |
value |
|
) |
| |
|
inline |
Returns the requested scalar dataset, if it already exists, otherwise a new scalar dataset is created.
The new dataset is created using the given parameters and is initialized with the given value.
This method allows the user to make a contract with the library, that an object with certain properties exists after the method has terminated.
If the scalar dataset already exists and its datatype differs from its requested value and an exception is thrown, since the contract can't be fulfilled.
- Parameters
-
name | name of the requested dataset |
value | value, which should be used to intialize the dataset |
- Template Parameters
-
T | C++ type, which should be used to determine the dataset's value type |
- Exceptions
-
broken_contract_exception | is thrown, if the contract can't be fulfilled. |
- Returns
- the requested scalar dataset, if it is already existing, or a new scalar dataset otherwise