GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
cdef_method Class Reference

#include "cdef-method.h"

Inheritance diagram for cdef_method:
cdef_meta_object cdef_object

Public Member Functions

 cdef_method ()
 
 cdef_method (const cdef_method &meth)
 
 cdef_method (const cdef_object &obj)
 
 cdef_method (const std::string &nm)
 
 ~cdef_method ()=default
 
bool check_access () const
 
octave_value_list execute (const cdef_object &obj, const octave_value_list &args, int nargout, bool do_check_access=true, const std::string &who="")
 
octave_value_list execute (const octave_value_list &args, int nargout, bool do_check_access=true, const std::string &who="")
 
std::string get_doc_string ()
 
octave_value get_function () const
 
std::string get_name () const
 
bool is_constructor () const
 
bool is_defined_in_class (const std::string &cname) const
 
bool is_external () const
 
bool is_static () const
 
void mark_as_external (const std::string &dtype)
 
cdef_methodoperator= (const cdef_method &meth)
 
void set_function (const octave_value &fcn)
 
- Public Member Functions inherited from cdef_meta_object
 cdef_meta_object ()
 
 cdef_meta_object (cdef_meta_object_rep *r)
 
 cdef_meta_object (const cdef_meta_object &obj)
 
 cdef_meta_object (const cdef_object &obj)
 
 ~cdef_meta_object ()=default
 
std::string doc_string () const
 
void doc_string (const std::string &txt)
 
bool is_class () const
 
bool is_method () const
 
bool is_package () const
 
bool is_property () const
 
bool meta_accepts_postfix_index (char type) const
 
void meta_release ()
 
octave_value_list meta_subsref (const std::string &type, const std::list< octave_value_list > &idx, int nargout)
 
cdef_meta_objectoperator= (const cdef_object &)=delete
 
- Public Member Functions inherited from cdef_object
 cdef_object ()
 
 cdef_object (cdef_object_rep *r)
 
 cdef_object (const cdef_object &obj)
 
virtual ~cdef_object ()
 
Array< cdef_objectarray_value () const
 
void break_closure_cycles (const std::shared_ptr< stack_frame > &frame)
 
std::string class_name () const
 
cdef_object clone () const
 
cdef_object copy () const
 
dim_vector dims () const
 
cdef_object empty_clone () const
 
octave_value get (const std::string &pname) const
 
cdef_class get_class () const
 
octave_value get_property (octave_idx_type idx, const std::string &pname) const
 
const cdef_object_repget_rep () const
 
bool is (const cdef_object &obj) const
 
bool is_array () const
 
bool is_constructed () const
 
bool is_constructed_for (const cdef_class &cls) const
 
bool is_handle_object () const
 
bool is_meta_object () const
 
bool is_partially_constructed_for (const cdef_class &cls) const
 
bool is_value_object () const
 
cdef_object make_array () const
 
string_vector map_keys () const
 
octave_map map_value () const
 
void mark_as_constructed ()
 
void mark_as_constructed (const cdef_class &cls)
 
void mark_for_construction (const cdef_class &cls)
 
bool ok () const
 
cdef_objectoperator= (const cdef_object &obj)
 
void put (const std::string &pname, const octave_value &val)
 
void set_class (const cdef_class &cls)
 
void set_property (octave_idx_type idx, const std::string &pname, const octave_value &pval)
 
octave_value subsasgn (const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs, int ignore_copies=0)
 
octave_value_list subsref (const std::string &type, const std::list< octave_value_list > &idx, int nargout, std::size_t &skip, const cdef_class &context, bool auto_add=false)
 

Friends

class cdef_class
 

Additional Inherited Members

- Protected Member Functions inherited from cdef_object
cdef_object_repget_rep ()
 
void make_unique (int ignore_copies)
 

Detailed Description

Definition at line 42 of file cdef-method.h.

Constructor & Destructor Documentation

◆ cdef_method() [1/4]

cdef_method::cdef_method ( )
inline

Definition at line 135 of file cdef-method.h.

◆ cdef_method() [2/4]

cdef_method::cdef_method ( const std::string &  nm)
inline

Definition at line 137 of file cdef-method.h.

◆ cdef_method() [3/4]

cdef_method::cdef_method ( const cdef_method meth)
inline

Definition at line 143 of file cdef-method.h.

◆ cdef_method() [4/4]

cdef_method::cdef_method ( const cdef_object obj)
inline

Definition at line 145 of file cdef-method.h.

References cdef_object::class_name(), error(), and cdef_meta_object::is_method().

◆ ~cdef_method()

cdef_method::~cdef_method ( )
default

Member Function Documentation

◆ check_access()

bool cdef_method::check_access ( ) const
inline

Definition at line 180 of file cdef-method.h.

◆ execute() [1/2]

octave_value_list cdef_method::execute ( const cdef_object obj,
const octave_value_list args,
int  nargout,
bool  do_check_access = true,
const std::string &  who = "" 
)
inline

Definition at line 172 of file cdef-method.h.

◆ execute() [2/2]

octave_value_list cdef_method::execute ( const octave_value_list args,
int  nargout,
bool  do_check_access = true,
const std::string &  who = "" 
)
inline

Definition at line 164 of file cdef-method.h.

Referenced by cdef_object_scalar::subsref().

◆ get_doc_string()

std::string cdef_method::get_doc_string ( )
inline

Definition at line 196 of file cdef-method.h.

◆ get_function()

octave_value cdef_method::get_function ( ) const
inline

Definition at line 191 of file cdef-method.h.

Referenced by tree_evaluator::get_user_code().

◆ get_name()

std::string cdef_method::get_name ( ) const
inline

Definition at line 182 of file cdef-method.h.

◆ is_constructor()

bool cdef_method::is_constructor ( ) const
inline

Definition at line 201 of file cdef-method.h.

◆ is_defined_in_class()

bool cdef_method::is_defined_in_class ( const std::string &  cname) const
inline

Definition at line 206 of file cdef-method.h.

◆ is_external()

bool cdef_method::is_external ( ) const
inline

Definition at line 211 of file cdef-method.h.

◆ is_static()

bool cdef_method::is_static ( ) const
inline

Definition at line 184 of file cdef-method.h.

Referenced by cdef_object_scalar::subsref().

◆ mark_as_external()

void cdef_method::mark_as_external ( const std::string &  dtype)
inline

Definition at line 213 of file cdef-method.h.

Referenced by cdef_manager::make_method().

◆ operator=()

cdef_method& cdef_method::operator= ( const cdef_method meth)
inline

Definition at line 154 of file cdef-method.h.

References cdef_object::operator=().

◆ set_function()

void cdef_method::set_function ( const octave_value fcn)
inline

Definition at line 186 of file cdef-method.h.

Referenced by cdef_manager::make_method().

Friends And Related Function Documentation

◆ cdef_class

friend class cdef_class
friend

Definition at line 46 of file cdef-method.h.


The documentation for this class was generated from the following file: