GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
interpreter Class Reference

#include "interpreter.h"

Public Member Functions

 interpreter (application *app_context=nullptr)
 
 ~interpreter ()
 
void add_atexit_fcn (const std::string &fname)
 
void add_debug_watch_expression (const std::string &expr)
 
void assign (const std::string &name, const octave_value &val=octave_value())
 
void assignin (const std::string &context, const std::string &varname, const octave_value &val=octave_value())
 
bool at_top_level () const
 
std::list< std::string > autoloaded_functions () const
 
void cancel_quit (bool flag)
 
int chdir (const std::string &dir)
 
void cleanup_tmp_files ()
 
void clear_all (bool force=false)
 
void clear_debug_watch_expressions ()
 
void clear_function (const std::string &name)
 
void clear_function_pattern (const std::string &pat)
 
void clear_function_regexp (const std::string &pat)
 
void clear_functions (bool force=false)
 
void clear_global_variable (const std::string &name)
 
void clear_global_variable_pattern (const std::string &pattern)
 
void clear_global_variable_regexp (const std::string &pattern)
 
void clear_global_variables ()
 
void clear_objects ()
 
void clear_symbol (const std::string &name)
 
void clear_symbol_pattern (const std::string &pat)
 
void clear_symbol_regexp (const std::string &pat)
 
void clear_variable (const std::string &name)
 
void clear_variable_pattern (const std::string &pattern)
 
void clear_variable_regexp (const std::string &pattern)
 
void clear_variables ()
 
std::set< std::string > debug_watch_expressions () const
 
octave_value_list eval (const std::string &try_code, const std::string &catch_code, int nargout)
 
octave_value_list eval (const std::string &try_code, int nargout)
 
octave_value_list eval_string (const octave_value &arg, bool silent, int &parse_status, int nargout)
 
octave_value eval_string (const std::string &eval_str, bool silent, int &parse_status)
 
octave_value_list eval_string (const std::string &eval_str, bool silent, int &parse_status, int nargout)
 
octave_value_list evalin (const std::string &context, const std::string &try_code, const std::string &catch_code, int nargout)
 
octave_value_list evalin (const std::string &context, const std::string &try_code, int nargout)
 
int execute ()
 
bool executing_finish_script () const
 
bool experimental_terminal_widget () const
 
octave_value_list feval (const char *name, const octave_value_list &args=octave_value_list(), int nargout=0)
 Evaluate an Octave function (built-in or interpreted) and return the list of result values.
 
octave_value_list feval (const octave_value &f_arg, const octave_value_list &args=octave_value_list(), int nargout=0)
 
octave_value_list feval (const octave_value_list &args, int nargout=0)
 Evaluate an Octave function (built-in or interpreted) and return the list of result values.
 
octave_value_list feval (const std::string &name, const octave_value_list &args=octave_value_list(), int nargout=0)
 
octave_value_list feval (octave_function *fcn, const octave_value_list &args=octave_value_list(), int nargout=0)
 
octave_value find (const std::string &name)
 
applicationget_app_context ()
 
cdef_managerget_cdef_manager ()
 
child_listget_child_list ()
 
symbol_scope get_current_scope () const
 
display_infoget_display_info ()
 
dynamic_loaderget_dynamic_loader ()
 
environmentget_environment ()
 
error_systemget_error_system ()
 
tree_evaluatorget_evaluator ()
 
event_managerget_event_manager ()
 
gh_managerget_gh_manager ()
 
gtk_managerget_gtk_manager ()
 
help_systemget_help_system ()
 
history_systemget_history_system ()
 
input_systemget_input_system ()
 
void get_line_and_eval ()
 
load_pathget_load_path ()
 
load_save_systemget_load_save_system ()
 
output_systemget_output_system ()
 
profilerget_profiler ()
 
settingsget_settings ()
 
stream_listget_stream_list ()
 
symbol_tableget_symbol_table ()
 
symbol_scope get_top_scope () const
 
type_infoget_type_info ()
 
