#include <iostream>
#include <sstream>
#include <vector>
#include "file-ops.h"
#include "oct-locbuf.h"
#include "defun.h"
#include "error.h"
#include "gripes.h"
#include "input.h"
#include "oct-map.h"
#include "ov-base.h"
#include "ov-fcn-handle.h"
#include "ov-usr-fcn.h"
#include "pr-output.h"
#include "pt-pr-code.h"
#include "pt-misc.h"
#include "pt-stmt.h"
#include "pt-cmd.h"
#include "pt-exp.h"
#include "pt-assign.h"
#include "pt-arg-list.h"
#include "variables.h"
#include "parse.h"
#include "unwind-prot.h"
#include "defaults.h"
#include "file-stat.h"
#include "load-path.h"
#include "oct-env.h"
#include "byte-swap.h"
#include "ls-ascii-helper.h"
#include "ls-hdf5.h"
#include "ls-oct-ascii.h"
#include "ls-oct-binary.h"
#include "ls-utils.h"
Go to the source code of this file.
Functions | |
DEFINE_OCTAVE_ALLOCATOR (octave_fcn_handle) | |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_fcn_handle,"function handle","function_handle") | |
DEFUN (is_function_handle, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} is_function_handle (@var{x})\n\ Return true if @var{x} is a function handle.\n\ @seealso{isa, typeinfo, class}\n\ @end deftypefn") | |
DEFUN (func2str, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} func2str (@var{fcn_handle})\n\ Return a string containing the name of the function referenced by\n\ the function handle @var{fcn_handle}.\n\ @end deftypefn") | |
DEFUN (functions, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} functions (@var{fcn_handle})\n\ Return a struct containing information about the function handle\n\ @var{fcn_handle}.\n\ @end deftypefn") | |
DEFUN (str2func, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} str2func (@var{fcn_name})\n\ @deftypefnx {Built-in Function} {} str2func (@var{fcn_name}, \"global\")\n\ Return a function handle constructed from the string @var{fcn_name}.\n\ If the optional \"global\" argument is passed, locally visible functions\n\ are ignored in the lookup.\n\ @end deftypefn") | |
octave_value | make_fcn_handle (const std::string &nm, bool local_funcs) |
DEFINE_OCTAVE_ALLOCATOR | ( | octave_fcn_handle | ) |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA | ( | octave_fcn_handle | , | |
"function handle" | , | |||
"function_handle" | ||||
) |
DEFUN | ( | is_function_handle | , | |
args | ||||
) |
Definition at line 1779 of file ov-fcn-handle.cc.
References octave_value::is_function_handle(), and print_usage().
DEFUN | ( | func2str | , | |
args | ||||
) |
Definition at line 1697 of file ov-fcn-handle.cc.
References octave_fcn_handle::anonymous, error(), error_state, octave_fcn_handle::fcn_handle_value(), octave_fcn_handle::fcn_name(), octave_fcn_handle::print_raw(), and print_usage().
DEFUN | ( | functions | , | |
args | ||||
) |
Definition at line 1599 of file ov-fcn-handle.cc.
References symbol_table::all_variables(), octave_fcn_handle::anonymous, octave_scalar_map::assign(), Array< T >::elem(), error(), error_state, octave_function::fcn_file_name(), octave_fcn_handle::fcn_handle_value(), octave_fcn_handle::fcn_name(), octave_fcn_handle::function_value(), octave_fcn_handle::is_overloaded(), octave_function::is_private_function(), octave_function::is_subfunction(), octave_base_value::is_user_function(), octave_base_value::is_user_script(), octave_function::parent_fcn_name(), octave_fcn_handle::print_raw(), print_usage(), octave_user_function::scope(), octave_scalar_map::setfield(), and octave_fcn_handle::user_function_value().
DEFUN | ( | str2func | , | |
args | ||||
) |
Definition at line 1734 of file ov-fcn-handle.cc.
References error(), error_state, make_fcn_handle(), and print_usage().
octave_value make_fcn_handle | ( | const std::string & | nm, | |
bool | local_funcs | |||
) |
Definition at line 1373 of file ov-fcn-handle.cc.
References btyp_class_name, error(), symbol_table::find_function(), symbol_table::find_method(), octave_value::function_value(), octave_function::is_class_constructor(), octave_function::is_private_function(), octave_function::is_subfunction(), octave_value::length(), octave_value(), load_path::overloads(), octave_fcn_handle::set_overload(), octave_base_value::size(), and load_path::update().
Referenced by DEFUN(), read_mat5_binary_element(), and tree_fcn_handle::rvalue1().