26 #if ! defined (octave_ov_fcn_h)
27 #define octave_ov_fcn_h 1
29 #include "octave-config.h"
57 : relative (false), locked (false), private_function (false),
58 xdispatch_class (), xpackage_name (), my_name (), my_dir_name (),
92 return std::list<std::string> ();
115 return (is_classdef_constructor (cname) || is_legacy_constructor (cname));
120 return (is_classdef_method (cname) || is_legacy_method (cname));
160 private_function =
true;
161 xdispatch_class = cname;
167 {
return private_function && xdispatch_class == nm; }
173 std::string
dir_name (
void)
const {
return my_dir_name; }
179 this->lock_subfunctions ();
185 this->unlock_subfunctions ();
207 return std::list<std::string> ();
214 std::string
name (
void)
const {
return my_name; }
218 if (xpackage_name.empty ())
221 return xpackage_name +
'.' + my_name;
224 void document (
const std::string& ds) { doc = ds; }
237 {
return (
type ==
'('); }
253 const std::string& ds =
"")
254 : relative (false), locked (false), private_function (false),
255 xdispatch_class (), my_name (nm), my_dir_name (), doc (ds) { }
std::string xpackage_name
virtual bool handles_dispatch_class(const std::string &) const
std::string dispatch_class(void) const
virtual int call_depth(void) const
virtual bool is_anonymous_function_of_class(const std::string &="") const
virtual std::string fcn_file_name(void) const
virtual std::string profiler_name(void) const
bool is_private_function(void) const
octave_function(const std::string &nm, const std::string &ds="")
~octave_function(void)=default
virtual octave::symbol_scope scope(void)
virtual bool is_legacy_constructor(const std::string &="") const
virtual octave::sys::time time_parsed(void) const
virtual octave_value_list execute(octave::tree_evaluator &tw, int nargout=0, const octave_value_list &args=octave_value_list())=0
octave_function(const octave_function &f)=delete
bool is_relative(void) const
std::string dir_name(void) const
std::string package_name(void) const
virtual void unload(void)
bool is_class_method(const std::string &cname="") const
virtual bool is_parent_function(void) const
bool is_class_constructor(const std::string &cname="") const
virtual std::string doc_string(const std::string &="") const
bool is_function(void) const
virtual std::list< std::string > subfunction_names(void) const
virtual void lock_subfunctions(void)
virtual bool has_subfunctions(void) const
virtual std::string src_file_name(void) const
virtual void maybe_relocate_end(void)
virtual void unlock_subfunctions(void)
virtual void push_dispatch_class(const std::string &)
virtual bool is_subfunction(void) const
virtual bool is_classdef_constructor(const std::string &="") const
std::string xdispatch_class
std::string canonical_name(void) const
virtual bool takes_varargs(void) const
virtual std::list< std::string > parent_fcn_names(void) const
virtual bool accepts_postfix_index(char type) const
bool islocked(void) const
void document(const std::string &ds)
virtual std::string parent_fcn_name(void) const
void stash_dir_name(const std::string &dir)
virtual bool is_legacy_method(const std::string &="") const
virtual bool is_classdef_method(const std::string &="") const
virtual octave::sys::time time_checked(void) const
virtual octave::symbol_scope parent_fcn_scope(void) const
virtual bool takes_var_return(void) const
virtual void mark_fcn_file_up_to_date(const octave::sys::time &)
void stash_dispatch_class(const std::string &nm)
bool is_private_function_of_class(const std::string &nm) const
virtual void mark_as_private_function(const std::string &cname="")
std::string name(void) const
virtual bool is_nested_function(void) const
virtual bool is_system_fcn_file(void) const
void stash_package_name(const std::string &pack)
virtual void accept(octave::tree_walker &)
bool is_defined(void) const
virtual void stash_subfunction_names(const std::list< std::string > &)
F77_RET_T const F77_DBLE const F77_DBLE * f