Unary and binary operators for classdef and old style classes. More...
#include "oct-time.h"
#include "errwarn.h"
#include "interpreter-private.h"
#include "load-path.h"
#include "ovl.h"
#include "ov.h"
#include "ov-class.h"
#include "ov-typeinfo.h"
#include "ops.h"
#include "symtab.h"
#include "parse.h"
Go to the source code of this file.
Macros | |
#define | DEF_CLASS_BINOP(opname) |
Helper macro to define binary class operators. More... | |
#define | DEF_CLASS_UNOP(opname) |
Helper macro to define unary class operators. More... | |
Unary and binary operators for classdef and old style classes.
Definition in file op-class.cc.
#define DEF_CLASS_BINOP | ( | opname | ) |
Helper macro to define binary class operators.
Definition at line 171 of file op-class.cc.
#define DEF_CLASS_UNOP | ( | opname | ) |
Helper macro to define unary class operators.
Definition at line 109 of file op-class.cc.
void install_class_ops | ( | octave::type_info & | ti | ) |
Definition at line 199 of file op-class.cc.
References oct_binop_and(), oct_binop_eq(), oct_binop_ge(), oct_binop_gt(), oct_binop_ldivide(), oct_binop_le(), oct_binop_lt(), oct_binop_minus(), oct_binop_mldivide(), oct_binop_mpower(), oct_binop_mrdivide(), oct_binop_mtimes(), oct_binop_ne(), oct_binop_or(), oct_binop_plus(), oct_binop_power(), oct_binop_rdivide(), oct_binop_times(), oct_unop_ctranspose(), oct_unop_not(), oct_unop_transpose(), oct_unop_uminus(), oct_unop_uplus(), octave_value::op_add, octave_value::op_div, octave_value::op_el_and, octave_value::op_el_div, octave_value::op_el_ldiv, octave_value::op_el_mul, octave_value::op_el_or, octave_value::op_el_pow, octave_value::op_eq, octave_value::op_ge, octave_value::op_gt, octave_value::op_hermitian, octave_value::op_ldiv, octave_value::op_le, octave_value::op_lt, octave_value::op_mul, octave_value::op_ne, octave_value::op_not, octave_value::op_pow, octave_value::op_sub, octave_value::op_transpose, octave_value::op_uminus, and octave_value::op_uplus.
|
static |
Definition at line 194 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Default binary class operator.
a1 | first operand |
a2 | second operand |
opname | operator name |
The operator precedence is as follows:
Definition at line 140 of file op-class.cc.
References __get_symbol_table__(), a2, octave_base_value::class_name(), octave_value::class_name(), error(), feval(), octave_value::function_value(), octave_value::is_undefined(), octave_base_value::isobject(), octave_value::isobject(), octave_value_list::length(), octave_value(), and ovl().
|
static |
Definition at line 186 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 187 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 188 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 193 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 185 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 184 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 179 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 183 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 182 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 181 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 180 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 189 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 195 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 178 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 192 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 191 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 190 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 120 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Default unary class operator.
a | operand |
opname | operator name |
Definition at line 54 of file op-class.cc.
References __get_symbol_table__(), octave_class::class_name(), octave_value::class_name(), error(), feval(), octave_value::function_value(), octave_value::get_rep(), octave_value::is_classdef_object(), octave_value::is_defined(), octave_value_list::length(), octave_class::map_value(), octave_value::ndims(), octave_value(), ovl(), octave_class::parent_class_name_list(), and octave_map::transpose().
|
static |
Definition at line 116 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 119 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 118 of file op-class.cc.
Referenced by install_class_ops().
|
static |
Definition at line 117 of file op-class.cc.
Referenced by install_class_ops().