#include "ov-typeinfo.h"
Public Types | |
typedef octave_value(* | assign_op_fcn) (octave_base_value &, const octave_value_list &, const octave_base_value &) |
typedef octave_value(* | assignany_op_fcn) (octave_base_value &, const octave_value_list &, const octave_value &) |
typedef octave_value(* | binary_class_op_fcn) (const octave_value &, const octave_value &) |
typedef octave_value(* | binary_op_fcn) (const octave_base_value &, const octave_base_value &) |
typedef octave_value(* | cat_op_fcn) (const octave_base_value &, const octave_base_value &, const Array< octave_idx_type > &ra_idx) |
typedef void(* | non_const_unary_op_fcn) (octave_base_value &) |
typedef octave_value(* | unary_class_op_fcn) (const octave_value &) |
typedef octave_value(* | unary_op_fcn) (const octave_base_value &) |
Private Attributes | |
Array< void * > | m_assign_ops |
Array< void * > | m_assignany_ops |
Array< void * > | m_binary_class_ops |
Array< void * > | m_binary_ops |
Array< void * > | m_cat_ops |
Array< void * > | m_compound_binary_class_ops |
Array< void * > | m_compound_binary_ops |
Array< void * > | m_non_const_unary_ops |
int | m_num_types |
Array< int > | m_pref_assign_conv |
Array< std::string > | m_types |
Array< void * > | m_unary_class_ops |
Array< void * > | m_unary_ops |
Array< octave_value * > | m_vals |
Array< void * > | m_widening_ops |
Definition at line 42 of file ov-typeinfo.h.
typedef octave_value(* type_info::assign_op_fcn) (octave_base_value &, const octave_value_list &, const octave_base_value &) |
Definition at line 64 of file ov-typeinfo.h.
typedef octave_value(* type_info::assignany_op_fcn) (octave_base_value &, const octave_value_list &, const octave_value &) |
Definition at line 67 of file ov-typeinfo.h.
typedef octave_value(* type_info::binary_class_op_fcn) (const octave_value &, const octave_value &) |
Definition at line 54 of file ov-typeinfo.h.
typedef octave_value(* type_info::binary_op_fcn) (const octave_base_value &, const octave_base_value &) |
Definition at line 57 of file ov-typeinfo.h.
typedef octave_value(* type_info::cat_op_fcn) (const octave_base_value &, const octave_base_value &, const Array< octave_idx_type > &ra_idx) |
Definition at line 60 of file ov-typeinfo.h.
typedef void(* type_info::non_const_unary_op_fcn) (octave_base_value &) |
Definition at line 52 of file ov-typeinfo.h.
typedef octave_value(* type_info::unary_class_op_fcn) (const octave_value &) |
Definition at line 48 of file ov-typeinfo.h.
typedef octave_value(* type_info::unary_op_fcn) (const octave_base_value &) |
Definition at line 50 of file ov-typeinfo.h.
|
explicit |
Definition at line 68 of file ov-typeinfo.cc.
References install_ops(), and install_types().
|
delete |
|
default |
octave_scalar_map type_info::assign_ops_map | ( | void | ) | const |
Definition at line 698 of file ov-typeinfo.cc.
References octave_value::assign_op_as_string(), Array< T, Alloc >::columns(), len, m_assign_ops, m_num_types, min(), octave_value::num_assign_ops, octave_scalar_map::setfield(), and Array< T, Alloc >::xelem().
Referenced by installed_type_info().
octave_scalar_map type_info::assignany_ops_map | ( | void | ) | const |
Definition at line 724 of file ov-typeinfo.cc.
References octave_value::assign_op_as_string(), Array< T, Alloc >::columns(), len, m_assignany_ops, m_num_types, min(), octave_value::num_assign_ops, octave_scalar_map::setfield(), and Array< T, Alloc >::xelem().
Referenced by installed_type_info().
octave_scalar_map type_info::binary_ops_map | ( | void | ) | const |
Definition at line 645 of file ov-typeinfo.cc.
References octave_value::binary_op_as_string(), Array< T, Alloc >::columns(), len, m_binary_ops, m_num_types, min(), octave_value::num_binary_ops, octave_scalar_map::setfield(), and Array< T, Alloc >::xelem().
Referenced by installed_type_info().
octave_scalar_map type_info::compound_binary_ops_map | ( | void | ) | const |
Definition at line 671 of file ov-typeinfo.cc.
References octave_value::binary_op_fcn_name(), Array< T, Alloc >::columns(), len, m_compound_binary_ops, m_num_types, min(), octave_value::num_compound_binary_ops, octave_scalar_map::setfield(), and Array< T, Alloc >::xelem().
Referenced by installed_type_info().
|
inline |
Definition at line 128 of file ov-typeinfo.h.
References f.
|
inline |
Definition at line 134 of file ov-typeinfo.h.
References f.
|
inline |
Definition at line 99 of file ov-typeinfo.h.
References f.
|
inline |
Definition at line 111 of file ov-typeinfo.h.
References f.
|
inline |
Definition at line 105 of file ov-typeinfo.h.
References f.
|
inline |
Definition at line 117 of file ov-typeinfo.h.
References f.
|
inline |
Definition at line 123 of file ov-typeinfo.h.
References f.
|
inline |
Definition at line 93 of file ov-typeinfo.h.
References f.
|
inline |
Definition at line 140 of file ov-typeinfo.h.
|
inline |
Definition at line 82 of file ov-typeinfo.h.
References f.
|
inline |
Definition at line 88 of file ov-typeinfo.h.
References f.
|
inline |
Definition at line 145 of file ov-typeinfo.h.
References f.
octave_scalar_map type_info::installed_type_info | ( | void | ) | const |
Definition at line 749 of file ov-typeinfo.cc.
References as_bool_nd_array(), as_nd_array(), assign_ops_map(), assignany_ops_map(), binary_ops_map(), compound_binary_ops_map(), installed_type_names(), m_cat_ops, m_pref_assign_conv, m_widening_ops, non_const_unary_ops_map(), octave_scalar_map::setfield(), and unary_ops_map().
Referenced by F__dump_typeinfo__(), and installed_type_info().
string_vector type_info::installed_type_names | ( | void | ) | const |
Definition at line 584 of file ov-typeinfo.cc.
References m_num_types, and m_types.
Referenced by Ftypeinfo(), installed_type_info(), and installed_type_names().
type_info::assign_op_fcn type_info::lookup_assign_op | ( | octave_value::assign_op | op, |
int | t_lhs, | ||
int | t_rhs | ||
) |
Definition at line 556 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, and m_assign_ops.
Referenced by lookup_assign_op(), and register_assign_op().
type_info::assignany_op_fcn type_info::lookup_assignany_op | ( | octave_value::assign_op | op, |
int | t_lhs | ||
) |
Definition at line 564 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, and m_assignany_ops.
Referenced by lookup_assignany_op(), and register_assignany_op().
type_info::binary_class_op_fcn type_info::lookup_binary_class_op | ( | octave_value::binary_op | op | ) |
Definition at line 520 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, and m_binary_class_ops.
Referenced by lookup_binary_class_op().
type_info::binary_class_op_fcn type_info::lookup_binary_class_op | ( | octave_value::compound_binary_op | op | ) |
Definition at line 534 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, and m_compound_binary_class_ops.
type_info::binary_op_fcn type_info::lookup_binary_op | ( | octave_value::binary_op | op, |
int | t1, | ||
int | t2 | ||
) |
Definition at line 527 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, and m_binary_ops.
Referenced by lookup_binary_op().
type_info::binary_op_fcn type_info::lookup_binary_op | ( | octave_value::compound_binary_op | op, |
int | t1, | ||
int | t2 | ||
) |
Definition at line 541 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, and m_compound_binary_ops.
type_info::cat_op_fcn type_info::lookup_cat_op | ( | int | t1, |
int | t2 | ||
) |
Definition at line 549 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, and m_cat_ops.
Referenced by lookup_cat_op(), and register_cat_op().
type_info::non_const_unary_op_fcn type_info::lookup_non_const_unary_op | ( | octave_value::unary_op | op, |
int | t | ||
) |
Definition at line 513 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, and m_non_const_unary_ops.
Referenced by lookup_non_const_unary_op(), and register_non_const_unary_op().
int type_info::lookup_pref_assign_conv | ( | int | t_lhs, |
int | t_rhs | ||
) |
Definition at line 571 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), and m_pref_assign_conv.
Referenced by lookup_pref_assign_conv(), and register_pref_assign_conv().
octave_value type_info::lookup_type | ( | const std::string & | nm | ) |
Definition at line 481 of file ov-typeinfo.cc.
References m_num_types, m_types, m_vals, and octave_value::make_unique().
Referenced by hdf5_read_next_data_internal(), lookup_type(), read_binary_data(), and read_text_data().
type_info::unary_class_op_fcn type_info::lookup_unary_class_op | ( | octave_value::unary_op | op | ) |
Definition at line 499 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, and m_unary_class_ops.
Referenced by lookup_unary_class_op(), and register_unary_class_op().
type_info::unary_op_fcn type_info::lookup_unary_op | ( | octave_value::unary_op | op, |
int | t | ||
) |
Definition at line 506 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, and m_unary_ops.
Referenced by lookup_unary_op(), and register_unary_op().
octave_base_value::type_conv_fcn type_info::lookup_widening_op | ( | int | t, |
int | t_result | ||
) |
Definition at line 577 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, and m_widening_ops.
Referenced by lookup_widening_op(), and register_widening_op().
octave_scalar_map type_info::non_const_unary_ops_map | ( | void | ) | const |
Definition at line 620 of file ov-typeinfo.cc.
References Array< T, Alloc >::columns(), len, m_non_const_unary_ops, m_num_types, min(), octave_value::num_unary_ops, octave_scalar_map::setfield(), octave_value::unary_op_as_string(), and Array< T, Alloc >::xelem().
Referenced by installed_type_info().
bool type_info::register_assign_op | ( | octave_value::assign_op | , |
int | , | ||
int | , | ||
assign_op_fcn | , | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 375 of file ov-typeinfo.cc.
References octave_value::assign_op_as_string(), Array< T, Alloc >::checkelem(), f, lookup_assign_op(), m_assign_ops, m_types, and warning().
bool type_info::register_assignany_op | ( | octave_value::assign_op | , |
int | , | ||
assignany_op_fcn | , | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 404 of file ov-typeinfo.cc.
References octave_value::assign_op_as_string(), Array< T, Alloc >::checkelem(), f, lookup_assignany_op(), m_assignany_ops, m_types, and warning().
bool type_info::register_binary_class_op | ( | octave_value::binary_op | , |
binary_class_op_fcn | , | ||
bool | abort_on_duplicate = false |
||
) |
bool type_info::register_binary_class_op | ( | octave_value::compound_binary_op | , |
binary_class_op_fcn | , | ||
bool | abort_on_duplicate = false |
||
) |
bool type_info::register_binary_op | ( | octave_value::binary_op | , |
int | , | ||
int | , | ||
binary_op_fcn | , | ||
bool | abort_on_duplicate = false |
||
) |
bool type_info::register_binary_op | ( | octave_value::compound_binary_op | , |
int | , | ||
int | , | ||
binary_op_fcn | , | ||
bool | abort_on_duplicate = false |
||
) |
bool type_info::register_cat_op | ( | int | , |
int | , | ||
cat_op_fcn | , | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 351 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, lookup_cat_op(), m_cat_ops, m_types, and warning().
bool type_info::register_non_const_unary_op | ( | octave_value::unary_op | , |
int | , | ||
non_const_unary_op_fcn | , | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 214 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, lookup_non_const_unary_op(), m_non_const_unary_ops, m_types, octave_value::unary_op_as_string(), and warning().
bool type_info::register_pref_assign_conv | ( | int | t_lhs, |
int | t_rhs, | ||
int | t_result, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 430 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), lookup_pref_assign_conv(), m_pref_assign_conv, m_types, and warning().
int type_info::register_type | ( | const std::string & | t_name, |
const std::string & | , | ||
const octave_value & | val, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 90 of file ov-typeinfo.cc.
References len, m_assign_ops, m_assignany_ops, m_binary_ops, m_cat_ops, m_compound_binary_ops, m_non_const_unary_ops, m_num_types, m_pref_assign_conv, m_types, m_unary_ops, m_vals, m_widening_ops, octave_value::num_assign_ops, octave_value::num_binary_ops, octave_value::num_compound_binary_ops, octave_value::num_unary_ops, Array< T, Alloc >::numel(), octave_value(), Array< T, Alloc >::resize(), and warning().
Referenced by register_type().
bool type_info::register_unary_class_op | ( | octave_value::unary_op | , |
unary_class_op_fcn | , | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 164 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, lookup_unary_class_op(), m_unary_class_ops, octave_value::unary_op_as_string(), and warning().
bool type_info::register_unary_op | ( | octave_value::unary_op | op, |
int | t, | ||
unary_op_fcn | f, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 189 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, lookup_unary_op(), m_types, m_unary_ops, octave_value::unary_op_as_string(), and warning().
bool type_info::register_widening_op | ( | int | t, |
int | t_result, | ||
octave_base_value::type_conv_fcn | f, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 456 of file ov-typeinfo.cc.
References Array< T, Alloc >::checkelem(), f, lookup_widening_op(), m_types, m_widening_ops, and warning().
octave_scalar_map type_info::unary_ops_map | ( | void | ) | const |
Definition at line 595 of file ov-typeinfo.cc.
References Array< T, Alloc >::columns(), len, m_non_const_unary_ops, m_num_types, m_unary_ops, min(), octave_value::num_unary_ops, octave_scalar_map::setfield(), octave_value::unary_op_as_string(), and Array< T, Alloc >::xelem().
Referenced by installed_type_info().
|
private |
Definition at line 262 of file ov-typeinfo.h.
Referenced by assign_ops_map(), lookup_assign_op(), register_assign_op(), and register_type().
|
private |
Definition at line 264 of file ov-typeinfo.h.
Referenced by assignany_ops_map(), lookup_assignany_op(), register_assignany_op(), and register_type().
|
private |
Definition at line 252 of file ov-typeinfo.h.
Referenced by lookup_binary_class_op().
|
private |
Definition at line 254 of file ov-typeinfo.h.
Referenced by binary_ops_map(), lookup_binary_op(), and register_type().
|
private |
Definition at line 260 of file ov-typeinfo.h.
Referenced by installed_type_info(), lookup_cat_op(), register_cat_op(), and register_type().
|
private |
Definition at line 256 of file ov-typeinfo.h.
Referenced by lookup_binary_class_op().
|
private |
Definition at line 258 of file ov-typeinfo.h.
Referenced by compound_binary_ops_map(), lookup_binary_op(), and register_type().
|
private |
Definition at line 250 of file ov-typeinfo.h.
Referenced by lookup_non_const_unary_op(), non_const_unary_ops_map(), register_non_const_unary_op(), register_type(), and unary_ops_map().
|
private |
Definition at line 240 of file ov-typeinfo.h.
Referenced by assign_ops_map(), assignany_ops_map(), binary_ops_map(), compound_binary_ops_map(), installed_type_names(), lookup_type(), non_const_unary_ops_map(), register_type(), and unary_ops_map().
|
private |
Definition at line 266 of file ov-typeinfo.h.
Referenced by installed_type_info(), lookup_pref_assign_conv(), register_pref_assign_conv(), and register_type().
|
private |
Definition at line 242 of file ov-typeinfo.h.
Referenced by installed_type_names(), lookup_type(), register_assign_op(), register_assignany_op(), register_cat_op(), register_non_const_unary_op(), register_pref_assign_conv(), register_type(), register_unary_op(), and register_widening_op().
|
private |
Definition at line 246 of file ov-typeinfo.h.
Referenced by lookup_unary_class_op(), and register_unary_class_op().
|
private |
Definition at line 248 of file ov-typeinfo.h.
Referenced by lookup_unary_op(), register_type(), register_unary_op(), and unary_ops_map().
|
private |
Definition at line 244 of file ov-typeinfo.h.
Referenced by lookup_type(), and register_type().
|
private |
Definition at line 268 of file ov-typeinfo.h.
Referenced by installed_type_info(), lookup_widening_op(), register_type(), and register_widening_op().