GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
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. More...
 
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. More...
 
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 initialize ()
 
void initialize_history (bool read_history_file=false)
 
void initialize_load_path (bool set_initial_path=true)
 
bool initialized () 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 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 ( application app_context = nullptr)

Definition at line 431 of file interpreter.cc.

References thread::init(), octave_ieee_init(), and octave_set_default_fpucw().

◆ ~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 2151 of file interpreter.cc.

◆ add_debug_watch_expression()

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

Definition at line 2046 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 1720 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 1727 of file interpreter.cc.

References tree_evaluator::assignin().

◆ at_top_level()

bool interpreter::at_top_level ( ) const

Definition at line 1743 of file interpreter.cc.

References tree_evaluator::at_top_level().

◆ autoloaded_functions()

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

Definition at line 1887 of file interpreter.cc.

References tree_evaluator::autoloaded_functions().

◆ cancel_quit()

void interpreter::cancel_quit ( bool  flag)
inline

Definition at line 543 of file interpreter.h.

◆ chdir()

◆ cleanup_tmp_files()

void interpreter::cleanup_tmp_files ( )

Definition at line 2102 of file interpreter.cc.

References temporary_file_list::cleanup().

◆ clear_all()

void interpreter::clear_all ( bool  force = false)

Definition at line 1761 of file interpreter.cc.

References tree_evaluator::clear_all().

◆ clear_debug_watch_expressions()

void interpreter::clear_debug_watch_expressions ( )

Definition at line 2058 of file interpreter.cc.

References tree_evaluator::clear_debug_watch_expressions().

◆ clear_function()

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

Definition at line 1827 of file interpreter.cc.

References symbol_table::clear_function().

◆ clear_function_pattern()

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

Definition at line 1839 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 1845 of file interpreter.cc.

References symbol_table::clear_function_regexp().

◆ clear_functions()

void interpreter::clear_functions ( bool  force = false)

Definition at line 1821 of file interpreter.cc.

References symbol_table::clear_functions().

◆ clear_global_variable()

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

Definition at line 1797 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 1803 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 1809 of file interpreter.cc.

References tree_evaluator::clear_global_variable_regexp().

◆ clear_global_variables()

void interpreter::clear_global_variables ( )

Definition at line 1815 of file interpreter.cc.

References tree_evaluator::clear_global_variables().

◆ clear_objects()

void interpreter::clear_objects ( )

Definition at line 1767 of file interpreter.cc.

References tree_evaluator::clear_objects().

◆ clear_symbol()

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

Definition at line 1833 of file interpreter.cc.

References tree_evaluator::clear_symbol().

◆ clear_symbol_pattern()

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

Definition at line 1851 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 1857 of file interpreter.cc.

References tree_evaluator::clear_symbol_regexp().

◆ clear_variable()

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

Definition at line 1773 of file interpreter.cc.

References tree_evaluator::clear_variable().

◆ clear_variable_pattern()

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

Definition at line 1779 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 1785 of file interpreter.cc.

References tree_evaluator::clear_variable_regexp().

◆ clear_variables()

void interpreter::clear_variables ( )

Definition at line 1791 of file interpreter.cc.

References tree_evaluator::clear_variables().

◆ debug_watch_expressions()

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

Definition at line 2064 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 1525 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 1518 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 1510 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 1503 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 1495 of file interpreter.cc.

References tree_evaluator::eval_string().

Referenced by octave::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 1541 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 1533 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 545 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 1559 of file interpreter.cc.

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(), octave::feval(), feval(), get_function_handle(), gtk_manager::get_toolkit(), 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 1649 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 1582 of file interpreter.cc.

References octave_function::call().

◆ find()

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

Definition at line 1755 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 231 of file interpreter.h.

◆ get_cdef_manager()

cdef_manager& interpreter::get_cdef_manager ( )
inline

Definition at line 318 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 311 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 236 of file interpreter.h.

Referenced by __get_display_info__().

◆ get_dynamic_loader()

dynamic_loader& interpreter::get_dynamic_loader ( )
inline

Definition at line 278 of file interpreter.h.

Referenced by __get_dynamic_loader__().

◆ get_environment()

environment& interpreter::get_environment ( )
inline

Definition at line 241 of file interpreter.h.

◆ get_error_system()

◆ get_evaluator()

◆ get_event_manager()

◆ get_gh_manager()

gh_manager& interpreter::get_gh_manager ( )
inline

Definition at line 333 of file interpreter.h.

Referenced by __get_gh_manager__().

◆ get_gtk_manager()

gtk_manager& interpreter::get_gtk_manager ( )
inline

Definition at line 323 of file interpreter.h.

Referenced by __get_gtk_manager__().

◆ get_help_system()

help_system& interpreter::get_help_system ( )
inline

Definition at line 258 of file interpreter.h.

Referenced by __get_help_system__().

◆ get_history_system()

history_system& interpreter::get_history_system ( )
inline

Definition at line 273 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 263 of file interpreter.h.

Referenced by __get_input_system__().

◆ get_line_and_eval()

void interpreter::get_line_and_eval ( )

Definition at line 774 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 288 of file interpreter.h.

Referenced by __get_load_save_system__().

◆ get_output_system()

