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

#include "cdef-method.h"

Inheritance diagram for octave::cdef_method:
Collaboration diagram for octave::cdef_method:

Classes

class  cdef_method_rep
 

Public Member Functions

 cdef_method (const cdef_method &meth)
 
 cdef_method (const cdef_object &obj)
 
 cdef_method (const std::string &nm)
 
 cdef_method (void)
 
 ~cdef_method (void)=default
 
Array< cdef_objectarray_value (void) const
 
bool check_access (void) const
 
std::string class_name (void) const
 
cdef_object clone (void) const
 
cdef_object copy (void) const
 
dim_vector dims (void) const
 
cdef_object empty_clone (void) 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="")
 
octave_value get (const std::string &pname) const
 
cdef_class get_class (void) const
 
std::string get_doc_string (void)
 
octave_value get_function (void) const
 
std::string get_name (void) const
 
octave_value get_property (octave_idx_type idx, const std::string &pname) const
 
bool is (const cdef_object &obj) const
 
bool is_array (void) const
 
bool is_class (void) const
 
bool is_constructed (void) const
 
bool is_constructed_for (const cdef_class &cls) const
 
bool is_constructor (void) const
 
bool is_defined_in_class (const std::string &cname) const
 
bool is_external (void) const
 
bool is_handle_object (void) const
 
bool is_meta_object (void) const
 
bool is_method (void) const
 
bool is_package (void) const
 
bool is_partially_constructed_for (const cdef_class &cls) const
 
bool is_property (void) const
 
bool is_static (void) const
 
bool is_value_object (void) const
 
cdef_object make_array (void) const
 
string_vector map_keys (void) const
 
octave_map map_value (void) const
 
void mark_as_constructed (const cdef_class &cls)
 
void mark_as_constructed (void)
 
void mark_as_external (const std::string &dtype)
 
void mark_for_construction (const cdef_class &cls)
 
bool meta_accepts_postfix_index (char type) const
 
void meta_release (void)
 
octave_value_list meta_subsref (const std::string &type, const std::list< octave_value_list > &idx, int nargout)
 
bool ok (void) const
 
cdef_methodoperator= (const cdef_method &meth)
 
void put (const std::string &pname, const octave_value &val)
 
void set_class (const cdef_class &cls)
 
void set_function (const octave_value &fcn)
 
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, size_t &skip, const cdef_class &context, bool auto_add=false)
 

Protected Member Functions

void make_unique (int ignore_copies)
 

Private Member Functions

cdef_method_repget_rep (void)
 
const cdef_method_repget_rep (void) const
 

Private Attributes

cdef_object_reprep
 

Friends

class cdef_class
 

Detailed Description

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

Constructor & Destructor Documentation

◆ cdef_method() [1/4]

octave::cdef_method::cdef_method ( void  )
inline

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

◆ cdef_method() [2/4]

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

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

◆ cdef_method() [3/4]

octave::cdef_method::cdef_method ( const cdef_method meth)
inline

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

◆ cdef_method() [4/4]

octave::cdef_method::cdef_method ( const cdef_object obj)
inline

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

References error().

◆ ~cdef_method()

octave::cdef_method::~cdef_method ( void  )
default

Member Function Documentation

◆ array_value()

Array<cdef_object> octave::cdef_object::array_value ( void  ) const
inlineinherited

◆ check_access()

bool octave::cdef_method::check_access ( void  ) const
inline

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

Referenced by octave::cdef_method::cdef_method_rep::execute().

◆ class_name()

std::string octave::cdef_object::class_name ( void  ) const
inlineinherited

◆ clone()

cdef_object octave::cdef_object::clone ( void  ) const
inlineinherited

Definition at line 230 of file cdef-object.h.

◆ copy()

cdef_object octave::cdef_object::copy ( void  ) const
inlineinherited

Definition at line 244 of file cdef-object.h.

Referenced by octave::cdef_object_array::fill_empty_values().

◆ dims()

dim_vector octave::cdef_object::dims ( void  ) const
inlineinherited

Definition at line 237 of file cdef-object.h.

◆ empty_clone()

cdef_object octave::cdef_object::empty_clone ( void  ) const
inlineinherited

Definition at line 232 of file cdef-object.h.

◆ execute() [1/2]

octave_value_list octave::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 171 of file cdef-method.h.

◆ execute() [2/2]

◆ get()

◆ get_class()

◆ get_doc_string()

std::string octave::cdef_method::get_doc_string ( void  )
inline

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

Referenced by octave_classdef_meta::doc_string().

◆ get_function()

octave_value octave::cdef_method::get_function ( void  ) const
inline

◆ get_name()

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

◆ get_property()

octave_value octave::cdef_object::get_property ( octave_idx_type  idx,
const std::string &  pname 
) const
inlineinherited

Definition at line 273 of file cdef-object.h.

◆ get_rep() [1/2]

cdef_method_rep* octave::cdef_method::get_rep ( void  )
inlineprivate

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

References octave::cdef_object::get_rep().

◆ get_rep() [2/2]

const cdef_method_rep* octave::cdef_method::get_rep ( void  ) const
inlineprivate

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