url_handle_managerget_url_handle_manager ()
 
void global_assign (const std::string &name, const octave_value &val=octave_value())
 
std::list< std::string > global_variable_names ()
 
octave_value global_varval (const std::string &name) const
 
void handle_exception (const execution_exception &ee)
 
bool in_top_level_repl () const
 
void inhibit_startup_message (bool flag)
 
void init_trace (bool flag)
 
void initialize ()
 
void initialize_history (bool read_history_file=false)
 
void initialize_load_path (bool set_initial_path=true)
 
bool initialized () const
 
std::string inputname (int n, bool ids_only=true) const
 
void install_variable (const std::string &name, const octave_value &value, bool global)
 
bool interactive () const
 
void interactive (bool arg)
 
void intern_nargin (octave_idx_type nargs)
 
void interrupt ()
 
bool interrupt_all_in_process_group () const
 
void interrupt_all_in_process_group (bool b)
 
bool is_initialized () const
 
bool is_local_variable (const std::string &name) const
 
bool is_variable (const std::string &name) const
 
bool isglobal (const std::string &name) const
 
octave_value make_function_handle (const std::string &name)
 
void mark_for_deletion (const std::string &file)
 
std::string mfilename (const std::string &opt="") const
 
bool mislocked (bool skip_first=false) const
 
bool mislocked (const char *nm)
 
bool mislocked (const std::string &nm)
 
void mlock (bool skip_first=false) const
 
void munlock (bool skip_first=false) const
 
void munlock (const char *nm)
 
void munlock (const std::string &nm)
 
void parse_and_execute (const std::string &input, bool &incomplete_parse)
 
void pause ()
 
std::string PS1 () const
 
octave_value PS1 (const octave_value_list &args, int nargout)
 
std::string PS1 (const std::string &s)
 
std::string PS2 () const
 
octave_value PS2 (const octave_value_list &args, int nargout)
 
std::string PS2 (const std::string &s)
 
std::string PS4 () const
 
octave_value PS4 (const octave_value_list &args, int nargout)
 
std::string PS4 (const std::string &s)
 
void quit (int exit_status, bool force=false, bool confirm=true)
 
void read_init_files (bool flag)
 
void read_site_files (bool flag)
 
void read_user_files (bool flag)
 
void recover_from_exception ()
 
bool remove_atexit_fcn (const std::string &fname)
 
void remove_debug_watch_expression (const std::string &expr)
 
symbol_scope require_current_scope (const std::string &who) const
 
void resume ()
 
bool server_mode () const
 
void set_global_value (const std::string &name, const octave_value &value)
 
void set_PS1 (const std::string &s)
 
void set_PS2 (const std::string &s)
 
void set_PS4 (const std::string &s)
 
void source_file (const std::string &file_name, const std::string &context="", bool verbose=false, bool require_file=true)
 
void stop ()
 
void top_level_assign (const std::string &name, const octave_value &val=octave_value())
 
std::list< std::string > top_level_variable_names ()
 
octave_value top_level_varval (const std::string &name) const
 
bool traditional () const
 
void traditional (bool flag)
 
std::list< std::string > user_function_names ()
 
std::list< std::string > variable_names ()
 
octave_value varval (const std::string &name) const
 
void verbose (bool flag)
 

Static Public Member Functions

static interpreterthe_interpreter ()
 

Detailed Description

Definition at line 112 of file interpreter.h.

Constructor & Destructor Documentation

◆ interpreter()

◆ ~interpreter()

interpreter::~interpreter ( )

Definition at line 637 of file interpreter.cc.

Member Function Documentation

◆ add_atexit_fcn()

void interpreter::add_atexit_fcn ( const std::string &  fname)

Definition at line 2156 of file interpreter.cc.

◆ add_debug_watch_expression()

void interpreter::add_debug_watch_expression ( const std::string &  expr)

Definition at line 2051 of file interpreter.cc.

References tree_evaluator::add_debug_watch_expression().

◆ assign()

