GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
cdef-manager.cc File Reference
#include "cdef-manager.h"
#include "cdef-utils.h"
#include "interpreter.h"
#include "ov-classdef.h"
Include dependency graph for cdef-manager.cc:

Go to the source code of this file.

Macros

#define META_CLASS_CMP(OP, CLSA, CLSB, FCN)
 

Functions

static octave_value_list class_eq (const octave_value_list &args, int)
 
static octave_value_list class_fevalStatic (const octave_value_list &args, int nargout)
 
static octave_value_list class_fromName (const octave_value_list &args, int)
 
static octave_value_list class_ge (const octave_value_list &args, int)
 
static octave_value_list class_get_inferiorclasses (const octave_value_list &args, int)
 
static octave_value_list class_get_methods (const octave_value_list &args, int)
 
static octave_value_list class_get_properties (const octave_value_list &args, int)
 
static octave_value_list class_get_superclasses (const octave_value_list &args, int)
 
static octave_value_list class_getConstant (const octave_value_list &args, int)
 
static octave_value_list class_gt (const octave_value_list &args, int)
 
static octave_value_list class_le (const octave_value_list &args, int)
 
static octave_value_list class_lt (const octave_value_list &args, int)
 
static octave_value_list class_ne (const octave_value_list &args, int)
 
static octave_value_list handle_delete (const octave_value_list &, int)
 
static octave_value make_fcn_handle (octave_builtin::fcn ff, const std::string &nm)
 
static octave_value_list package_fromName (const octave_value_list &args, int)
 
static octave_value_list package_get_classes (const octave_value_list &args, int)
 
static octave_value_list package_get_functions (const octave_value_list &args, int)
 
static octave_value_list package_get_packages (const octave_value_list &args, int)
 
static octave_value_list package_getAllPackages (interpreter &interp, const octave_value_list &, int)
 
static octave_value_list property_get_defaultvalue (const octave_value_list &args, int)
 

Macro Definition Documentation

◆ META_CLASS_CMP

#define META_CLASS_CMP (   OP,
  CLSA,
  CLSB,
  FCN 
)
Value:
static octave_value_list \
class_ ## OP (const octave_value_list& args, int /* nargout */) \
{ \
octave_value_list retval; \
\
if (args.length () != 2 \
|| args(0).type_name () != "object" \
|| args(1).type_name () != "object" \
|| args(0).class_name () != "meta.class" \
|| args(1).class_name () != "meta.class") \
error (#OP ": invalid arguments"); \
\
cdef_class clsa = to_cdef (args(0)); \
\
cdef_class clsb = to_cdef (args(1)); \
\
retval(0) = FCN (CLSA, CLSB); \
\
return retval; \
}
cdef_object to_cdef(const octave_value &val)
Definition: cdef-utils.cc:143
@ FCN
Definition: oct-parse.h:135

Definition at line 175 of file cdef-manager.cc.

Function Documentation

◆ class_eq()

static octave_value_list class_eq ( const octave_value_list args,
int   
)
static

Definition at line 201 of file cdef-manager.cc.

Referenced by cdef_manager::cdef_manager().

◆ class_fevalStatic()

◆ class_fromName()

static octave_value_list class_fromName ( const octave_value_list args,
int   
)
static

Definition at line 112 of file cdef-manager.cc.

References error(), octave_value_list::length(), lookup_class(), and to_ov().

Referenced by cdef_manager::cdef_manager().

◆ class_ge()

static octave_value_list class_ge ( const octave_value_list args,
int   
)
static

Definition at line 200 of file cdef-manager.cc.

Referenced by cdef_manager::cdef_manager().

◆ class_get_inferiorclasses()

static octave_value_list class_get_inferiorclasses ( const octave_value_list args,
int   
)
static

◆ class_get_methods()

static octave_value_list class_get_methods ( const octave_value_list args,
int   
)
static

◆ class_get_properties()

static octave_value_list class_get_properties ( const octave_value_list args,
int   
)
static

◆ class_get_superclasses()

static octave_value_list class_get_superclasses ( const octave_value_list args,
int   
)
static

◆ class_getConstant()

◆ class_gt()

static octave_value_list class_gt ( const octave_value_list args,
int   
)
static

Definition at line 199 of file cdef-manager.cc.

Referenced by cdef_manager::cdef_manager().

◆ class_le()

static octave_value_list class_le ( const octave_value_list args,
int   
)
static

Definition at line 198 of file cdef-manager.cc.

Referenced by cdef_manager::cdef_manager().

◆ class_lt()

static octave_value_list class_lt ( const octave_value_list args,
int   
)
static

Definition at line 197 of file cdef-manager.cc.

Referenced by cdef_manager::cdef_manager().

◆ class_ne()

static octave_value_list class_ne ( const octave_value_list args,
int   
)
static

Definition at line 202 of file cdef-manager.cc.

Referenced by cdef_manager::cdef_manager().

◆ handle_delete()

static octave_value_list handle_delete ( const octave_value_list ,
int   
)
static

Definition at line 225 of file cdef-manager.cc.

Referenced by cdef_manager::cdef_manager().

◆ make_fcn_handle()

static octave_value make_fcn_handle ( octave_builtin::fcn  ff,
const std::string &  nm 
)
static

Definition at line 38 of file cdef-manager.cc.

References octave_value().

Referenced by cdef_manager::cdef_manager().

◆ package_fromName()

static octave_value_list package_fromName ( const octave_value_list args,
int   
)
static

Definition at line 311 of file cdef-manager.cc.

References error(), octave_value_list::length(), lookup_package(), and to_ov().

Referenced by cdef_manager::cdef_manager().

◆ package_get_classes()

static octave_value_list package_get_classes ( const octave_value_list args,
int   
)
static

◆ package_get_functions()

static octave_value_list package_get_functions ( const octave_value_list args,
int   
)
static

◆ package_get_packages()

static octave_value_list package_get_packages ( const octave_value_list args,
int   
)
static

◆ package_getAllPackages()

static octave_value_list package_getAllPackages ( interpreter interp,
const octave_value_list ,
int   
)
static

◆ property_get_defaultvalue()

static octave_value_list property_get_defaultvalue ( const octave_value_list args,
int   
)
static