|
FiberBundleHDF5
FiberHDF5 Documentation, Revision 2026
High-Performance Fiber Bundle Data Model for Scientific Visualization
|
#include "F5types.h"#include "F5defs.h"#include "F5private.h"#include "F5X.h"#include "F5A.h"#include <stdlib.h>#include <assert.h>#include <string.h>Go to the source code of this file.
Macros | |
| #define | new(type, size) |
| #define | delete(ptr) |
| #define | InsertEnum(type_id, enum_member) |
| #define | IFITEM(x, type) |
Functions | |
| hid_t | F5T_rgb_g () |
| hid_t | F5T_rgba_g () |
| hid_t | F5T_bgr_g () |
| hid_t | F5T_rgb16_g () |
| hid_t | F5T_rgba16_g () |
| hid_t | F5T_rgb_real_g () |
| hid_t | F5T_rgba_real_g () |
| hid_t | F5T_vec3_double_g () |
| hid_t | F5T_covec3_double_g () |
| hid_t | F5T_cartesianpoint3_double_g () |
| hid_t | F5Ttransient_F5field_Array_enum () |
| hid_t | F5Tsave_F5field_enum (hid_t loc_id) |
| const char * | F5Tget_field_description (ArrayType what) |
| herr_t | F5Tset_field_enum (hid_t loc_id, hid_t enum_type_id, ArrayType what) |
| ArrayType | F5Tget_field_Array_enum (hid_t loc_id, int *major_version, int *minor_version, int *release_version) |
| hid_t | F5Ttransient_ProcArray_enum () |
| hid_t | F5Tsave_ProcArray_enum (hid_t loc_id) |
| herr_t | F5Tset_field_ProcArray_enum (hid_t loc_id, ProceduralArrayType what, hid_t ProcTypeIdLocation) |
| ProceduralArrayType | F5Tget_field_ProcArray_enum (hid_t loc_id, hid_t enum_type, int *major_version, int *minor_version, int *release_version) |
| F5Ttensor_t * | newF5Ttensor (const char *name, int rank, int dimension, int components) |
| void | F5Tcreate_symmetric_rank2_covariant_tensor (F5Ttensor_t *This) |
| F5_API F5Ttensor_t * | F5Ttensor_commit (hid_t loc_id, F5Ttensor_t *) |
| F5_API int | deleteF5Ttensor (F5Ttensor_t *This) |
| int | F5Tis_convertible (hid_t src_id, hid_t dst_id) |
| F5_API void | F5Tprint (hid_t type) |
| #define delete | ( | ptr | ) |
| #define IFITEM | ( | x, | |
| type ) |
Definition at line 690 of file F5types.c.
Referenced by F5Tprint().
| #define InsertEnum | ( | type_id, | |
| enum_member ) |
Referenced by F5Ttransient_F5field_Array_enum(), and F5Ttransient_ProcArray_enum().
| #define new | ( | type, | |
| size ) |
| F5_API int deleteF5Ttensor | ( | F5Ttensor_t * | This | ) |
Remove a tensor description.
Definition at line 622 of file F5types.c.
References F5Ttensor_t::covariance, F5_API, H5Tclose(), F5Ttensor_t::indexing, F5Ttensor_t::metric, F5Ttensor_t::name, F5Ttensor_t::parity, F5Ttensor_t::reverse_indexing, F5Ttensor_t::transformation_rule, and F5Ttensor_t::type_id.
| hid_t F5T_bgr_g | ( | ) |
| hid_t F5T_cartesianpoint3_double_g | ( | ) |
Definition at line 176 of file F5types.c.
| hid_t F5T_covec3_double_g | ( | ) |
Definition at line 163 of file F5types.c.
| hid_t F5T_rgb16_g | ( | ) |
| hid_t F5T_rgb_g | ( | ) |
| hid_t F5T_rgb_real_g | ( | ) |
| hid_t F5T_rgba16_g | ( | ) |
Definition at line 78 of file F5types.c.
| hid_t F5T_rgba_g | ( | ) |
Definition at line 36 of file F5types.c.
| hid_t F5T_rgba_real_g | ( | ) |
Definition at line 105 of file F5types.c.
| hid_t F5T_vec3_double_g | ( | ) |
Definition at line 150 of file F5types.c.
| void F5Tcreate_symmetric_rank2_covariant_tensor | ( | F5Ttensor_t * | This | ) |
Definition at line 578 of file F5types.c.
References F5Ttensor_t::covariance, F5Ttensor_t::dimension, F5Ttensor_t::indexing, F5Ttensor_t::parity, and F5Ttensor_t::rank.
| ArrayType F5Tget_field_Array_enum | ( | hid_t | loc_id, |
| int * | major_version, | ||
| int * | minor_version, | ||
| int * | release_version ) |
Get the field type for a field, which is supposed to be an HDF5 group or dataset.
We try to open an attribute named FIBER_ARRAY_TYPE_ENUM, its type is supposed to be a named data type bound to the file. The attributes of this type will be the version number information for the given loc_id . The value of this attribute will be an enum compatible with the ArrayType enum from which the information is retrieved. There are some fallback mechanisms in case there are troubles, such as no such attribute existing.
Definition at line 305 of file F5types.c.
References Contiguous, F5Aget_version(), F5Atry_to_open(), F5printf, F5Ttransient_F5field_Array_enum(), F_H5Aread(), FIBER_ARRAY_TYPE_ENUM, FIBER_UNIFORMARRAY_BASE_ATTRIBUTE, H5Tclose(), UniformSampling, and UnknownArrayType.
Referenced by F5Fget_field_enum().
| const char * F5Tget_field_description | ( | ArrayType | what | ) |
Return a human-readable description of the array type, for convenience on console or log file outputs.
Definition at line 249 of file F5types.c.
References Constant, Contiguous, DirectProduct, FragmentedContiguous, FragmentedSeparatedCompound, FragmentedUniformSampling, IndexPermutation, SeparatedCompound, UniformSampling, and UnknownArrayType.
| ProceduralArrayType F5Tget_field_ProcArray_enum | ( | hid_t | loc_id, |
| hid_t | enum_type, | ||
| int * | major_version, | ||
| int * | minor_version, | ||
| int * | release_version ) |
Definition at line 490 of file F5types.c.
References F5Aget_version(), F5Aopen_name(), F5printf, F5Ttransient_ProcArray_enum(), F_H5Aread(), FIBER_ARRAY_TYPE_ENUM, and H5Tclose().
| int F5Tis_convertible | ( | hid_t | first_type, |
| hid_t | second_type ) |
Check if the two types are equivalent. This requires that each type of a compound type has the the same name and the same class. Also, all attributes must be equal.
Definition at line 637 of file F5types.c.
| F5_API void F5Tprint | ( | hid_t | type | ) |
Prints type info
Definition at line 695 of file F5types.c.
| hid_t F5Tsave_F5field_enum | ( | hid_t | loc_id | ) |
Create a named field type for F5 array descriptions by saving the transient enum type to a file.
Definition at line 222 of file F5types.c.
References F5Asave_string(), F5Asave_version(), F5printf, F5Ttransient_F5field_Array_enum(), FIBER_ARRAY_TYPE_ENUM, FIBER_MAJOR_VERSION, FIBER_MINOR_VERSION, FIBER_RELEASE_VERSION, FIBER_VERSION_URL, and FIBER_VERSION_URL_LOCATION.
Referenced by F5LTmake_enum_type().
| hid_t F5Tsave_ProcArray_enum | ( | hid_t | loc_id | ) |
Definition at line 422 of file F5types.c.
References F5Asave_string(), F5Asave_version(), F5printf, F5Ttransient_ProcArray_enum(), FIBER_ARRAY_TYPE_ENUM, FIBER_MAJOR_VERSION, FIBER_MINOR_VERSION, FIBER_RELEASE_VERSION, FIBER_VERSION_URL, and FIBER_VERSION_URL_LOCATION.
Referenced by F5Tset_field_ProcArray_enum().
| herr_t F5Tset_field_enum | ( | hid_t | loc_id, |
| hid_t | enum_type_id, | ||
| ArrayType | what ) |
Set a field type in a file.
Definition at line 268 of file F5types.c.
References F5check, F5printf, and FIBER_ARRAY_TYPE_ENUM.
Referenced by F5Fcreate(), F5FSwrite_fraction(), F5Fwrite_1D(), F5Fwrite_flexible(), F5Fwrite_fraction(), F5Fwrite_fraction_external(), F5Fwrite_fractionS(), F5Fwrite_linear(), F5Fwrite_linear_fraction(), F5FwriteIMAGE(), F5Fwrites(), F5FwriteX(), F5Lwrite(), F5LwriteS(), and F5Lwrites().
| herr_t F5Tset_field_ProcArray_enum | ( | hid_t | loc_id, |
| ProceduralArrayType | what, | ||
| hid_t | ProcIDLocation ) |
Set the array type of a procedural array.
| ProcIDLocation | Group ID where the enumeration type is stored in the file. |
Definition at line 455 of file F5types.c.
References F5check, F5printf, F5Tsave_ProcArray_enum(), FIBER_ARRAY_TYPE_ENUM, and H5Tclose().
Referenced by F5LwriteX().
| F5_API F5Ttensor_t * F5Ttensor_commit | ( | hid_t | loc_id, |
| F5Ttensor_t * | ) |
Save tensor type to file and return a copy. All internal arrays are copied, no reference counting.
References F5_API.
| hid_t F5Ttransient_F5field_Array_enum | ( | ) |
Get a field type for F5 array descriptions.
Definition at line 189 of file F5types.c.
References Constant, Contiguous, DirectProduct, FragmentedContiguous, FragmentedSeparatedCompound, FragmentedUniformSampling, IndexPermutation, InsertEnum, SeparatedCompound, UniformSampling, and UnknownArrayType.
Referenced by F5Fwrite_fraction_external(), F5Tget_field_Array_enum(), and F5Tsave_F5field_enum().
| hid_t F5Ttransient_ProcArray_enum | ( | ) |
Definition at line 402 of file F5types.c.
References ExplicitProcArray, InsertEnum, PolynomialProcArray, and UnknownProcArray.
Referenced by F5Tget_field_ProcArray_enum(), and F5Tsave_ProcArray_enum().
| F5Ttensor_t * newF5Ttensor | ( | const char * | name, |
| int | rank, | ||
| int | dimension, | ||
| int | components ) |
Create a new tensor type description. All arrays are allocated, but set to zero.
Definition at line 552 of file F5types.c.
References F5Ttensor_t::components, F5Ttensor_t::covariance, F5Ttensor_t::dimension, F5Ttensor_t::indexing, F5Ttensor_t::name, name, F5Ttensor_t::parity, F5Ttensor_t::rank, F5Ttensor_t::reverse_indexing, and F5Ttensor_t::type_id.