26 #if ! defined (octave_ov_typeinfo_h)
27 #define octave_ov_typeinfo_h 1
29 #include "octave-config.h"
70 explicit type_info (
int init_tab_sz = 16);
81 return register_unary_class_op (op,
f,
true);
86 return register_unary_op (op, t,
f,
true);
92 return register_non_const_unary_op (op, t,
f,
true);
98 return register_binary_class_op (op,
f,
true);
104 return register_binary_op (op, t1, t2,
f,
true);
110 return register_binary_class_op (op,
f,
true);
116 return register_binary_op (op, t_lhs, t_rhs,
f,
true);
121 return register_cat_op (t1, t2,
f,
true);
127 return register_assign_op (op, t_lhs, t_rhs,
f,
true);
133 return register_assignany_op (op, t_lhs,
f,
true);
138 return register_pref_assign_conv (t_lhs, t_rhs, t_result,
true);
144 return register_widening_op (t, t_result,
f,
true);
151 bool abort_on_duplicate =
false);
154 bool abort_on_duplicate =
false);
158 bool abort_on_duplicate =
false);
162 bool abort_on_duplicate =
false);
169 bool abort_on_duplicate =
false);
175 bool abort_on_duplicate =
false);
178 bool abort_on_duplicate =
false);
181 bool abort_on_duplicate =
false);
183 bool register_pref_assign_conv (
int,
int,
int,
184 bool abort_on_duplicate =
false);
187 bool abort_on_duplicate =
false);
267 OCTAVE_END_NAMESPACE(
octave)
287 extern OCTINTERP_API
int register_type (const std::
string& t_name,
288 const std::
string& c_name,
331 OCTAVE_END_NAMESPACE(octave_value_typeinfo)
octave_base_value *(* type_conv_fcn)(const octave_base_value &)
bool register_binary_class_op(octave_value::compound_binary_op, binary_class_op_fcn, bool abort_on_duplicate=false)
bool install_binary_class_op(octave_value::compound_binary_op op, binary_class_op_fcn f)
bool install_widening_op(int t, int t_result, octave_base_value::type_conv_fcn f)
bool install_cat_op(int t1, int t2, cat_op_fcn f)
bool register_binary_class_op(octave_value::binary_op, binary_class_op_fcn, bool abort_on_duplicate=false)
bool install_assignany_op(octave_value::assign_op op, int t_lhs, assignany_op_fcn f)
bool install_non_const_unary_op(octave_value::unary_op op, int t, non_const_unary_op_fcn f)
bool install_unary_op(octave_value::unary_op op, int t, unary_op_fcn f)
bool install_binary_op(octave_value::compound_binary_op op, int t_lhs, int t_rhs, binary_op_fcn f)
bool install_pref_assign_conv(int t_lhs, int t_rhs, int t_result)
bool register_binary_op(octave_value::binary_op, int, int, binary_op_fcn, bool abort_on_duplicate=false)
bool register_binary_op(octave_value::compound_binary_op, int, int, binary_op_fcn, bool abort_on_duplicate=false)
bool install_assign_op(octave_value::assign_op op, int t_lhs, int t_rhs, assign_op_fcn f)
bool install_unary_class_op(octave_value::unary_op op, unary_class_op_fcn f)
bool install_binary_class_op(octave_value::binary_op op, binary_class_op_fcn f)
bool install_binary_op(octave_value::binary_op op, int t1, int t2, binary_op_fcn f)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
F77_RET_T const F77_DBLE const F77_DBLE * f
const octave_base_value const Array< octave_idx_type > & ra_idx
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
octave_value lookup_type(const std::string &nm)
octave_base_value::type_conv_fcn lookup_widening_op(int t, int t_result)
octave::type_info::binary_op_fcn binary_op_fcn
unary_class_op_fcn lookup_unary_class_op(octave_value::unary_op op)
non_const_unary_op_fcn lookup_non_const_unary_op(octave_value::unary_op op, int t)
octave_scalar_map installed_type_info()
octave::type_info::binary_class_op_fcn binary_class_op_fcn
int register_type(const std::string &t_name, const std::string &c_name, const octave_value &val)
octave::type_info::assign_op_fcn assign_op_fcn
octave::type_info::non_const_unary_op_fcn non_const_unary_op_fcn
octave::type_info::assignany_op_fcn assignany_op_fcn
octave::type_info::unary_op_fcn unary_op_fcn
binary_op_fcn lookup_binary_op(octave_value::binary_op op, int t1, int t2)
binary_class_op_fcn lookup_binary_class_op(octave_value::binary_op op)
assign_op_fcn lookup_assign_op(octave_value::assign_op op, int t_lhs, int t_rhs)
string_vector installed_type_names()
unary_op_fcn lookup_unary_op(octave_value::unary_op op, int t)
assignany_op_fcn lookup_assignany_op(octave_value::assign_op op, int t_lhs)
octave::type_info::cat_op_fcn cat_op_fcn
int lookup_pref_assign_conv(int t_lhs, int t_rhs)
octave::type_info::unary_class_op_fcn unary_class_op_fcn
cat_op_fcn lookup_cat_op(int t1, int t2)
octave_value binary_op(type_info &ti, octave_value::binary_op op, const octave_value &a, const octave_value &b)
octave_value unary_op(type_info &ti, octave_value::unary_op op, const octave_value &a)