26 #if ! defined (octave_pt_fcn_handle_h)
27 #define octave_pt_fcn_handle_h 1
29 #include "octave-config.h"
62 void print (std::ostream& os,
bool pr_as_read_syntax =
false,
63 bool pr_orig_txt =
true);
65 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false,
66 bool pr_orig_txt =
true);
68 std::string
name ()
const {
return m_name; }
78 return ovl (evaluate (tw, nargout));
98 m_expression (nullptr), m_scope (
symbol_scope::anonymous ()),
99 m_parent_scope (
symbol_scope::invalid ()), m_file_name ()
105 int l = -1,
int c = -1)
118 return m_parameter_list;
159 std::string m_file_name;
162 OCTAVE_END_NAMESPACE(
octave)
octave_value evaluate(tree_evaluator &tw, int nargout=1)
symbol_scope scope() const
symbol_scope parent_scope() const
bool has_parent_scope() const
tree_anon_fcn_handle(int l=-1, int c=-1)
octave_value_list evaluate_n(tree_evaluator &tw, int nargout=1)
tree_anon_fcn_handle(tree_parameter_list *pl, tree_expression *ex, const symbol_scope &scope, const symbol_scope &parent_scope, int l=-1, int c=-1)
void accept(tree_walker &tw)
tree_parameter_list * parameter_list() const
std::string file_name() const
tree_expression * expression() const
void stash_file_name(const std::string &file)
tree_expression * dup(symbol_scope &scope) const
tree_fcn_handle(int l=-1, int c=-1)
~tree_fcn_handle()=default
tree_fcn_handle(const std::string &n, int l=-1, int c=-1)
octave_value_list evaluate_n(tree_evaluator &tw, int nargout=1)
void accept(tree_walker &tw)
virtual void visit_fcn_handle(tree_fcn_handle &)
virtual void visit_anon_fcn_handle(tree_anon_fcn_handle &)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.