void interpreter::assign ( const std::string &  name,
const octave_value val = octave_value () 
)

Definition at line 1725 of file interpreter.cc.

References tree_evaluator::assign().

◆ assignin()

void interpreter::assignin ( const std::string &  context,
const std::string &  varname,
const octave_value val = octave_value () 
)

Definition at line 1732 of file interpreter.cc.

References tree_evaluator::assignin().

◆ at_top_level()

bool interpreter::at_top_level ( ) const

Definition at line 1748 of file interpreter.cc.

References tree_evaluator::at_top_level().

Referenced by Fwarning().

◆ autoloaded_functions()

std::list< std::string > interpreter::autoloaded_functions ( ) const

Definition at line 1892 of file interpreter.cc.

References tree_evaluator::autoloaded_functions().

◆ cancel_quit()

void interpreter::cancel_quit ( bool  flag)
inline

Definition at line 557 of file interpreter.h.

◆ chdir()

int interpreter::chdir ( const std::string &  dir)

◆ cleanup_tmp_files()

void interpreter::cleanup_tmp_files ( )

Definition at line 2107 of file interpreter.cc.

References temporary_file_list::cleanup().

◆ clear_all()

void interpreter::clear_all ( bool  force = false)

Definition at line 1766 of file interpreter.cc.

References tree_evaluator::clear_all().

Referenced by Fclear().

◆ clear_debug_watch_expressions()

void interpreter::clear_debug_watch_expressions ( )

Definition at line 2063 of file interpreter.cc.

References tree_evaluator::clear_debug_watch_expressions().

◆ clear_function()

void interpreter::clear_function ( const std::string &  name)

Definition at line 1832 of file interpreter.cc.

References symbol_table::clear_function().

◆ clear_function_pattern()

void interpreter::clear_function_pattern ( const std::string &  pat)

Definition at line 1844 of file interpreter.cc.

References symbol_table::clear_function_pattern().

◆ clear_function_regexp()

void interpreter::clear_function_regexp ( const std::string &  pat)

Definition at line 1850 of file interpreter.cc.

References symbol_table::clear_function_regexp().

◆ clear_functions()

void interpreter::clear_functions ( bool  force = false)

Definition at line 1826 of file interpreter.cc.

References symbol_table::clear_functions().

◆ clear_global_variable()

void interpreter::clear_global_variable ( const std::string &  name)

Definition at line 1802 of file interpreter.cc.

References tree_evaluator::clear_global_variable().

◆ clear_global_variable_pattern()

void interpreter::clear_global_variable_pattern ( const std::string &  pattern)

Definition at line 1808 of file interpreter.cc.

References tree_evaluator::clear_global_variable_pattern().

◆ clear_global_variable_regexp()

void interpreter::clear_global_variable_regexp ( const std::string &  pattern)

Definition at line 1814 of file interpreter.cc.

References tree_evaluator::clear_global_variable_regexp().

◆ clear_global_variables()

void interpreter::clear_global_variables ( )

Definition at line 1820 of file interpreter.cc.

References tree_evaluator::clear_global_variables().

◆ clear_objects()

void interpreter::clear_objects ( )

Definition at line 1772 of file interpreter.cc.

References tree_evaluator::clear_objects().

Referenced by Fclear().

◆ clear_symbol()

void interpreter::clear_symbol ( const std::string &  name)

Definition at line 1838 of file interpreter.cc.

References tree_evaluator::clear_symbol().

◆ clear_symbol_pattern()

void interpreter::clear_symbol_pattern ( const std::string &  pat)

Definition at line 1856 of file interpreter.cc.

References tree_evaluator::clear_symbol_pattern().

◆ clear_symbol_regexp()

void interpreter::clear_symbol_regexp ( const std::string &  pat)

Definition at line 1862 of file interpreter.cc.

References tree_evaluator::clear_symbol_regexp().

◆ clear_variable()

void interpreter::clear_variable ( const std::string &  name)

Definition at line 1778 of file interpreter.cc.

References tree_evaluator::clear_variable().

