#include "ov-struct.h"
Public Member Functions | |
octave_scalar_struct () | |
octave_scalar_struct (const octave_scalar_map &m) | |
octave_scalar_struct (const octave_scalar_struct &s) | |
octave_scalar_struct (const std::map< std::string, octave_value > &m) | |
~octave_scalar_struct ()=default | |
mxArray * | as_mxArray (bool interleaved) const |
void | break_closure_cycles (const std::shared_ptr< octave::stack_frame > &frame) |
builtin_type_t | builtin_type () const |
std::size_t | byte_size () const |
std::string | class_name () const |
octave_base_value * | clone () const |
dim_vector | dims () const |
octave_value | do_index_op (const octave_value_list &idx, bool resize_ok=false) |
octave_value | dotref (const octave_value_list &idx, bool auto_add=false) |
std::string | edit_display (const float_display_format &fmt, octave_idx_type i, octave_idx_type j) const |
octave_base_value * | empty_clone () const |
bool | fast_elem_insert_self (void *where, builtin_type_t btyp) const |
bool | is_constant () const |
bool | is_defined () const |
bool | isfield (const std::string &field_name) const |
bool | isstruct () const |
bool | load_ascii (std::istream &is) |
bool | load_binary (std::istream &is, bool swap, octave::mach_info::float_format fmt) |
bool | load_hdf5 (octave_hdf5_id loc_id, const char *name) |
string_vector | map_keys () const |
octave_map | map_value () const |
octave_idx_type | nfields () const |
octave_idx_type | numel () const |
octave_value | permute (const Array< int > &vec, bool inv=false) const |
void | print (std::ostream &os, bool pr_as_read_syntax=false) |
bool | print_name_tag (std::ostream &os, const std::string &name) const |
void | print_raw (std::ostream &os, bool pr_as_read_syntax=false) const |
octave_value | reshape (const dim_vector &new_dims) const |
octave_value | resize (const dim_vector &dv, bool fill=false) const |
bool | save_ascii (std::ostream &os) |
bool | save_binary (std::ostream &os, bool save_as_floats) |
bool | save_hdf5 (octave_hdf5_id loc_id, const char *name, bool save_as_floats) |
octave_scalar_map | scalar_map_value () const |
octave_value | squeeze () const |
octave_value | subsasgn (const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs) |
octave_value | subsref (const std::string &type, const std::list< octave_value_list > &idx) |
octave_value | subsref (const std::string &type, const std::list< octave_value_list > &idx, bool auto_add) |
octave_value_list | subsref (const std::string &type, const std::list< octave_value_list > &idx, int) |
int | type_id () const |
std::string | type_name () const |
Public Member Functions inherited from octave_base_value | |
octave_base_value () | |
octave_base_value (const octave_base_value &) | |
virtual | ~octave_base_value ()=default |
virtual octave_value | all (int=0) const |
virtual octave_value | any (int=0) const |
virtual NDArray | array_value (bool=false) const |
virtual octave_value | as_double () const |
virtual octave_value | as_double_or_copy () |
virtual octave_value | as_int16 () const |
virtual octave_value | as_int32 () const |
virtual octave_value | as_int64 () const |
virtual octave_value | as_int8 () const |
virtual octave_value | as_single () const |
virtual octave_value | as_uint16 () const |
virtual octave_value | as_uint32 () const |
virtual octave_value | as_uint64 () const |
virtual octave_value | as_uint8 () const |
virtual void | assign (const std::string &, const octave_value &) |
virtual boolNDArray | bool_array_value (bool=false) const |
virtual boolMatrix | bool_matrix_value (bool=false) const |
virtual bool | bool_value (bool=false) const |
virtual void | call_object_destructor () |
virtual Cell | cell_value () const |
virtual Array< std::string > | cellstr_value () const |
virtual charNDArray | char_array_value (bool=false) const |
virtual charMatrix | char_matrix_value (bool force=false) const |
virtual octave_classdef * | classdef_object_value (bool silent=false) |
octave_idx_type | columns () const |
virtual ComplexNDArray | complex_array_value (bool=false) const |
virtual ComplexDiagMatrix | complex_diag_matrix_value (bool=false) const |
virtual ComplexMatrix | complex_matrix_value (bool=false) const |
virtual Complex | complex_value (bool=false) const |
virtual void | convert_to_row_or_column_vector () |
virtual octave_value | convert_to_str (bool pad=false, bool force=false, char type='\'') const |
virtual octave_value | convert_to_str_internal (bool pad, bool force, char type) const |
virtual octave_value | diag (octave_idx_type k=0) const |
virtual octave_value | diag (octave_idx_type m, octave_idx_type n) const |
virtual DiagMatrix | diag_matrix_value (bool=false) const |
virtual double | double_value (bool=false) const |
virtual octave_value | dump () const |
virtual void | erase_subfunctions () |
virtual octave_value | fast_elem_extract (octave_idx_type n) const |
virtual bool | fast_elem_insert (octave_idx_type n, const octave_value &x) |
virtual octave_fcn_handle * | fcn_handle_value (bool silent=false) |
virtual octave_base_value * | find_parent_class (const std::string &) |
virtual FloatNDArray | float_array_value (bool=false) const |
virtual FloatComplexNDArray | float_complex_array_value (bool=false) const |
virtual FloatComplexDiagMatrix | float_complex_diag_matrix_value (bool=false) const |
virtual FloatComplexMatrix | float_complex_matrix_value (bool=false) const |
virtual FloatComplex | float_complex_value (bool=false) const |
virtual FloatDiagMatrix | float_diag_matrix_value (bool=false) const |
virtual FloatMatrix | float_matrix_value (bool=false) const |
virtual float | float_scalar_value (bool frc_str_conv=false) const |
virtual float | float_value (bool=false) const |
virtual octave_value | full_value () const |
virtual octave_function * | function_value (bool silent=false) |
virtual octave_function * | get_cached_fcn (const octave_value_list &) |
virtual octave_function * | get_cached_fcn (void *, void *) |
virtual float_display_format | get_edit_display_format () const |
virtual bool | has_function_cache () const |
virtual octave::idx_vector | index_vector (bool require_integers=false) const |
virtual int16NDArray | int16_array_value () const |
virtual octave_int16 | int16_scalar_value () const |
virtual int32NDArray | int32_array_value () const |
virtual octave_int32 | int32_scalar_value () const |
virtual int64NDArray | int64_array_value () const |
virtual octave_int64 | int64_scalar_value () const |
virtual int64_t | int64_value (bool=false, bool=false) const |
virtual int8NDArray | int8_array_value () const |
virtual octave_int8 | int8_scalar_value () const |
virtual int | int_value (bool=false, bool=false) const |
virtual bool | is_all_va_args () const |
virtual bool | is_anonymous_function () const |
virtual bool | is_bool_matrix () const |
virtual bool | is_bool_scalar () const |
virtual bool | is_builtin_function () const |
virtual bool | is_char_matrix () const |
virtual bool | is_classdef_meta () const |
virtual bool | is_classdef_object () const |
virtual bool | is_classdef_superclass_ref () const |
virtual bool | is_complex_matrix () const |
virtual bool | is_complex_scalar () const |
virtual bool | is_cs_list () const |
virtual bool | is_diag_matrix () const |
virtual bool | is_dld_function () const |
virtual bool | is_double_type () const |
virtual bool | is_full_num_matrix () const |
virtual bool | is_function () const |
virtual bool | is_function_cache () const |
virtual bool | is_function_handle () const |
virtual bool | is_inline_function () const |
virtual bool | is_instance_of (const std::string &) const |
virtual bool | is_int16_type () const |
virtual bool | is_int32_type () const |
virtual bool | is_int64_type () const |
virtual bool | is_int8_type () const |
virtual bool | is_legacy_object () const |
virtual bool | is_magic_colon () const |
virtual bool | is_magic_int () const |
virtual bool | is_matrix_type () const |
virtual bool | is_maybe_function () const |
virtual bool | is_mex_function () const |
virtual bool | is_package () const |
virtual bool | is_perm_matrix () const |
virtual bool | is_range () const |
virtual bool | is_real_matrix () const |
virtual bool | is_real_scalar () const |
virtual bool | is_scalar_type () const |
virtual bool | is_single_type () const |
virtual sortmode | is_sorted_rows (sortmode mode=UNSORTED) const |
virtual bool | is_sq_string () const |
virtual bool | is_storable () const |
virtual bool | is_string () const |
virtual bool | is_true () const |
virtual bool | is_uint16_type () const |
virtual bool | is_uint32_type () const |
virtual bool | is_uint64_type () const |
virtual bool | is_uint8_type () const |
virtual bool | is_user_code () const |
virtual bool | is_user_function () const |
virtual bool | is_user_script () const |
bool | is_zero_by_zero () const |
virtual bool | iscell () const |
virtual bool | iscellstr () const |
virtual bool | iscomplex () const |
bool | isempty () const |
virtual bool | isfloat () const |
virtual bool | isinteger () const |
virtual bool | isjava () const |
virtual bool | islocked () const |
virtual bool | islogical () const |
virtual bool | isnull () const |
virtual bool | isnumeric () const |
virtual bool | isobject () const |
virtual bool | isreal () const |
virtual sortmode | issorted (sortmode mode=UNSORTED) const |
virtual bool | issparse () const |
virtual octave_value_list | list_value () const |
virtual void | lock () |
virtual long int | long_value (bool=false, bool=false) const |
virtual octave_base_value * | make_storable_value () |
virtual octave_value | map (unary_mapper_t) const |
virtual MatrixType | matrix_type () const |
virtual MatrixType | matrix_type (const MatrixType &typ) const |
virtual Matrix | matrix_value (bool=false) const |
virtual void | maybe_call_dtor () |
virtual void | maybe_economize () |
virtual const void * | mex_get_data () const |
virtual const octave_idx_type * | mex_get_ir () const |
virtual const octave_idx_type * | mex_get_jc () const |
virtual int | ndims () const |
virtual int | nint_value (bool=false) const |
virtual octave_idx_type | nnz () const |
virtual std::size_t | nparents () const |
virtual type_conv_info | numeric_conversion_function () const |
virtual type_conv_info | numeric_demotion_function () const |
virtual octave_idx_type | nzmax () const |
virtual std::list< std::string > | parent_class_name_list () const |
virtual string_vector | parent_class_names () const |
virtual PermMatrix | perm_matrix_value () const |
virtual bool | print_as_scalar () const |
virtual void | print_info (std::ostream &os, const std::string &prefix) const |
virtual void | print_with_name (std::ostream &output_buf, const std::string &name, bool print_padding=true) |
virtual octave::range< double > | range_value () const |
octave_idx_type | rows () const |
virtual double | scalar_value (bool frc_str_conv=false) const |
virtual void | short_disp (std::ostream &os) const |
virtual short int | short_value (bool=false, bool=false) const |
virtual octave_value | simple_subsasgn (char type, octave_value_list &idx, const octave_value &rhs) |
virtual octave_value_list | simple_subsref (char type, octave_value_list &idx, int nargout) |
virtual Matrix | size () |
virtual octave_value | sort (Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const |
virtual octave_value | sort (octave_idx_type dim=0, sortmode mode=ASCENDING) const |
virtual Array< octave_idx_type > | sort_rows_idx (sortmode mode=ASCENDING) const |
virtual SparseBoolMatrix | sparse_bool_matrix_value (bool=false) const |
virtual SparseComplexMatrix | sparse_complex_matrix_value (bool=false) const |
virtual SparseMatrix | sparse_matrix_value (bool=false) const |
virtual octave_value | storable_value () |
virtual std::string | string_value (bool force=false) const |
virtual string_vector | string_vector_value (bool pad=false) const |
virtual octave_base_value * | try_narrowing_conversion () |
virtual uint16NDArray | uint16_array_value () const |
virtual octave_uint16 | uint16_scalar_value () const |
virtual uint32NDArray | uint32_array_value () const |
virtual octave_uint32 | uint32_scalar_value () const |
virtual uint64NDArray | uint64_array_value () const |
virtual octave_uint64 | uint64_scalar_value () const |
virtual uint64_t | uint64_value (bool=false, bool=false) const |
virtual uint8NDArray | uint8_array_value () const |
virtual octave_uint8 | uint8_scalar_value () const |
virtual unsigned int | uint_value (bool=false, bool=false) const |
virtual unsigned long int | ulong_value (bool=false, bool=false) const |
virtual octave_value | undef_subsasgn (const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs) |
virtual octave_base_value * | unique_clone () |
virtual octave_base_value * | unique_parent_class (const std::string &) |
virtual void | unlock () |
virtual octave_user_code * | user_code_value (bool silent=false) |
virtual octave_user_function * | user_function_value (bool silent=false) |
virtual octave_user_script * | user_script_value (bool silent=false) |
virtual unsigned short int | ushort_value (bool=false, bool=false) const |
virtual int | write (octave::stream &os, int block_size, oct_data_conv::data_type output_type, int skip, octave::mach_info::float_format flt_fmt) const |
virtual octave_idx_type | xnumel (const octave_value_list &) |
virtual std::string | xstring_value () const |
Static Public Member Functions | |
static octave_value | numeric_conv (const octave_value &val, const std::string &type) |
static void | register_type () |
static void | register_type (octave::type_info &) |
static std::string | static_class_name () |
static int | static_type_id () |
static std::string | static_type_name () |
Static Public Member Functions inherited from octave_base_value | |
static void | register_type () |
static void | register_type (octave::type_info &) |
static std::string | static_class_name () |
static int | static_type_id () |
static std::string | static_type_name () |
Protected Attributes | |
octave_scalar_map | m_map |
Protected Attributes inherited from octave_base_value | |
octave::refcount< octave_idx_type > & | count |
octave::refcount< octave_idx_type > | m_count |
Definition at line 176 of file ov-struct.h.
|
inline |
Definition at line 181 of file ov-struct.h.
|
inline |
Definition at line 184 of file ov-struct.h.
|
inline |
Definition at line 187 of file ov-struct.h.
|
inline |
Definition at line 190 of file ov-struct.h.
|
default |
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1704 of file ov-struct.cc.
References octave_scalar_map::contents(), Array< T, Alloc >::data(), dims(), f, mxArray::get_data(), m_map, map_keys(), nfields(), numel(), and OCTAVE_LOCAL_BUFFER.
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1126 of file ov-struct.cc.
References octave_value::break_closure_cycles(), octave_scalar_map::contents(), m_map, and octave_scalar_map::nfields().
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 254 of file ov-struct.h.
References btyp_struct.
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1335 of file ov-struct.cc.
References octave_value::byte_size(), octave_scalar_map::cbegin(), octave_scalar_map::cend(), octave_scalar_map::contents(), octave_scalar_map::key(), m_map, and octave_base_value::octave_value.
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 300 of file ov-struct.h.
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 195 of file ov-struct.h.
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 229 of file ov-struct.h.
Referenced by as_mxArray(), and save_ascii().
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1328 of file ov-struct.cc.
References octave_map::index(), and m_map.
octave_value octave_scalar_struct::dotref | ( | const octave_value_list & | idx, |
bool | auto_add = false |
||
) |
Definition at line 1133 of file ov-struct.cc.
References octave_value_list::length(), and panic_if.
Referenced by subsref().
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1438 of file ov-struct.cc.
References octave_scalar_map::contents(), octave_value::dims(), m_map, r, dim_vector::str(), and octave_value::type_name().
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 197 of file ov-struct.h.
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1743 of file ov-struct.cc.
References btyp_struct, and m_map.
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 250 of file ov-struct.h.
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 248 of file ov-struct.h.
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 262 of file ov-struct.h.
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 252 of file ov-struct.h.
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1488 of file ov-struct.cc.
References error(), extract_keyword(), len, m, m_map, panic_impossible, and read_text_data().
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1557 of file ov-struct.cc.
References error(), len, m, m_map, read_binary_data(), and swap_bytes< 4 >().
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1654 of file ov-struct.cc.
References hdf5_h5g_iterate(), m, m_map, hdf5_callback_data::name, octave_H5P_DEFAULT, hdf5_callback_data::tc, and octave_base_value::warn_load().
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 260 of file ov-struct.h.
Referenced by as_mxArray().
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 256 of file ov-struct.h.
Referenced by save_ascii(), and save_binary().
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 240 of file ov-struct.h.
Referenced by as_mxArray().
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 235 of file ov-struct.h.
Referenced by as_mxArray().
|
static |
Definition at line 1227 of file ov-struct.cc.
References octave_value::isstruct().
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 223 of file ov-struct.h.
References octave_map::permute().
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1354 of file ov-struct.cc.
References print_raw().
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1405 of file ov-struct.cc.
References octave_base_value::indent().
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1360 of file ov-struct.cc.
Referenced by print().
|
static |
Definition at line 1123 of file ov-struct.cc.
|
static |
Definition at line 1123 of file ov-struct.cc.
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 242 of file ov-struct.h.
References octave_map::reshape().
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 245 of file ov-struct.h.
References octave_map::resize().
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1452 of file ov-struct.cc.
References octave_scalar_map::contents(), dims(), m, m_map, map_value(), dim_vector::ndims(), and save_text_data().
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1528 of file ov-struct.cc.
References octave_scalar_map::contents(), len, m, m_map, map_value(), and save_binary_data().
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1601 of file ov-struct.cc.
References add_hdf5_data(), octave_scalar_map::contents(), m, m_map, octave_H5P_DEFAULT, scalar_map_value(), and octave_base_value::warn_save().
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 258 of file ov-struct.h.
Referenced by save_hdf5().
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 221 of file ov-struct.h.
|
inlinestatic |
Definition at line 300 of file ov-struct.h.
|
inlinestatic |
Definition at line 300 of file ov-struct.h.
|
inlinestatic |
Definition at line 300 of file ov-struct.h.
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1241 of file ov-struct.cc.
References error(), octave_value_list::length(), and n.
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1153 of file ov-struct.cc.
References dotref(), octave_value::next_subsref(), and octave_value::subsref().
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1196 of file ov-struct.cc.
References dotref(), octave_value::next_subsref(), and octave_value::subsref().
|
virtual |
Reimplemented from octave_base_value.
Definition at line 1174 of file ov-struct.cc.
References dotref(), and octave_value::subsref().
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 300 of file ov-struct.h.
|
inlinevirtual |
Reimplemented from octave_base_value.
Definition at line 300 of file ov-struct.h.
|
protected |
Definition at line 294 of file ov-struct.h.
Referenced by as_mxArray(), break_closure_cycles(), byte_size(), do_index_op(), edit_display(), fast_elem_insert_self(), load_ascii(), load_binary(), load_hdf5(), save_ascii(), save_binary(), and save_hdf5().