GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "oct-hdf5.h"
Go to the source code of this file.
Classes | |
struct | hdf5_callback_data |
class | hdf5_fstreambase |
class | hdf5_ifstream |
class | hdf5_ofstream |
Macros | |
#define | H5T_NATIVE_IDX H5T_NATIVE_INT |
Functions | |
OCTINTERP_API bool | add_hdf5_data (hid_t loc_id, const octave_value &tc, const std::string &name, const std::string &doc, bool mark_as_global, bool save_as_floats) |
OCTINTERP_API herr_t | hdf5_add_attr (hid_t loc_id, const char *attr_name) |
OCTINTERP_API herr_t | hdf5_add_scalar_attr (hid_t loc_id, hid_t type_id, const char *attr_name, void *buf) |
OCTINTERP_API bool | hdf5_check_attr (hid_t loc_id, const char *attr_name) |
OCTINTERP_API bool | hdf5_get_scalar_attr (hid_t loc_id, hid_t type_id, const char *attr_name, void *buf) |
OCTINTERP_API hid_t | hdf5_make_complex_type (hid_t num_type) |
OCTINTERP_API herr_t | hdf5_read_next_data (hid_t group_id, const char *name, void *dv) |
OCTINTERP_API bool | hdf5_types_compatible (hid_t t1, hid_t t2) |
OCTINTERP_API int | load_hdf5_empty (hid_t loc_id, const char *name, dim_vector &d) |
OCTINTERP_API std::string | read_hdf5_data (std::istream &is, const std::string &filename, bool &global, octave_value &tc, std::string &doc, const string_vector &argv, int argv_idx, int argc) |
OCTINTERP_API bool | save_hdf5_data (std::ostream &os, const octave_value &tc, const std::string &name, const std::string &doc, bool mark_as_global, bool save_as_floats) |
OCTINTERP_API int | save_hdf5_empty (hid_t loc_id, const char *name, const dim_vector d) |
#define H5T_NATIVE_IDX H5T_NATIVE_INT |
Definition at line 209 of file ls-hdf5.h.
Referenced by octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), octave_sparse_matrix::load_hdf5(), octave_fcn_handle::load_hdf5(), octave_cell::load_hdf5(), octave_range::load_hdf5(), load_hdf5_empty(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), octave_fcn_handle::save_hdf5(), octave_cell::save_hdf5(), octave_range::save_hdf5(), and save_hdf5_empty().
OCTINTERP_API bool add_hdf5_data | ( | hid_t | loc_id, |
const octave_value & | tc, | ||
const std::string & | name, | ||
const std::string & | doc, | ||
bool | mark_as_global, | ||
bool | save_as_floats | ||
) |
Definition at line 863 of file ls-hdf5.cc.
References error(), octave_value::full_value(), hdf5_add_attr(), octave_value::is_diag_matrix(), octave_value::is_perm_matrix(), octave_value::save_hdf5(), octave_lazy_index::static_type_id(), octave_value::type_id(), and octave_value::type_name().
Referenced by octave_struct::save_hdf5(), octave_fcn_handle::save_hdf5(), octave_cell::save_hdf5(), octave_class::save_hdf5(), octave_scalar_struct::save_hdf5(), and save_hdf5_data().
OCTINTERP_API herr_t hdf5_add_attr | ( | hid_t | loc_id, |
const char * | attr_name | ||
) |
Definition at line 663 of file ls-hdf5.cc.
Referenced by add_hdf5_data(), and save_hdf5_empty().
OCTINTERP_API herr_t hdf5_add_scalar_attr | ( | hid_t | loc_id, |
hid_t | type_id, | ||
const char * | attr_name, | ||
void * | buf | ||
) |
Definition at line 698 of file ls-hdf5.cc.
Referenced by octave_range::save_hdf5().
OCTINTERP_API bool hdf5_check_attr | ( | hid_t | loc_id, |
const char * | attr_name | ||
) |
Definition at line 131 of file ls-hdf5.cc.
Referenced by hdf5_read_next_data(), and load_hdf5_empty().
OCTINTERP_API bool hdf5_get_scalar_attr | ( | hid_t | loc_id, |
hid_t | type_id, | ||
const char * | attr_name, | ||
void * | buf | ||
) |
Definition at line 172 of file ls-hdf5.cc.
Referenced by octave_range::load_hdf5().
OCTINTERP_API hid_t hdf5_make_complex_type | ( | hid_t | num_type | ) |
Definition at line 227 of file ls-hdf5.cc.
Referenced by hdf5_read_next_data(), octave_sparse_complex_matrix::load_hdf5(), octave_float_complex_matrix::load_hdf5(), octave_complex_matrix::load_hdf5(), octave_float_complex::load_hdf5(), octave_complex::load_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_float_complex_matrix::save_hdf5(), octave_complex_matrix::save_hdf5(), octave_float_complex::save_hdf5(), and octave_complex::save_hdf5().
OCTINTERP_API herr_t hdf5_read_next_data | ( | hid_t | group_id, |
const char * | name, | ||
void * | dv | ||
) |
Definition at line 248 of file ls-hdf5.cc.
References d, hdf5_callback_data::doc, error(), hdf5_callback_data::global, hdf5_check_attr(), hdf5_make_complex_type(), hdf5_types_compatible(), octave_value::load_hdf5(), octave_value_typeinfo::lookup_type(), make_valid_identifier(), hdf5_callback_data::name, OCTAVE_LOCAL_BUFFER, hdf5_callback_data::tc, valid_identifier(), and warning().
Referenced by octave_struct::load_hdf5(), octave_fcn_handle::load_hdf5(), octave_cell::load_hdf5(), octave_class::load_hdf5(), octave_scalar_struct::load_hdf5(), and read_hdf5_data().
OCTINTERP_API bool hdf5_types_compatible | ( | hid_t | t1, |
hid_t | t2 | ||
) |
Definition at line 106 of file ls-hdf5.cc.
Referenced by hdf5_read_next_data(), octave_sparse_complex_matrix::load_hdf5(), octave_float_complex_matrix::load_hdf5(), octave_complex_matrix::load_hdf5(), octave_float_complex::load_hdf5(), octave_complex::load_hdf5(), and octave_range::load_hdf5().
OCTINTERP_API int load_hdf5_empty | ( | hid_t | loc_id, |
const char * | name, | ||
dim_vector & | d | ||
) |
Definition at line 785 of file ls-hdf5.cc.
References d, H5T_NATIVE_IDX, hdf5_check_attr(), OCTAVE_LOCAL_BUFFER, and dim_vector::resize().
Referenced by octave_base_int_matrix< T >::load_hdf5(), octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), octave_sparse_matrix::load_hdf5(), octave_float_complex_matrix::load_hdf5(), octave_char_matrix_str::load_hdf5(), octave_complex_matrix::load_hdf5(), octave_cell::load_hdf5(), octave_float_matrix::load_hdf5(), octave_bool_matrix::load_hdf5(), and octave_matrix::load_hdf5().
OCTINTERP_API std::string read_hdf5_data | ( | std::istream & | is, |
const std::string & | filename, | ||
bool & | global, | ||
octave_value & | tc, | ||
std::string & | doc, | ||
const string_vector & | argv, | ||
int | argv_idx, | ||
int | argc | ||
) |
Definition at line 585 of file ls-hdf5.cc.
References hdf5_fstreambase::current_item, d, hdf5_callback_data::doc, hdf5_fstreambase::file_id, hdf5_callback_data::global, hdf5_read_next_data(), glob_match::match(), hdf5_callback_data::name, and hdf5_callback_data::tc.
Referenced by do_load().
OCTINTERP_API bool save_hdf5_data | ( | std::ostream & | os, |
const octave_value & | tc, | ||
const std::string & | name, | ||
const std::string & | doc, | ||
bool | mark_as_global, | ||
bool | save_as_floats | ||
) |
Definition at line 947 of file ls-hdf5.cc.
References add_hdf5_data(), and hdf5_fstreambase::file_id.
Referenced by do_save().
OCTINTERP_API int save_hdf5_empty | ( | hid_t | loc_id, |
const char * | name, | ||
const dim_vector | d | ||
) |
Definition at line 736 of file ls-hdf5.cc.
References d, H5T_NATIVE_IDX, hdf5_add_attr(), dim_vector::length(), and OCTAVE_LOCAL_BUFFER.
Referenced by octave_base_int_matrix< T >::save_hdf5(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), octave_float_complex_matrix::save_hdf5(), octave_char_matrix_str::save_hdf5(), octave_complex_matrix::save_hdf5(), octave_cell::save_hdf5(), octave_float_matrix::save_hdf5(), octave_bool_matrix::save_hdf5(), and octave_matrix::save_hdf5().