◆ clear_variable_pattern()

void interpreter::clear_variable_pattern ( const std::string &  pattern)

Definition at line 1784 of file interpreter.cc.

References tree_evaluator::clear_variable_pattern().

◆ clear_variable_regexp()

void interpreter::clear_variable_regexp ( const std::string &  pattern)

Definition at line 1790 of file interpreter.cc.

References tree_evaluator::clear_variable_regexp().

◆ clear_variables()

void interpreter::clear_variables ( )

Definition at line 1796 of file interpreter.cc.

References tree_evaluator::clear_variables().

◆ debug_watch_expressions()

std::set< std::string > interpreter::debug_watch_expressions ( ) const

Definition at line 2069 of file interpreter.cc.

References tree_evaluator::debug_watch_expressions().

◆ eval() [1/2]

octave_value_list interpreter::eval ( const std::string &  try_code,
const std::string &  catch_code,
int  nargout 
)

Definition at line 1524 of file interpreter.cc.

References tree_evaluator::eval().

◆ eval() [2/2]

octave_value_list interpreter::eval ( const std::string &  try_code,
int  nargout 
)

Definition at line 1517 of file interpreter.cc.

References tree_evaluator::eval().

◆ eval_string() [1/3]

octave_value_list interpreter::eval_string ( const octave_value arg,
bool  silent,
int parse_status,
int  nargout 
)

Definition at line 1509 of file interpreter.cc.

References tree_evaluator::eval_string().

◆ eval_string() [2/3]

octave_value interpreter::eval_string ( const std::string &  eval_str,
bool  silent,
int parse_status 
)

Definition at line 1502 of file interpreter.cc.

References tree_evaluator::eval_string().

◆ eval_string() [3/3]

octave_value_list interpreter::eval_string ( const std::string &  eval_str,
bool  silent,
int parse_status,
int  nargout 
)

Definition at line 1494 of file interpreter.cc.

References tree_evaluator::eval_string().

Referenced by Fstr2func().

◆ evalin() [1/2]

octave_value_list interpreter::evalin ( const std::string &  context,
const std::string &  try_code,
const std::string &  catch_code,
int  nargout 
)

Definition at line 1540 of file interpreter.cc.

References tree_evaluator::evalin().

◆ evalin() [2/2]

octave_value_list interpreter::evalin ( const std::string &  context,
const std::string &  try_code,
int  nargout 
)

Definition at line 1532 of file interpreter.cc.

References tree_evaluator::evalin().

Referenced by quit().

◆ execute()

◆ executing_finish_script()

bool interpreter::executing_finish_script ( ) const
inline

Definition at line 559 of file interpreter.h.

◆ experimental_terminal_widget()

bool interpreter::experimental_terminal_widget ( ) const

◆ feval() [1/5]

octave_value_list interpreter::feval ( const char *  name,
const octave_value_list args = octave_value_list (),
int  nargout = 0 
)

Evaluate an Octave function (built-in or interpreted) and return the list of result values.

Parameters
nameThe name of the function to call.
argsThe arguments to the function.
nargoutThe number of output arguments expected.
Returns
A list of output values. The length of the list is not necessarily the same as nargout.

Definition at line 1558 of file interpreter.cc.

References feval().

Referenced by tree_evaluator::bind_ans(), do_class_concat(), named_hook_function::eval(), fcn_handle_hook_function::eval(), tree_simple_assignment::evaluate(), tree_evaluator::evaluate_end_expression(), tree_multi_assignment::evaluate_n(), tree_identifier::evaluate_n(), feval(), feval(), feval(), feval(), feval(), feval(), feval(), feval(), get_function_handle(), gtk_manager::get_toolkit(), OCTAVE_BEGIN_NAMESPACE(), OCTAVE_BEGIN_NAMESPACE(), OCTAVE_BEGIN_NAMESPACE(), OCTAVE_BEGIN_NAMESPACE(), OCTAVE_BEGIN_NAMESPACE(), and print_usage().

