GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
op-class.cc File Reference

Unary and binary operators for classdef and old style classes. More...

#include "oct-time.h"
#include "errwarn.h"
#include "interpreter-private.h"
#include "interpreter.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"

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...
 

Functions

void install_class_ops (octave::type_info &ti)
 

Detailed Description

Unary and binary operators for classdef and old style classes.

Definition in file op-class.cc.

Macro Definition Documentation

◆ DEF_CLASS_BINOP

#define DEF_CLASS_BINOP (   opname)
Value:
static octave_value \
oct_binop_ ## opname (const octave_value& a1, const octave_value& a2) \
{ \
return oct_binop_default (a1, a2, #opname); \
}
const octave_base_value & a2

Helper macro to define binary class operators.

Definition at line 174 of file op-class.cc.

◆ DEF_CLASS_UNOP

#define DEF_CLASS_UNOP (   opname)
Value:
static octave_value \
oct_unop_ ## opname (const octave_value& a) \
{ \
return oct_unop_default (a, #opname); \
}

Helper macro to define unary class operators.

Definition at line 110 of file op-class.cc.

Function Documentation

◆ install_class_ops()

void install_class_ops ( octave::type_info &  ti)

Definition at line 202 of file op-class.cc.

References octave_value::op_not.

Referenced by install_ops().