References octave::cdef_object::get_rep().

◆ is()

bool octave::cdef_object::is ( const cdef_object obj) const
inlineinherited

◆ is_array()

bool octave::cdef_object::is_array ( void  ) const
inlineinherited

◆ is_class()

bool octave::cdef_meta_object::is_class ( void  ) const
inlineinherited

Definition at line 658 of file cdef-object.h.

◆ is_constructed()

bool octave::cdef_object::is_constructed ( void  ) const
inlineinherited

◆ is_constructed_for()

bool octave::cdef_object::is_constructed_for ( const cdef_class cls) const
inlineinherited

Definition at line 309 of file cdef-object.h.

◆ is_constructor()

bool octave::cdef_method::is_constructor ( void  ) const
inline

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

Referenced by octave::cdef_class::cdef_class_rep::install_method().

◆ is_defined_in_class()

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

◆ is_external()

bool octave::cdef_method::is_external ( void  ) const
inline

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

◆ is_handle_object()

bool octave::cdef_object::is_handle_object ( void  ) const
inlineinherited

Definition at line 250 of file cdef-object.h.

◆ is_meta_object()

bool octave::cdef_object::is_meta_object ( void  ) const
inlineinherited

Definition at line 252 of file cdef-object.h.

◆ is_method()

bool octave::cdef_meta_object::is_method ( void  ) const
inlineinherited

Definition at line 662 of file cdef-object.h.

◆ is_package()

bool octave::cdef_meta_object::is_package ( void  ) const
inlineinherited

Definition at line 664 of file cdef-object.h.

◆ is_partially_constructed_for()

bool octave::cdef_object::is_partially_constructed_for ( const cdef_class cls) const
inlineinherited

◆ is_property()

bool octave::cdef_meta_object::is_property ( void  ) const
inlineinherited

Definition at line 660 of file cdef-object.h.

◆ is_static()

bool octave::cdef_method::is_static ( void  ) const
inline

◆ is_value_object()

bool octave::cdef_object::is_value_object ( void  ) const
inlineinherited

Definition at line 248 of file cdef-object.h.

◆ make_array()

cdef_object octave::cdef_object::make_array ( void  ) const
inlineinherited

Definition at line 239 of file cdef-object.h.

◆ make_unique()

void octave::cdef_object::make_unique ( int  ignore_copies)
inlineprotectedinherited

Definition at line 330 of file cdef-object.h.

◆ map_keys()

string_vector octave::cdef_object::map_keys ( void  ) const
inlineinherited

Definition at line 294 of file cdef-object.h.

◆ map_value()

◆ mark_as_constructed() [1/2]

void octave::cdef_object::mark_as_constructed ( const cdef_class cls)
inlineinherited

Definition at line 321 of file cdef-object.h.

◆ mark_as_constructed() [2/2]

void octave::cdef_object::mark_as_constructed ( void  )
inlineinherited

Definition at line 319 of file cdef-object.h.

Referenced by octave::cdef_class::cdef_class_rep::run_constructor().

◆ mark_as_external()

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

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

Referenced by octave::cdef_manager::make_method().

◆ mark_for_construction()

void octave::cdef_object::mark_for_construction ( const cdef_class cls)
inlineinherited

◆ meta_accepts_postfix_index()

bool octave::cdef_meta_object::meta_accepts_postfix_index ( char  type) const
inlineinherited

Definition at line 675 of file cdef-object.h.

◆ meta_release()

void octave::cdef_meta_object::meta_release ( void  )
inlineinherited

Definition at line 673 of file cdef-object.h.

◆ meta_subsref()

octave_value_list octave::cdef_meta_object::meta_subsref ( const std::string &  type,
const std::list< octave_value_list > &  idx,
int  nargout 
)
inlineinherited

Definition at line 667 of file cdef-object.h.

◆ ok()

◆ operator=()

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

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

References octave::cdef_object::operator=().

◆ put()

◆ set_class()

◆ set_function()

void octave::cdef_method::set_function ( const octave_value fcn)
inline

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

Referenced by octave::cdef_manager::make_method().

◆ set_property()

void octave::cdef_object::set_property ( octave_idx_type  idx,
const std::string &  pname,
const octave_value pval 
)
inlineinherited

Definition at line 266 of file cdef-object.h.

◆ subsasgn()

octave_value octave::cdef_object::subsasgn ( const std::string &  type,
const std::list< octave_value_list > &  idx,
const octave_value rhs,
int  ignore_copies = 0 
)
inlineinherited

◆ subsref()

octave_value_list octave::cdef_object::subsref ( const std::string &  type,
const std::list< octave_value_list > &  idx,
int  nargout,
size_t &  skip,
const cdef_class context,
bool  auto_add = false 
)
inlineinherited

Definition at line 279 of file cdef-object.h.

References octave::context.

Referenced by octave::cdef_object_scalar::subsref().

Friends And Related Function Documentation

◆ cdef_class

friend class cdef_class
friend

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

Member Data Documentation

◆ rep

cdef_object_rep* octave::cdef_object::rep
privateinherited

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