◆ feval() [2/5]

◆ feval() [3/5]

octave_value_list interpreter::feval ( const octave_value_list args,
int  nargout = 0 
)

Evaluate an Octave function (built-in or interpreted) and return the list of result values.

Parameters
argsThe first element of args is the function to call. It may be the name of the function as a string, a function handle, or an inline function. The remaining arguments are passed to the function.
nargoutThe number of output arguments expected.
Returns
A list of output values. The length of the list is not necessarily the same as nargout.

Definition at line 1648 of file interpreter.cc.

References error(), feval(), octave_value_list::length(), and octave_value_list::slice().

◆ feval() [4/5]

octave_value_list interpreter::feval ( const std::string &  name,
const octave_value_list args = octave_value_list (),
int  nargout = 0 
)

◆ feval() [5/5]

octave_value_list interpreter::feval ( octave_function fcn,
const octave_value_list args = octave_value_list (),
int  nargout = 0 
)

Definition at line 1581 of file interpreter.cc.

References octave_function::call().

◆ find()

octave_value interpreter::find ( const std::string &  name)

Definition at line 1760 of file interpreter.cc.

References tree_evaluator::find().

Referenced by cdef_manager::find_class().

◆ get_app_context()

application * interpreter::get_app_context ( )
inline

Definition at line 243 of file interpreter.h.

◆ get_cdef_manager()

cdef_manager & interpreter::get_cdef_manager ( )
inline

Definition at line 330 of file interpreter.h.

Referenced by __get_cdef_manager__(), and tree_evaluator::get_user_code().

◆ get_child_list()

child_list & interpreter::get_child_list ( )
inline

Definition at line 323 of file interpreter.h.

Referenced by __get_child_list__(), and output_system::clear_external_pager().

◆ get_current_scope()

symbol_scope interpreter::get_current_scope ( ) const

◆ get_display_info()

display_info & interpreter::get_display_info ( )
inline

Definition at line 248 of file interpreter.h.

Referenced by __get_display_info__().

◆ get_dynamic_loader()

dynamic_loader & interpreter::get_dynamic_loader ( )
inline

Definition at line 290 of file interpreter.h.

Referenced by __get_dynamic_loader__(), and load_fcn_from_file().

◆ get_environment()

environment & interpreter::get_environment ( )
inline

Definition at line 253 of file interpreter.h.

Referenced by history_system::do_edit_history().

◆ get_error_system()

◆ get_evaluator()

◆ get_event_manager()

◆ get_gh_manager()

gh_manager & interpreter::get_gh_manager ( )
inline

Definition at line 345 of file interpreter.h.

Referenced by __get_gh_manager__().

◆ get_gtk_manager()

gtk_manager & interpreter::get_gtk_manager ( )
inline

Definition at line 335 of file interpreter.h.

Referenced by __get_gtk_manager__(), and F__init_gnuplot__().

◆ get_help_system()

help_system & interpreter::get_help_system ( )
inline

Definition at line 270 of file interpreter.h.

Referenced by __get_help_system__().

◆ get_history_system()

history_system & interpreter::get_history_system ( )
inline

Definition at line 285 of file interpreter.h.

Referenced by base_lexer::input_from_tmp_history_file().

◆ get_input_system()

input_system & interpreter::get_input_system ( )
inline

Definition at line 275 of file interpreter.h.

Referenced by __get_input_system__().

◆ get_line_and_eval()

void interpreter::get_line_and_eval ( )

Definition at line 773 of file interpreter.cc.

References tree_evaluator::get_line_and_eval().

◆ get_load_path()

load_path & interpreter::get_load_path ( )
inline

◆ get_load_save_system()

load_save_system & interpreter::get_load_save_system ( )
inline

Definition at line 300 of file interpreter.h.

Referenced by __get_load_save_system__().

◆ get_output_system()

output_system & interpreter::get_output_system ( )
inline

Definition at line 280 of file interpreter.h.

Referenced by stream_list::stream_list(), and __get_output_system__().

