26#if ! defined (octave_pt_fcn_handle_h)
27#define octave_pt_fcn_handle_h 1
29#include "octave-config.h"
61 void print (std::ostream& os,
bool pr_as_read_syntax =
false,
62 bool pr_orig_txt =
true);
64 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false,
65 bool pr_orig_txt =
true);
67 std::string
name ()
const {
return m_name; }
77 return ovl (evaluate (tw, nargout));
98 : m_at_tok (at_tok), m_parameter_list (pl), m_expression (ex), m_scope (
scope), m_parent_scope (
parent_scope)
112 return m_parameter_list;
155 std::string m_file_name;
158OCTAVE_END_NAMESPACE(octave)
octave_value evaluate(tree_evaluator &tw, int nargout=1)
tree_parameter_list * parameter_list() const
symbol_scope scope() const
symbol_scope parent_scope() const
bool has_parent_scope() const
octave_value_list evaluate_n(tree_evaluator &tw, int nargout=1)
tree_anon_fcn_handle(const token &at_tok, tree_parameter_list *pl, tree_expression *ex, const symbol_scope &scope, const symbol_scope &parent_scope)
tree_expression * expression() const
void accept(tree_walker &tw)
std::string file_name() const
void stash_file_name(const std::string &file)
tree_expression * dup(symbol_scope &scope) const
tree_fcn_handle(const token &tok)
~tree_fcn_handle()=default
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 &)
virtual filepos end_pos() const =0
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.