Go to the source code of this file.
Defines | |
#define | OCTAVE_TYPE_CONV_BODY(NAME) |
#define | OCTAVE_TYPE_CONV_BODY3(NAME, MATRIX_RESULT_T, SCALAR_RESULT_T) |
Functions | |
static octave_value | octave_type_conv_body (const octave_value &arg, const std::string &name, int t_result) |
#define OCTAVE_TYPE_CONV_BODY | ( | NAME | ) |
OCTAVE_TYPE_CONV_BODY3 (NAME, octave_ ## NAME ## _matrix, \ octave_ ## NAME ## _scalar)
Definition at line 105 of file ov-type-conv.h.
Referenced by DEFUN().
#define OCTAVE_TYPE_CONV_BODY3 | ( | NAME, | ||
MATRIX_RESULT_T, | ||||
SCALAR_RESULT_T | ||||
) |
\ octave_value retval; \ \ int nargin = args.length (); \ \ if (nargin == 1) \ { \ const octave_value arg = args(0); \ \ int t_result = MATRIX_RESULT_T::static_type_id (); \ \ retval = octave_type_conv_body (arg, #NAME, t_result); \ if (retval.is_undefined ()) \ { \ std::string arg_tname = arg.type_name (); \ \ std::string result_tname = arg.numel () == 1 \ ? SCALAR_RESULT_T::static_type_name () \ : MATRIX_RESULT_T::static_type_name (); \ \ gripe_invalid_conversion (arg_tname, result_tname); \ } \ } \ else \ print_usage (); \ \ return retval
Definition at line 76 of file ov-type-conv.h.
Referenced by DEFUN().
static octave_value octave_type_conv_body | ( | const octave_value & | arg, | |
const std::string & | name, | |||
int | t_result | |||
) | [static] |
Definition at line 28 of file ov-type-conv.h.
References octave_value::class_name(), octave_value::internal_rep(), octave_value_typeinfo::lookup_type_conv_op(), octave_value::maybe_mutate(), octave_value::numeric_conversion_function(), octave_value(), and octave_value::type_id().