◆ get_profiler()

profiler & interpreter::get_profiler ( )

Definition at line 1387 of file interpreter.cc.

References tree_evaluator::get_profiler().

◆ get_settings()

settings & interpreter::get_settings ( )
inline

◆ get_stream_list()

stream_list & interpreter::get_stream_list ( )

◆ get_symbol_table()

◆ get_top_scope()

symbol_scope interpreter::get_top_scope ( ) const

Definition at line 1364 of file interpreter.cc.

References tree_evaluator::get_top_scope().

◆ get_type_info()

◆ get_url_handle_manager()

url_handle_manager & interpreter::get_url_handle_manager ( )

Definition at line 1358 of file interpreter.cc.

◆ global_assign()

void interpreter::global_assign ( const std::string &  name,
const octave_value val = octave_value () 
)

Definition at line 1687 of file interpreter.cc.

References tree_evaluator::global_assign().

◆ global_variable_names()

std::list< std::string > interpreter::global_variable_names ( )

Definition at line 1868 of file interpreter.cc.

References tree_evaluator::global_variable_names().

◆ global_varval()

octave_value interpreter::global_varval ( const std::string &  name) const

Definition at line 1681 of file interpreter.cc.

References tree_evaluator::global_varval().

◆ handle_exception()

void interpreter::handle_exception ( const execution_exception ee)

◆ in_top_level_repl()

bool interpreter::in_top_level_repl ( ) const
inline

Definition at line 217 of file interpreter.h.

◆ inhibit_startup_message()

void interpreter::inhibit_startup_message ( bool  flag)
inline

Definition at line 212 of file interpreter.h.

◆ init_trace()

void interpreter::init_trace ( bool  flag)
inline

Definition at line 191 of file interpreter.h.

◆ initialize()

◆ initialize_history()

void interpreter::initialize_history ( bool  read_history_file = false)

◆ initialize_load_path()

void interpreter::initialize_load_path ( bool  set_initial_path = true)

◆ initialized()

bool interpreter::initialized ( ) const
inline

Definition at line 228 of file interpreter.h.

◆ inputname()

std::string interpreter::inputname ( int  n,
bool  ids_only = true 
) const

Definition at line 1662 of file interpreter.cc.

References tree_evaluator::inputname().

◆ install_variable()

void interpreter::install_variable ( const std::string &  name,
const octave_value value,
bool  global 
)

Definition at line 1674 of file interpreter.cc.

References tree_evaluator::install_variable().

◆ interactive() [1/2]

◆ interactive() [2/2]

void interpreter::interactive ( bool  arg)
inline

Definition at line 170 of file interpreter.h.

◆ intern_nargin()

void interpreter::intern_nargin ( octave_idx_type  nargs)

Definition at line 646 of file interpreter.cc.

References stack_frame::NARGIN, and tree_evaluator::set_auto_fcn_var().

Referenced by interpreter().

◆ interrupt()

void interpreter::interrupt ( )

Definition at line 1901 of file interpreter.cc.

References octave_get_sig_number(), octave_getpid_wrapper(), and octave_kill_wrapper().

Referenced by stop().

◆ interrupt_all_in_process_group() [1/2]

bool interpreter::interrupt_all_in_process_group ( ) const
inline

Definition at line 238 of file interpreter.h.

◆ interrupt_all_in_process_group() [2/2]

void interpreter::interrupt_all_in_process_group ( bool  b)
inline

Definition at line 233 of file interpreter.h.

◆ is_initialized()

bool interpreter::is_initialized ( ) const
inline

Definition at line 222 of file interpreter.h.

◆ is_local_variable()

bool interpreter::is_local_variable ( const std::string &  name) const

Definition at line 1713 of file interpreter.cc.

References tree_evaluator::is_local_variable().

◆ is_variable()

bool interpreter::is_variable ( const std::string &  name) const

Definition at line 1707 of file interpreter.cc.

References tree_evaluator::is_variable().

Referenced by load_save_system::save_vars().

◆ isglobal()