output_system& interpreter::get_output_system ( )
inline

Definition at line 268 of file interpreter.h.

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

◆ get_profiler()

profiler & interpreter::get_profiler ( )

Definition at line 1388 of file interpreter.cc.

References tree_evaluator::get_profiler().

◆ get_settings()

settings& interpreter::get_settings ( )
inline

◆ get_stream_list()

◆ get_symbol_table()

◆ get_top_scope()

symbol_scope interpreter::get_top_scope ( ) const

Definition at line 1365 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 1359 of file interpreter.cc.

◆ global_assign()

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

Definition at line 1682 of file interpreter.cc.

References tree_evaluator::global_assign().

◆ global_variable_names()

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

Definition at line 1863 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 1676 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 205 of file interpreter.h.

◆ inhibit_startup_message()

void interpreter::inhibit_startup_message ( bool  flag)
inline

Definition at line 200 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 216 of file interpreter.h.

◆ install_variable()

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

Definition at line 1669 of file interpreter.cc.

References tree_evaluator::install_variable().

◆ interactive() [1/2]

bool interpreter::interactive ( ) const
inline

◆ 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().

◆ interrupt()

void interpreter::interrupt ( )

Definition at line 1896 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 226 of file interpreter.h.

◆ interrupt_all_in_process_group() [2/2]

void interpreter::interrupt_all_in_process_group ( bool  b)
inline

Definition at line 221 of file interpreter.h.

◆ is_initialized()

bool interpreter::is_initialized ( ) const
inline

Definition at line 210 of file interpreter.h.

◆ is_local_variable()

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

Definition at line 1708 of file interpreter.cc.

References tree_evaluator::is_local_variable().

◆ is_variable()

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

Definition at line 1702 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 1749 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 1663 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 2096 of file interpreter.cc.

References temporary_file_list::insert().

◆ mfilename()

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

Definition at line 1489 of file interpreter.cc.

References tree_evaluator::mfilename().

◆ mislocked() [1/3]

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

Definition at line 1433 of file interpreter.cc.

References tree_evaluator::mislocked().

Referenced by octave::Fmislocked(), and mislocked().

◆ mislocked() [2/3]

bool interpreter::mislocked ( const char *  nm)

Definition at line 1462 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 1421 of file interpreter.cc.

References tree_evaluator::mlock().

Referenced by octave::Fmlock().

◆ munlock() [1/3]

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

Definition at line 1427 of file interpreter.cc.

References tree_evaluator::munlock().

Referenced by octave::Fmunlock(), and munlock().

◆ munlock() [2/3]

void interpreter::munlock ( const char *  nm)

Definition at line 1439 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 813 of file interpreter.cc.

◆ pause()

void interpreter::pause ( )

◆ PS1() [1/3]

std::string interpreter::PS1 ( ) const

Definition at line 1966 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 1972 of file interpreter.cc.

References input_system::PS1().

◆ PS2() [1/3]

std::string interpreter::PS2 ( ) const

Definition at line 1990 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 1996 of file interpreter.cc.

References input_system::PS2().

◆ PS4() [1/3]

std::string interpreter::PS4 ( ) const

Definition at line 2014 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 2008 of file interpreter.cc.

References tree_evaluator::PS4().

◆ PS4() [3/3]

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

Definition at line 2020 of file interpreter.cc.

References tree_evaluator::PS4().

◆ quit()

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

Definition at line 2108 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 180 of file interpreter.h.

◆ read_site_files()

void interpreter::read_site_files ( bool  flag)
inline

Definition at line 175 of file interpreter.h.

◆ recover_from_exception()

◆ remove_atexit_fcn()

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

Definition at line 2160 of file interpreter.cc.

◆ remove_debug_watch_expression()

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

Definition at line 2052 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 1377 of file interpreter.cc.

References error(), and get_current_scope().

◆ resume()

void interpreter::resume ( )

Definition at line 1947 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 1978 of file interpreter.cc.

References input_system::set_PS1().

◆ set_PS2()

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

Definition at line 2002 of file interpreter.cc.

References input_system::set_PS2().

◆ set_PS4()

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

Definition at line 2026 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 1735 of file interpreter.cc.

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

Referenced by octave::source_file().

◆ stop()

void interpreter::stop ( )

◆ the_interpreter()

static interpreter* interpreter::the_interpreter ( )
inlinestatic

Definition at line 554 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 1695 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 1869 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 1689 of file interpreter.cc.

References tree_evaluator::top_level_varval().

◆ traditional() [1/2]

bool interpreter::traditional ( ) const
inline

Definition at line 195 of file interpreter.h.

◆ traditional() [2/2]

void interpreter::traditional ( bool  flag)
inline

Definition at line 190 of file interpreter.h.

◆ user_function_names()

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

Definition at line 1881 of file interpreter.cc.

References symbol_table::user_function_names().

◆ variable_names()

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

Definition at line 1875 of file interpreter.cc.

References tree_evaluator::variable_names().

◆ varval()

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

Definition at line 1714 of file interpreter.cc.

References tree_evaluator::varval().

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

◆ verbose()

void interpreter::verbose ( bool  flag)
inline

Definition at line 185 of file interpreter.h.

Referenced by source_file().


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