GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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) | |
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 (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 (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 @qcode{\"global\"} argument is passed, locally visible\n\ functions are ignored in the lookup.\n\ @end deftypefn") | |
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") | |
octave_value | make_fcn_handle (const std::string &nm, bool local_funcs) |
DEFINE_OCTAVE_ALLOCATOR | ( | octave_fcn_handle | ) |
DEFUN | ( | functions | , |
args | |||
) |
Definition at line 1660 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(), octave_fcn_handle::user_function_value(), and vars.
DEFUN | ( | func2str | , |
args | |||
) |
Definition at line 1758 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 | ( | str2func | , |
args | |||
) |
Definition at line 1795 of file ov-fcn-handle.cc.
References error(), error_state, octave_value::length(), make_fcn_handle(), and print_usage().
DEFUN | ( | is_function_handle | , |
args | |||
) |
Definition at line 1838 of file ov-fcn-handle.cc.
References octave_value::is_function_handle(), octave_value::length(), and print_usage().
octave_value make_fcn_handle | ( | const std::string & | nm, |
bool | local_funcs | ||
) |
Definition at line 1434 of file ov-fcn-handle.cc.
References btyp_class_name, btyp_num_types, error(), f, 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(), and load_path::update().
Referenced by DEFUN(), read_mat5_binary_element(), and tree_fcn_handle::rvalue1().