bool interpreter::isglobal ( const std::string &  name) const

Definition at line 1754 of file interpreter.cc.

References tree_evaluator::is_global().

◆ make_function_handle()

octave_value interpreter::make_function_handle ( const std::string &  name)

Definition at line 1668 of file interpreter.cc.

References tree_evaluator::make_fcn_handle().

◆ mark_for_deletion()

void interpreter::mark_for_deletion ( const std::string &  file)

Definition at line 2101 of file interpreter.cc.

References temporary_file_list::insert().

Referenced by Fmkstemp().

◆ mfilename()

std::string interpreter::mfilename ( const std::string &  opt = "") const

Definition at line 1488 of file interpreter.cc.

References tree_evaluator::mfilename().

◆ mislocked() [1/3]

bool interpreter::mislocked ( bool  skip_first = false) const

Definition at line 1432 of file interpreter.cc.

References tree_evaluator::mislocked().

Referenced by F__init_gnuplot__(), Fmislocked(), and mislocked().

◆ mislocked() [2/3]

bool interpreter::mislocked ( const char *  nm)

Definition at line 1461 of file interpreter.cc.

References error(), and mislocked().

◆ mislocked() [3/3]

bool interpreter::mislocked ( const std::string &  nm)

◆ mlock()

void interpreter::mlock ( bool  skip_first = false) const

Definition at line 1420 of file interpreter.cc.

References tree_evaluator::mlock().

Referenced by F__init_gnuplot__(), and Fmlock().

◆ munlock() [1/3]

void interpreter::munlock ( bool  skip_first = false) const

Definition at line 1426 of file interpreter.cc.

References tree_evaluator::munlock().

Referenced by Fmunlock(), and munlock().

◆ munlock() [2/3]

void interpreter::munlock ( const char *  nm)

Definition at line 1438 of file interpreter.cc.

References error(), and munlock().

◆ munlock() [3/3]

void interpreter::munlock ( const std::string &  nm)

◆ parse_and_execute()

void interpreter::parse_and_execute ( const std::string &  input,
bool incomplete_parse 
)

Definition at line 812 of file interpreter.cc.

References tree_evaluator::parse_and_execute().

Referenced by tree_evaluator::get_line_and_eval().

◆ pause()

void interpreter::pause ( )

◆ PS1() [1/3]

std::string interpreter::PS1 ( ) const

Definition at line 1971 of file interpreter.cc.

References input_system::PS1().

◆ PS1() [2/3]

octave_value interpreter::PS1 ( const octave_value_list args,
int  nargout 
)

◆ PS1() [3/3]

std::string interpreter::PS1 ( const std::string &  s)

Definition at line 1977 of file interpreter.cc.

References input_system::PS1().

◆ PS2() [1/3]

std::string interpreter::PS2 ( ) const

Definition at line 1995 of file interpreter.cc.

References input_system::PS2().

◆ PS2() [2/3]

octave_value interpreter::PS2 ( const octave_value_list args,
int  nargout 
)

◆ PS2() [3/3]

std::string interpreter::PS2 ( const std::string &  s)

Definition at line 2001 of file interpreter.cc.

References input_system::PS2().

◆ PS4() [1/3]

std::string interpreter::PS4 ( ) const

Definition at line 2019 of file interpreter.cc.

References tree_evaluator::PS4().

◆ PS4() [2/3]

octave_value interpreter::PS4 ( const octave_value_list args,
int  nargout 
)

Definition at line 2013 of file interpreter.cc.

References tree_evaluator::PS4().

◆ PS4() [3/3]

std::string interpreter::PS4 ( const std::string &  s)

Definition at line 2025 of file interpreter.cc.

References tree_evaluator::PS4().

◆ quit()

void interpreter::quit ( int  exit_status,
bool  force = false,
bool  confirm = true 
)

Definition at line 2113 of file interpreter.cc.

References event_manager::confirm_shutdown(), evalin(), and symbol_exist().

◆ read_init_files()

