#include <sstream>
#include "file-info.h"
#include "file-ops.h"
#include "file-stat.h"
#include "str-vec.h"
#include "builtin-defun-decls.h"
#include "defaults.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "input.h"
#include "ovl.h"
#include "ov-usr-fcn.h"
#include "ov.h"
#include "pager.h"
#include "pt-eval.h"
#include "pt-jump.h"
#include "pt-misc.h"
#include "pt-pr-code.h"
#include "pt-stmt.h"
#include "pt-walk.h"
#include "symtab.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "unwind-prot.h"
#include "utils.h"
#include "parse.h"
#include "profiler.h"
#include "variables.h"
#include "ov-fcn-handle.h"
Go to the source code of this file.
Functions | |
OCTAVE_EXPORT octave_value_list | Fisargout (octave::interpreter &interp, const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fnargin (octave::interpreter &interp, const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fnargout (octave::interpreter &interp, const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Foptimize_subsasgn_calls (const octave_value_list &args, int nargout) |
static bool | isargout1 (int nargout, const Matrix &ignored, double k) |
static bool | val_in_table (const Matrix &table, double val) |
Variables | |
static bool | Voptimize_subsasgn_calls = true |
OCTAVE_EXPORT octave_value_list Fisargout | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 922 of file ov-usr-fcn.cc.
References Array< T, Alloc >::dims(), err_wrong_type_arg(), error(), tree_evaluator::get_auto_fcn_var(), stack_frame::IGNORED, octave_value::int_value(), octave_value::is_defined(), isargout1(), octave_value::matrix_value(), stack_frame::NARGOUT, Array< T, Alloc >::numel(), ovl(), print_usage(), and r.
OCTAVE_EXPORT octave_value_list Fnargin | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 684 of file ov-usr-fcn.cc.
References error(), symbol_table::find_function(), octave_value::function_value(), tree_evaluator::get_auto_fcn_var(), octave_value::is_string(), octave_value::is_undefined(), base_list< elt_type >::length(), stack_frame::NARGIN, octave_user_function::parameter_list(), print_usage(), octave_value::string_value(), octave_user_function::takes_varargs(), octave_base_value::type_name(), and octave_base_value::user_function_value().
OCTAVE_EXPORT octave_value_list Fnargout | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 795 of file ov-usr-fcn.cc.
References error(), octave_value::fcn_handle_value(), symbol_table::find_function(), octave_value::function_value(), tree_evaluator::get_auto_fcn_var(), octave_fcn_handle::is_anonymous(), octave_value::is_function_handle(), octave_value::is_inline_function(), octave_value::is_string(), octave_value::is_undefined(), base_list< elt_type >::length(), stack_frame::NARGOUT, ovl(), print_usage(), octave_user_function::return_list(), octave_value::string_value(), octave_user_function::takes_var_return(), octave_base_value::type_name(), and octave_base_value::user_function_value().
OCTAVE_EXPORT octave_value_list Foptimize_subsasgn_calls | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 883 of file ov-usr-fcn.cc.
References set_internal_variable(), and Voptimize_subsasgn_calls.
|
static |
Definition at line 898 of file ov-usr-fcn.cc.
References error(), fix(), and val_in_table().
Referenced by Fisargout().
|
static |
Definition at line 889 of file ov-usr-fcn.cc.
References ASCENDING, Array< T, Alloc >::isempty(), and Array< T, Alloc >::lookup().
Referenced by isargout1().
|
static |
Definition at line 65 of file ov-usr-fcn.cc.
Referenced by Foptimize_subsasgn_calls(), and octave_user_function::subsasgn_optimization_ok().