#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) (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 * > | assign_ops |
Array< void * > | assignany_ops |
Array< void * > | binary_class_ops |
Array< void * > | binary_ops |
Array< void * > | cat_ops |
Array< void * > | compound_binary_class_ops |
Array< void * > | compound_binary_ops |
Array< void * > | non_const_unary_ops |
int | num_types |
Array< int > | pref_assign_conv |
Array< std::string > | types |
Array< void * > | unary_class_ops |
Array< void * > | unary_ops |
Array< octave_value * > | vals |
Array< void * > | widening_ops |
Definition at line 42 of file ov-typeinfo.h.
typedef octave_value(* octave::type_info::assign_op_fcn) (octave_base_value &, const octave_value_list &, const octave_base_value &) |
Definition at line 62 of file ov-typeinfo.h.
typedef octave_value(* octave::type_info::assignany_op_fcn) (octave_base_value &, const octave_value_list &, const octave_value &) |
Definition at line 65 of file ov-typeinfo.h.
typedef octave_value(* octave::type_info::binary_class_op_fcn) (const octave_value &, const octave_value &) |
Definition at line 52 of file ov-typeinfo.h.
typedef octave_value(* octave::type_info::binary_op_fcn) (const octave_base_value &, const octave_base_value &) |
Definition at line 55 of file ov-typeinfo.h.
typedef octave_value(* octave::type_info::cat_op_fcn) (octave_base_value &, const octave_base_value &, const Array< octave_idx_type > &ra_idx) |
Definition at line 58 of file ov-typeinfo.h.
typedef void(* octave::type_info::non_const_unary_op_fcn) (octave_base_value &) |
Definition at line 50 of file ov-typeinfo.h.
typedef octave_value(* octave::type_info::unary_class_op_fcn) (const octave_value &) |
Definition at line 46 of file ov-typeinfo.h.
typedef octave_value(* octave::type_info::unary_op_fcn) (const octave_base_value &) |
Definition at line 48 of file ov-typeinfo.h.
|
explicit |
Definition at line 67 of file ov-typeinfo.cc.
References install_ops(), and install_types().
|
delete |
|
default |
octave_scalar_map octave::type_info::assign_ops_map | ( | void | ) | const |
Definition at line 695 of file ov-typeinfo.cc.
References octave_value::assign_op_as_string(), assign_ops, Array< T >::columns(), len, min(), octave_value::num_assign_ops, num_types, retval, and Array< T >::xelem().
Referenced by installed_type_info().
octave_scalar_map octave::type_info::assignany_ops_map | ( | void | ) | const |
Definition at line 720 of file ov-typeinfo.cc.
References octave_value::assign_op_as_string(), assignany_ops, Array< T >::columns(), len, min(), octave_value::num_assign_ops, num_types, retval, and Array< T >::xelem().
Referenced by installed_type_info().
octave_scalar_map octave::type_info::binary_ops_map | ( | void | ) | const |
Definition at line 643 of file ov-typeinfo.cc.
References octave_value::binary_op_as_string(), binary_ops, Array< T >::columns(), len, min(), octave_value::num_binary_ops, num_types, retval, and Array< T >::xelem().
Referenced by installed_type_info().
octave_scalar_map octave::type_info::compound_binary_ops_map | ( | void | ) | const |
Definition at line 668 of file ov-typeinfo.cc.
References octave_value::binary_op_fcn_name(), Array< T >::columns(), compound_binary_ops, len, min(), octave_value::num_compound_binary_ops, num_types, retval, and Array< T >::xelem().
Referenced by installed_type_info().
|
inline |
Definition at line 126 of file ov-typeinfo.h.
References octave::f(), and register_assign_op().
|
inline |
Definition at line 132 of file ov-typeinfo.h.
References octave::f(), and register_assignany_op().
|
inline |
Definition at line 97 of file ov-typeinfo.h.
References octave::f(), and register_binary_class_op().
Referenced by install_class_ops().
|
inline |
Definition at line 109 of file ov-typeinfo.h.
References octave::f(), and register_binary_class_op().
|
inline |
Definition at line 103 of file ov-typeinfo.h.
References octave::f(), and register_binary_op().
|
inline |
Definition at line 115 of file ov-typeinfo.h.
References octave::f(), and register_binary_op().
|
inline |
Definition at line 121 of file ov-typeinfo.h.
References octave::f(), and register_cat_op().
|
inline |
Definition at line 91 of file ov-typeinfo.h.
References octave::f(), and register_non_const_unary_op().
|
inline |
Definition at line 138 of file ov-typeinfo.h.
References register_pref_assign_conv().
|
inline |
Definition at line 80 of file ov-typeinfo.h.
References octave::f(), and register_unary_class_op().
Referenced by install_class_ops().
|
inline |
Definition at line 86 of file ov-typeinfo.h.
References octave::f(), and register_unary_op().
|
inline |
Definition at line 143 of file ov-typeinfo.h.
References octave::f(), and register_widening_op().
octave_scalar_map octave::type_info::installed_type_info | ( | void | ) | const |
Definition at line 744 of file ov-typeinfo.cc.
References octave::as_bool_nd_array(), octave::as_nd_array(), assign_ops_map(), assignany_ops_map(), binary_ops_map(), cat_ops, compound_binary_ops_map(), installed_type_names(), non_const_unary_ops_map(), pref_assign_conv, retval, unary_ops_map(), and widening_ops.
Referenced by F__dump_typeinfo__(), and octave_value_typeinfo::installed_type_info().
string_vector octave::type_info::installed_type_names | ( | void | ) | const |
Definition at line 582 of file ov-typeinfo.cc.
References num_types, retval, and types.
Referenced by Ftypeinfo(), installed_type_info(), and octave_value_typeinfo::installed_type_names().
type_info::assign_op_fcn octave::type_info::lookup_assign_op | ( | octave_value::assign_op | op, |
int | t_lhs, | ||
int | t_rhs | ||
) |
Definition at line 554 of file ov-typeinfo.cc.
References assign_ops, Array< T >::checkelem(), and octave::f().
Referenced by octave_value_typeinfo::lookup_assign_op(), octave_base_value::numeric_assign(), and register_assign_op().
type_info::assignany_op_fcn octave::type_info::lookup_assignany_op | ( | octave_value::assign_op | op, |
int | t_lhs | ||
) |
Definition at line 562 of file ov-typeinfo.cc.
References assignany_ops, Array< T >::checkelem(), and octave::f().
Referenced by octave_value_typeinfo::lookup_assignany_op(), and register_assignany_op().
type_info::binary_class_op_fcn octave::type_info::lookup_binary_class_op | ( | octave_value::binary_op | op | ) |
Definition at line 518 of file ov-typeinfo.cc.
References binary_class_ops, Array< T >::checkelem(), and octave::f().
Referenced by octave_value_typeinfo::lookup_binary_class_op(), and register_binary_class_op().
type_info::binary_class_op_fcn octave::type_info::lookup_binary_class_op | ( | octave_value::compound_binary_op | op | ) |
Definition at line 532 of file ov-typeinfo.cc.
References Array< T >::checkelem(), compound_binary_class_ops, and octave::f().
type_info::binary_op_fcn octave::type_info::lookup_binary_op | ( | octave_value::binary_op | op, |
int | t1, | ||
int | t2 | ||
) |
Definition at line 525 of file ov-typeinfo.cc.
References binary_ops, Array< T >::checkelem(), and octave::f().
Referenced by octave_value_typeinfo::lookup_binary_op(), and register_binary_op().
type_info::binary_op_fcn octave::type_info::lookup_binary_op | ( | octave_value::compound_binary_op | op, |
int | t1, | ||
int | t2 | ||
) |
Definition at line 539 of file ov-typeinfo.cc.
References Array< T >::checkelem(), compound_binary_ops, and octave::f().
type_info::cat_op_fcn octave::type_info::lookup_cat_op | ( | int | t1, |
int | t2 | ||
) |
Definition at line 547 of file ov-typeinfo.cc.
References cat_ops, Array< T >::checkelem(), and octave::f().
Referenced by octave_value_typeinfo::lookup_cat_op(), and register_cat_op().
type_info::non_const_unary_op_fcn octave::type_info::lookup_non_const_unary_op | ( | octave_value::unary_op | op, |
int | t | ||
) |
Definition at line 511 of file ov-typeinfo.cc.
References Array< T >::checkelem(), octave::f(), and non_const_unary_ops.
Referenced by octave_value::do_non_const_unary_op(), octave_value_typeinfo::lookup_non_const_unary_op(), and register_non_const_unary_op().
int octave::type_info::lookup_pref_assign_conv | ( | int | t_lhs, |
int | t_rhs | ||
) |
Definition at line 569 of file ov-typeinfo.cc.
References Array< T >::checkelem(), and pref_assign_conv.
Referenced by octave_value_typeinfo::lookup_pref_assign_conv(), octave_base_value::numeric_assign(), and register_pref_assign_conv().
octave_value octave::type_info::lookup_type | ( | const std::string & | nm | ) |
Definition at line 479 of file ov-typeinfo.cc.
References Array< T >::make_unique(), num_types, retval, types, and vals.
Referenced by hdf5_read_next_data_internal(), octave_value_typeinfo::lookup_type(), read_binary_data(), and read_text_data().
type_info::unary_class_op_fcn octave::type_info::lookup_unary_class_op | ( | octave_value::unary_op | op | ) |
Definition at line 497 of file ov-typeinfo.cc.
References Array< T >::checkelem(), octave::f(), and unary_class_ops.
Referenced by octave_value_typeinfo::lookup_unary_class_op(), and register_unary_class_op().
type_info::unary_op_fcn octave::type_info::lookup_unary_op | ( | octave_value::unary_op | op, |
int | t | ||
) |
Definition at line 504 of file ov-typeinfo.cc.
References Array< T >::checkelem(), octave::f(), and unary_ops.
Referenced by octave_value_typeinfo::lookup_unary_op(), and register_unary_op().
octave_base_value::type_conv_fcn octave::type_info::lookup_widening_op | ( | int | t, |
int | t_result | ||
) |
Definition at line 575 of file ov-typeinfo.cc.
References Array< T >::checkelem(), octave::f(), and widening_ops.
Referenced by octave_value_typeinfo::lookup_widening_op(), octave_base_value::numeric_assign(), and register_widening_op().
octave_scalar_map octave::type_info::non_const_unary_ops_map | ( | void | ) | const |
Definition at line 618 of file ov-typeinfo.cc.
References Array< T >::columns(), len, min(), non_const_unary_ops, num_types, octave_value::num_unary_ops, retval, octave_value::unary_op_as_string(), and Array< T >::xelem().
Referenced by installed_type_info().
bool octave::type_info::register_assign_op | ( | octave_value::assign_op | op, |
int | t_lhs, | ||
int | t_rhs, | ||
type_info::assign_op_fcn | f, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 373 of file ov-typeinfo.cc.
References octave_value::assign_op_as_string(), assign_ops, Array< T >::checkelem(), octave::f(), lookup_assign_op(), types, and warning().
Referenced by install_assign_op().
bool octave::type_info::register_assignany_op | ( | octave_value::assign_op | op, |
int | t_lhs, | ||
type_info::assignany_op_fcn | f, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 402 of file ov-typeinfo.cc.
References octave_value::assign_op_as_string(), assignany_ops, Array< T >::checkelem(), octave::f(), lookup_assignany_op(), types, and warning().
Referenced by install_assignany_op().
bool octave::type_info::register_binary_class_op | ( | octave_value::binary_op | op, |
type_info::binary_class_op_fcn | f, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 239 of file ov-typeinfo.cc.
References binary_class_ops, octave_value::binary_op_as_string(), Array< T >::checkelem(), octave::f(), lookup_binary_class_op(), and warning().
Referenced by install_binary_class_op().
bool octave::type_info::register_binary_class_op | ( | octave_value::compound_binary_op | op, |
type_info::binary_class_op_fcn | f, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 295 of file ov-typeinfo.cc.
References octave_value::binary_op_fcn_name(), Array< T >::checkelem(), compound_binary_class_ops, octave::f(), lookup_binary_class_op(), and warning().
bool octave::type_info::register_binary_op | ( | octave_value::binary_op | op, |
int | t1, | ||
int | t2, | ||
type_info::binary_op_fcn | f, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 265 of file ov-typeinfo.cc.
References octave_value::binary_op_as_string(), binary_ops, Array< T >::checkelem(), octave::f(), lookup_binary_op(), types, and warning().
Referenced by install_binary_op().
bool octave::type_info::register_binary_op | ( | octave_value::compound_binary_op | op, |
int | t1, | ||
int | t2, | ||
type_info::binary_op_fcn | f, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 320 of file ov-typeinfo.cc.
References octave_value::binary_op_fcn_name(), Array< T >::checkelem(), compound_binary_ops, octave::f(), lookup_binary_op(), types, and warning().
bool octave::type_info::register_cat_op | ( | int | t1, |
int | t2, | ||
type_info::cat_op_fcn | f, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 349 of file ov-typeinfo.cc.
References cat_ops, Array< T >::checkelem(), octave::f(), lookup_cat_op(), types, and warning().
Referenced by install_cat_op().
bool octave::type_info::register_non_const_unary_op | ( | octave_value::unary_op | op, |
int | t, | ||
type_info::non_const_unary_op_fcn | f, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 212 of file ov-typeinfo.cc.
References Array< T >::checkelem(), octave::f(), lookup_non_const_unary_op(), non_const_unary_ops, types, octave_value::unary_op_as_string(), and warning().
Referenced by install_non_const_unary_op().
bool octave::type_info::register_pref_assign_conv | ( | int | t_lhs, |
int | t_rhs, | ||
int | t_result, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 428 of file ov-typeinfo.cc.
References Array< T >::checkelem(), lookup_pref_assign_conv(), pref_assign_conv, types, and warning().
Referenced by install_pref_assign_conv().
int octave::type_info::register_type | ( | const std::string & | t_name, |
const std::string & | , | ||
const octave_value & | val, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 88 of file ov-typeinfo.cc.
References assign_ops, assignany_ops, binary_ops, cat_ops, compound_binary_ops, len, non_const_unary_ops, octave_value::num_assign_ops, octave_value::num_binary_ops, octave_value::num_compound_binary_ops, num_types, octave_value::num_unary_ops, Array< T >::numel(), octave_value(), pref_assign_conv, Array< T >::resize(), types, unary_ops, vals, warning(), and widening_ops.
Referenced by octave_value_typeinfo::register_type(), octave_class::register_type(), and octave_classdef::register_type().
bool octave::type_info::register_unary_class_op | ( | octave_value::unary_op | op, |
type_info::unary_class_op_fcn | f, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 162 of file ov-typeinfo.cc.
References Array< T >::checkelem(), octave::f(), lookup_unary_class_op(), unary_class_ops, octave_value::unary_op_as_string(), and warning().
Referenced by install_unary_class_op().
bool octave::type_info::register_unary_op | ( | octave_value::unary_op | op, |
int | t, | ||
unary_op_fcn | f, | ||
bool | abort_on_duplicate = false |
||
) |
Definition at line 187 of file ov-typeinfo.cc.
References Array< T >::checkelem(), octave::f(), lookup_unary_op(), types, octave_value::unary_op_as_string(), unary_ops, and warning().
Referenced by install_unary_op().
bool octave::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 454 of file ov-typeinfo.cc.
References Array< T >::checkelem(), octave::f(), lookup_widening_op(), types, warning(), and widening_ops.
Referenced by install_widening_op().
octave_scalar_map octave::type_info::unary_ops_map | ( | void | ) | const |
Definition at line 593 of file ov-typeinfo.cc.
References Array< T >::columns(), len, min(), non_const_unary_ops, num_types, octave_value::num_unary_ops, retval, octave_value::unary_op_as_string(), unary_ops, and Array< T >::xelem().
Referenced by installed_type_info().
|
private |
Definition at line 260 of file ov-typeinfo.h.
Referenced by assign_ops_map(), lookup_assign_op(), register_assign_op(), and register_type().
|
private |
Definition at line 262 of file ov-typeinfo.h.
Referenced by assignany_ops_map(), lookup_assignany_op(), register_assignany_op(), and register_type().
|
private |
Definition at line 250 of file ov-typeinfo.h.
Referenced by lookup_binary_class_op(), and register_binary_class_op().
|
private |
Definition at line 252 of file ov-typeinfo.h.
Referenced by binary_ops_map(), lookup_binary_op(), register_binary_op(), and register_type().
|
private |
Definition at line 258 of file ov-typeinfo.h.
Referenced by installed_type_info(), lookup_cat_op(), register_cat_op(), and register_type().
|
private |
Definition at line 254 of file ov-typeinfo.h.
Referenced by lookup_binary_class_op(), and register_binary_class_op().
|
private |
Definition at line 256 of file ov-typeinfo.h.
Referenced by compound_binary_ops_map(), lookup_binary_op(), register_binary_op(), and register_type().
|
private |
Definition at line 248 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 238 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 264 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 240 of file ov-typeinfo.h.
Referenced by installed_type_names(), lookup_type(), register_assign_op(), register_assignany_op(), register_binary_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 244 of file ov-typeinfo.h.
Referenced by lookup_unary_class_op(), and register_unary_class_op().
|
private |
Definition at line 246 of file ov-typeinfo.h.
Referenced by lookup_unary_op(), register_type(), register_unary_op(), and unary_ops_map().
|
private |
Definition at line 242 of file ov-typeinfo.h.
Referenced by lookup_type(), and register_type().
|
private |
Definition at line 266 of file ov-typeinfo.h.
Referenced by installed_type_info(), lookup_widening_op(), register_type(), and register_widening_op().