Mercurial > octave
diff libinterp/octave-value/cdef-method.h @ 28515:49f4d7814760 stable
find help for not-yet-loaded classdef methods defined in @DIR files.
* cdef-method.h, cdef-method.cc (cdef_method::get_doc_string,
(cdef_method::cdef_method_rep::get_doc_string): New methods.
* ov-classdef.cc (octave_classdef_meta::doc_string): Use find_method
to lookup classdef method definition instead of instead of
get_method. If method is defined, use cdef_method::get_doc_string to
access doc string.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 29 Jun 2020 15:01:27 -0400 |
parents | bd51beb6205e |
children | 853e60367cb6 0a5b15007766 |
line wrap: on
line diff
--- a/libinterp/octave-value/cdef-method.h Fri May 29 10:57:04 2020 -0400 +++ b/libinterp/octave-value/cdef-method.h Mon Jun 29 15:01:27 2020 -0400 @@ -73,6 +73,8 @@ void set_function (const octave_value& fcn) { function = fcn; } + std::string get_doc_string (void); + bool check_access (void) const; bool is_external (void) const { return ! dispatch_type.empty (); } @@ -190,6 +192,11 @@ return get_rep ()->get_function (); } + std::string get_doc_string (void) + { + return get_rep ()->get_doc_string (); + } + bool is_constructor (void) const { return get_rep ()->is_constructor ();