26#if ! defined (octave_pt_fcn_handle_h)
27#define octave_pt_fcn_handle_h 1
29#include "octave-config.h"
64 void print (std::ostream& os,
bool pr_as_read_syntax =
false,
65 bool pr_orig_txt =
true);
67 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false,
68 bool pr_orig_txt =
true);
72 std::string
name ()
const {
return m_name; }
82 return ovl (evaluate (tw, nargout));
103 : m_at_tok (at_tok), m_parameter_list (pl), m_expression (ex), m_scope (scope), m_parent_scope (parent_scope)
122 return m_parameter_list;
139 return ovl (evaluate (tw, nargout));
165 std::string m_file_name;
168OCTAVE_END_NAMESPACE(octave)
comment_list leading_comments() const
tree_parameter_list * parameter_list() const
symbol_scope scope() const
symbol_scope parent_scope() const
bool has_parent_scope() const
comment_list trailing_comments() 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)
virtual octave_value evaluate(tree_evaluator &tw, int nargout=1)=0
virtual tree_expression * dup(symbol_scope &scope) const =0
tree_fcn_handle(const token &tok)
comment_list leading_comments() const
~tree_fcn_handle()=default
comment_list trailing_comments() const
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.