GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
cdef-utils.h File Reference
#include "octave-config.h"
#include <list>
#include <string>
#include "cdef-fwd.h"

Go to the source code of this file.

Functions

bool check_access (const cdef_class &cls, const octave_value &acc, const std::string &meth_name="", const std::string &prop_name="", bool is_prop_set=false)
 
std::string get_base_name (const std::string &nm)
 
cdef_class get_class_context ()
 
cdef_class get_class_context (std::string &name, bool &in_constructor)
 
bool is_direct_superclass (const cdef_class &clsa, const cdef_class &clsb)
 
bool is_dummy_method (const octave_value &fcn)
 
bool is_strict_superclass (const cdef_class &clsa, const cdef_class &clsb)
 
bool is_superclass (const cdef_class &clsa, const cdef_class &clsb, bool allow_equal=true, int max_depth=-1)
 
cdef_class lookup_class (const cdef_class &cls)
 
cdef_class lookup_class (const octave_value &ov)
 
cdef_class lookup_class (const std::string &name, bool error_if_not_found=true, bool load_if_not_found=true)
 
std::list< cdef_classlookup_classes (const Cell &cls_list)
 
cdef_package lookup_package (const std::string &name, bool error_if_not_found=true, bool load_if_not_found=true)
 
void make_function_of_class (const cdef_class &cls, const octave_value &fcn)
 
void make_function_of_class (const std::string &class_name, const octave_value &fcn)
 
cdef_object to_cdef (const cdef_object &obj)
 
cdef_object to_cdef (const octave_value &val)
 
cdef_objectto_cdef_ref (const octave_value &val)
 
octave_value to_ov (const cdef_object &obj)
 
octave_value to_ov (const octave_value &ov)
 
octave_value to_ov (const std::list< cdef_class > &class_list)
 

Function Documentation

◆ check_access()

◆ get_base_name()

std::string get_base_name ( const std::string &  nm)

Definition at line 44 of file cdef-utils.cc.

Referenced by make_function_of_class().

◆ get_class_context() [1/2]

cdef_class get_class_context ( )

Definition at line 285 of file cdef-utils.cc.

References get_class_context().

◆ get_class_context() [2/2]

◆ is_direct_superclass()

bool is_direct_superclass ( const cdef_class clsa,
const cdef_class clsb 
)

Definition at line 232 of file cdef-utils.cc.

References is_superclass().

Referenced by octave_classdef_superclass_ref::execute().

◆ is_dummy_method()

◆ is_strict_superclass()

bool is_strict_superclass ( const cdef_class clsa,
const cdef_class clsb 
)

Definition at line 226 of file cdef-utils.cc.

References is_superclass().

Referenced by check_access(), and octave_classdef_superclass_ref::execute().

◆ is_superclass()

◆ lookup_class() [1/3]

cdef_class lookup_class ( const cdef_class cls)

Definition at line 89 of file cdef-utils.cc.

◆ lookup_class() [2/3]

cdef_class lookup_class ( const octave_value ov)

◆ lookup_class() [3/3]

◆ lookup_classes()

std::list<cdef_class> lookup_classes ( const Cell cls_list)

Definition at line 113 of file cdef-utils.cc.

References lookup_class(), and Array< T, Alloc >::numel().

Referenced by cdef_object_scalar::mark_for_construction().

◆ lookup_package()

cdef_package lookup_package ( const std::string &  name,
bool  error_if_not_found = true,
bool  load_if_not_found = true 
)

Definition at line 238 of file cdef-utils.cc.

References __get_cdef_manager__(), and cdef_manager::find_package().

Referenced by F__meta_get_package__().

◆ make_function_of_class() [1/2]

void make_function_of_class ( const cdef_class cls,
const octave_value fcn 
)

Definition at line 74 of file cdef-utils.cc.

References cdef_class::get_name(), and make_function_of_class().

◆ make_function_of_class() [2/2]

◆ to_cdef() [1/2]

cdef_object to_cdef ( const cdef_object obj)

Definition at line 161 of file cdef-utils.cc.

◆ to_cdef() [2/2]

◆ to_cdef_ref()

cdef_object& to_cdef_ref ( const octave_value val)

◆ to_ov() [1/3]

◆ to_ov() [2/3]

octave_value to_ov ( const octave_value ov)

Definition at line 137 of file cdef-utils.cc.

◆ to_ov() [3/3]

octave_value to_ov ( const std::list< cdef_class > &  class_list)

Definition at line 167 of file cdef-utils.cc.

References octave_value(), and to_ov().