GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <sstream>
#include "file-ops.h"
#include "file-stat.h"
#include "oct-env.h"
#include "oct-time.h"
#include "singleton-cleanup.h"
#include "debug.h"
#include "defun.h"
#include "dirfns.h"
#include "input.h"
#include "load-path.h"
#include "ov-classdef.h"
#include "ov-fcn.h"
#include "ov-usr-fcn.h"
#include "pager.h"
#include "parse.h"
#include "pt-arg-list.h"
#include "symtab.h"
#include "unwind-prot.h"
#include "utils.h"
Go to the source code of this file.
Functions | |
static builtin_type_t(* | build_sup_table (void))[btyp_num_types] |
OCTAVE_EXPORT octave_value_list | F__current_scope__ (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | F__dump_symtab_info__ (const octave_value_list &args, int) |
static std::string | fcn_file_name (const octave_value &fcn) |
OCTAVE_EXPORT octave_value_list | Fignore_function_time_stamp (const octave_value_list &args, int nargout) |
std::string | get_dispatch_type (const octave_value_list &args, builtin_type_t &builtin_type) |
std::string | get_dispatch_type (const octave_value_list &args) |
static bool | load_out_of_date_fcn (const std::string &ff, const std::string &dir_name, octave_value &function, const std::string &dispatch_type=std::string(), const std::string &package_name=std::string()) |
bool | out_of_date_check (octave_value &function, const std::string &dispatch_type, bool check_relative) |
static void | split_name_with_package (const std::string &name, std::string &fname, std::string &pname) |
Variables | |
static int | Vignore_function_time_stamp = 1 |
|
static |
Definition at line 585 of file symtab.cc.
References btyp_bool, btyp_char, btyp_complex, btyp_double, btyp_float, btyp_float_complex, btyp_func_handle, btyp_isarray(), btyp_isinteger(), and btyp_num_types.
Referenced by get_dispatch_type().
OCTAVE_EXPORT octave_value_list F__current_scope__ | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 1733 of file symtab.cc.
References symbol_table::current_context(), and symbol_table::current_scope().
OCTAVE_EXPORT octave_value_list F__dump_symtab_info__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1750 of file symtab.cc.
References arg(), symbol_table::dump(), symbol_table::dump_functions(), symbol_table::dump_global(), error(), error_state, octave_value::int_value(), octave_value::is_string(), octave_value::length(), octave_stdout, print_usage(), symbol_table::scopes(), and octave_value::string_value().
|
static |
Definition at line 1163 of file symtab.cc.
References f, octave_function::fcn_file_name(), and octave_value::function_value().
Referenced by symbol_table::fcn_info::fcn_info_rep::dump(), octave_dld_function::octave_dld_function(), and octave_mex_function::octave_mex_function().
OCTAVE_EXPORT octave_value_list Fignore_function_time_stamp | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 1664 of file symtab.cc.
References error(), octave_value::length(), print_usage(), and octave_value::string_value().
std::string get_dispatch_type | ( | const octave_value_list & | args, |
builtin_type_t & | builtin_type | ||
) |
Definition at line 611 of file symtab.cc.
References arg(), btyp_class_name, btyp_num_types, btyp_unknown, build_sup_table(), octave_value::builtin_type(), octave_value::class_name(), symbol_table::is_superiorto(), and octave_value_list::length().
Referenced by do_class_concat(), octave_fcn_handle::do_multi_index_op(), get_dispatch_type(), and symbol_table::fcn_info::fcn_info_rep::xfind().
std::string get_dispatch_type | ( | const octave_value_list & | args | ) |
Definition at line 669 of file symtab.cc.
References get_dispatch_type().
|
inlinestatic |
Definition at line 185 of file symtab.cc.
References load_fcn_from_file(), and octave_value().
Referenced by out_of_date_check().
bool out_of_date_check | ( | octave_value & | function, |
const std::string & | dispatch_type, | ||
bool | check_relative | ||
) |
Definition at line 208 of file symtab.cc.
References octave_env::absolute_pathname(), octave_function::canonical_name(), octave_function::fcn_file_name(), load_path::find_fcn(), load_path::find_method(), octave_base_value::function_value(), base_file_stat::is_newer(), octave_function::is_relative(), octave_function::is_subfunction(), octave_function::is_system_fcn_file(), load_out_of_date_fcn(), lookup_autoload(), octave_function::mark_fcn_file_up_to_date(), octave_function::name(), octave_value(), octave_function::package_name(), symbol_table::parent_classes(), bp_table::remove_all_breakpoints_in_file(), same_file(), split_name_with_package(), octave_function::time_checked(), octave_function::time_parsed(), octave_time::unix_time(), Vlast_chdir_time, and Vlast_prompt_time.
Referenced by octave_fcn_handle::do_multi_index_op(), symbol_table::fcn_info::fcn_info_rep::find_autoload(), symbol_table::fcn_info::fcn_info_rep::find_method(), symbol_table::fcn_info::fcn_info_rep::find_user_function(), symbol_table::fcn_info::fcn_info_rep::x_builtin_find(), and symbol_table::fcn_info::fcn_info_rep::xfind().
|
static |
Definition at line 154 of file symtab.cc.
Referenced by out_of_date_check().