GNU Octave  8.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"
Include dependency graph for cdef-utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Function Documentation

◆ check_access()

◆ get_base_name()

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

◆ get_class_context() [1/2]

◆ get_class_context() [2/2]

OCTINTERP_API cdef_class get_class_context ( void  )

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

References get_class_context().

◆ is_direct_superclass()

OCTINTERP_API 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()

OCTINTERP_API 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()

OCTINTERP_API bool is_superclass ( const cdef_class clsa,
const cdef_class clsb,
bool  allow_equal = true,
int  max_depth = -1 
)

◆ lookup_class() [1/3]

OCTINTERP_API cdef_class lookup_class ( const cdef_class cls)

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

◆ lookup_class() [2/3]

OCTINTERP_API cdef_class lookup_class ( const octave_value ov)

◆ lookup_class() [3/3]

◆ lookup_classes()

◆ lookup_package()

OCTINTERP_API 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__(), and package_fromName().

◆ make_function_of_class() [1/2]

OCTINTERP_API 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]

OCTINTERP_API cdef_object to_cdef ( const cdef_object obj)

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

◆ to_cdef() [2/2]

◆ to_cdef_ref()

OCTINTERP_API cdef_object& to_cdef_ref ( const octave_value val)

◆ to_ov() [1/3]

◆ to_ov() [2/3]

OCTINTERP_API octave_value to_ov ( const octave_value ov)

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

◆ to_ov() [3/3]

OCTINTERP_API 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().