void interpreter::read_init_files ( bool  flag)
inline

Definition at line 186 of file interpreter.h.

◆ read_site_files()

void interpreter::read_site_files ( bool  flag)
inline

Definition at line 175 of file interpreter.h.

◆ read_user_files()

void interpreter::read_user_files ( bool  flag)
inline

Definition at line 180 of file interpreter.h.

◆ recover_from_exception()

◆ remove_atexit_fcn()

bool interpreter::remove_atexit_fcn ( const std::string &  fname)

Definition at line 2165 of file interpreter.cc.

◆ remove_debug_watch_expression()

void interpreter::remove_debug_watch_expression ( const std::string &  expr)

Definition at line 2057 of file interpreter.cc.

References tree_evaluator::remove_debug_watch_expression().

◆ require_current_scope()

symbol_scope interpreter::require_current_scope ( const std::string &  who) const

Definition at line 1376 of file interpreter.cc.

References error(), and get_current_scope().

◆ resume()

void interpreter::resume ( )

Definition at line 1952 of file interpreter.cc.

References tree_evaluator::dbcont(), and tree_evaluator::in_debug_repl().

◆ server_mode()

bool interpreter::server_mode ( ) const
inline

Definition at line 163 of file interpreter.h.

Referenced by output_system::sync().

◆ set_global_value()

void interpreter::set_global_value ( const std::string &  name,
const octave_value value 
)

◆ set_PS1()

void interpreter::set_PS1 ( const std::string &  s)

Definition at line 1983 of file interpreter.cc.

References input_system::set_PS1().

◆ set_PS2()

void interpreter::set_PS2 ( const std::string &  s)

Definition at line 2007 of file interpreter.cc.

References input_system::set_PS2().

◆ set_PS4()

void interpreter::set_PS4 ( const std::string &  s)

Definition at line 2031 of file interpreter.cc.

References tree_evaluator::set_PS4().

◆ source_file()

void interpreter::source_file ( const std::string &  file_name,
const std::string &  context = "",
bool  verbose = false,
bool  require_file = true 
)

Definition at line 1740 of file interpreter.cc.

References tree_evaluator::source_file(), and verbose().

Referenced by source_file().

◆ stop()

void interpreter::stop ( )

◆ the_interpreter()

static interpreter * interpreter::the_interpreter ( )
inlinestatic

Definition at line 568 of file interpreter.h.

Referenced by __get_interpreter__().

◆ top_level_assign()

void interpreter::top_level_assign ( const std::string &  name,
const octave_value val = octave_value () 
)

Definition at line 1700 of file interpreter.cc.

References tree_evaluator::top_level_assign().

◆ top_level_variable_names()

std::list< std::string > interpreter::top_level_variable_names ( )

Definition at line 1874 of file interpreter.cc.

References tree_evaluator::top_level_variable_names().

◆ top_level_varval()

octave_value interpreter::top_level_varval ( const std::string &  name) const

Definition at line 1694 of file interpreter.cc.

References tree_evaluator::top_level_varval().

◆ traditional() [1/2]

bool interpreter::traditional ( ) const
inline

Definition at line 207 of file interpreter.h.

◆ traditional() [2/2]

void interpreter::traditional ( bool  flag)
inline

Definition at line 202 of file interpreter.h.

◆ user_function_names()

std::list< std::string > interpreter::user_function_names ( )

Definition at line 1886 of file interpreter.cc.

References symbol_table::user_function_names().

◆ variable_names()

std::list< std::string > interpreter::variable_names ( )

Definition at line 1880 of file interpreter.cc.

References tree_evaluator::variable_names().

◆ varval()

octave_value interpreter::varval ( const std::string &  name) const

Definition at line 1719 of file interpreter.cc.

References tree_evaluator::varval().

Referenced by F__varval__(), and load_save_system::save_vars().

◆ verbose()

void interpreter::verbose ( bool  flag)
inline

Definition at line 197 of file interpreter.h.

Referenced by source_file().


The documentation for this class was generated from the following files: