26#if ! defined (octave_ov_typeinfo_h)
27#define octave_ov_typeinfo_h 1
29#include "octave-config.h"
68 explicit type_info (
int init_tab_sz = 16);
79 return register_unary_class_op (op,
f,
true);
84 return register_unary_op (op, t,
f,
true);
90 return register_non_const_unary_op (op, t,
f,
true);
96 return register_binary_class_op (op,
f,
true);
102 return register_binary_op (op, t1, t2,
f,
true);
108 return register_binary_class_op (op,
f,
true);
114 return register_binary_op (op, t_lhs, t_rhs,
f,
true);
119 return register_cat_op (t1, t2,
f,
true);
125 return register_assign_op (op, t_lhs, t_rhs,
f,
true);
131 return register_assignany_op (op, t_lhs,
f,
true);
136 return register_pref_assign_conv (t_lhs, t_rhs, t_result,
true);
142 return register_widening_op (t, t_result,
f,
true);
149 bool abort_on_duplicate =
false);
152 bool abort_on_duplicate =
false);
156 bool abort_on_duplicate =
false);
160 bool abort_on_duplicate =
false);
167 bool abort_on_duplicate =
false);
173 bool abort_on_duplicate =
false);
176 bool abort_on_duplicate =
false);
179 bool abort_on_duplicate =
false);
181 bool register_pref_assign_conv (
int,
int,
int,
182 bool abort_on_duplicate =
false);
185 bool abort_on_duplicate =
false);
265OCTAVE_END_NAMESPACE(octave)
285extern OCTINTERP_API
int register_type (const std::
string& t_name,
286 const std::
string& c_name,
329OCTAVE_END_NAMESPACE(octave_value_typeinfo)
N Dimensional Array with copy-on-write semantics.
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
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)