GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
interpreter Class Reference

#include "interpreter.h"

Collaboration diagram for interpreter:

Public Member Functions

 interpreter (application *app_context=nullptr)
 
 interpreter (const interpreter &)=delete
 
 ~interpreter (void)
 
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 (void) const
 
std::list< std::string > autoloaded_functions (void) const
 
void cancel_quit (bool flag)
 
int chdir (const std::string &dir)
 
void cleanup_tmp_files (void)
 
void clear_all (bool force=false)
 
void clear_debug_watch_expressions (void)
 
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)
 
void clear_objects (void)
 
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 (void)
 
std::set< std::string > debug_watch_expressions (void) 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 (void)
 
bool executing_finish_script (void) const
 
bool experimental_terminal_widget (void) 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 (void)
 
cdef_managerget_cdef_manager (void)
 
child_listget_child_list (void)
 
symbol_scope get_current_scope (void) const
 
display_infoget_display_info (void)
 
dynamic_loaderget_dynamic_loader (void)
 
environmentget_environment (void)
 
error_systemget_error_system (void)
 
tree_evaluatorget_evaluator (void)
 
event_managerget_event_manager (void)
 
gh_manager & get_gh_manager (void)
 
gtk_managerget_gtk_manager (void)
 
help_systemget_help_system (void)
 
history_systemget_history_system (void)
 
input_systemget_input_system (void)
 
void get_line_and_eval (void)
 
load_pathget_load_path (void)
 
load_save_systemget_load_save_system (void)
 
output_systemget_output_system (void)
 
profilerget_profiler (void)
 
settingsget_settings (void)
 
stream_listget_stream_list (void)
 
symbol_tableget_symbol_table (void)
 
symbol_scope get_top_scope (void) const
 
type_infoget_type_info (void)
 
url_handle_managerget_url_handle_manager (void)
 
void global_assign (const std::string &name, const octave_value &val=octave_value())
 
std::list< std::string > global_variable_names (void)
 
octave_value global_varval (const std::string &name) const
 
void handle_exception (const execution_exception &ee)
 
bool in_top_level_repl (void) const
 
void inhibit_startup_message (bool flag)
 
void initialize (void)
 
void initialize_history (bool read_history_file=false)
 
void initialize_load_path (bool set_initial_path=true)
 
bool initialized (void) const
 
void install_variable (const std::string &name, const octave_value &value, bool global)
 
void interactive (bool arg)
 
bool interactive (void) const
 
void intern_nargin (octave_idx_type nargs)
 
void interrupt (void)
 
void interrupt_all_in_process_group (bool b)
 
bool interrupt_all_in_process_group (void) 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)
 
interpreteroperator= (const interpreter &)=delete
 
void parse_and_execute (const std::string &input, bool &incomplete_parse)
 
void pause (void)
 
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 (void)
 
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 (void)
 
bool server_mode (void) const
 
void set_global_value (const std::string &name, const octave_value &value)
 
void source_file (const std::string &file_name, const std::string &context="", bool verbose=false, bool require_file=true)
 
void stop (void)
 
void top_level_assign (const std::string &name, const octave_value &val=octave_value())
 
std::list< std::string > top_level_variable_names (void)
 
octave_value top_level_varval (const std::string &name) const
 
void traditional (bool flag)
 
bool traditional (void) const
 
std::list< std::string > user_function_names (void)
 
std::list< std::string > variable_names (void)
 
octave_value varval (const std::string &name) const
 
void verbose (bool flag)
 

Static Public Member Functions

static interpreterthe_interpreter (void)
 

Private Member Functions

void display_startup_message (void) const
 
void execute_atexit_fcns (void)
 
int execute_command_line_file (void)
 
int execute_eval_option_code (void)
 
void execute_pkg_add (const std::string &dir)
 
int execute_startup_files (void)
 
int main_loop (void)
 
void maximum_braindamage (void)
 
int server_loop (void)
 
void shutdown (void)
 

Private Attributes

applicationm_app_context
 
std::list< std::string > m_atexit_fcns
 
bool m_cancel_quit
 
cdef_manager m_cdef_manager
 
child_list m_child_list
 
display_info m_display_info
 
dynamic_loader m_dynamic_loader
 
environment m_environment
 
error_system m_error_system
 
tree_evaluator m_evaluator
 
event_manager m_event_manager
 
bool m_executing_atexit
 
bool m_executing_finish_script
 
gh_manager * m_gh_manager
 
gtk_manager m_gtk_manager
 
help_system m_help_system
 
bool m_history_initialized
 
history_system m_history_system
 
bool m_inhibit_startup_message
 
bool m_initialized
 
input_system m_input_system
 
bool m_interactive
 
bool m_interrupt_all_in_process_group
 
load_path m_load_path
 
bool m_load_path_initialized
 
load_save_system m_load_save_system
 
output_system m_output_system
 
bool m_read_init_files
 
bool m_read_site_files
 
settings m_settings
 
stream_list m_stream_list
 
symbol_table m_symbol_table
 
temporary_file_list m_tmp_files
 
bool m_traditional
 
type_info m_type_info
 
url_handle_manager m_url_handle_manager
 
bool m_verbose
 

Static Private Attributes

static OCTAVE_THREAD_LOCAL interpreterm_instance = nullptr
 

Detailed Description

Definition at line 114 of file interpreter.h.

Constructor & Destructor Documentation

◆ interpreter() [1/2]

interpreter::interpreter ( application app_context = nullptr)

◆ interpreter() [2/2]

interpreter::interpreter ( const interpreter )
delete

◆ ~interpreter()

interpreter::~interpreter ( void  )

Definition at line 660 of file interpreter.cc.

References m_app_context, m_gh_manager, and shutdown().

Member Function Documentation

◆ add_atexit_fcn()

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

Definition at line 2010 of file interpreter.cc.

References m_atexit_fcns, and m_executing_atexit.

◆ add_debug_watch_expression()

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

Definition at line 1914 of file interpreter.cc.

References tree_evaluator::add_debug_watch_expression(), and m_evaluator.

◆ assign()

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

Definition at line 1693 of file interpreter.cc.

References tree_evaluator::assign(), and m_evaluator.

◆ assignin()

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

Definition at line 1699 of file interpreter.cc.

References tree_evaluator::assignin(), and m_evaluator.

◆ at_top_level()

bool interpreter::at_top_level ( void  ) const

Definition at line 1713 of file interpreter.cc.

References tree_evaluator::at_top_level(), and m_evaluator.

◆ autoloaded_functions()

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

◆ cancel_quit()

void interpreter::cancel_quit ( bool  flag)
inline

Definition at line 528 of file interpreter.h.

◆ chdir()

◆ cleanup_tmp_files()

void interpreter::cleanup_tmp_files ( void  )

Definition at line 1963 of file interpreter.cc.

References temporary_file_list::cleanup(), and m_tmp_files.

◆ clear_all()

void interpreter::clear_all ( bool  force = false)

Definition at line 1728 of file interpreter.cc.

References tree_evaluator::clear_all(), and m_evaluator.

Referenced by do_matlab_compatible_clear(), and shutdown().

◆ clear_debug_watch_expressions()

void interpreter::clear_debug_watch_expressions ( void  )

◆ clear_function()

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

Definition at line 1783 of file interpreter.cc.

References symbol_table::clear_function(), and m_symbol_table.

Referenced by do_clear_functions().

◆ clear_function_pattern()

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

Definition at line 1793 of file interpreter.cc.

References symbol_table::clear_function_pattern(), and m_symbol_table.

Referenced by do_clear_functions().

◆ clear_function_regexp()

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

Definition at line 1798 of file interpreter.cc.

References symbol_table::clear_function_regexp(), and m_symbol_table.

◆ clear_functions()

void interpreter::clear_functions ( bool  force = false)

Definition at line 1778 of file interpreter.cc.

References symbol_table::clear_functions(), and m_symbol_table.

Referenced by do_clear_functions().

◆ clear_global_variable()

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

Definition at line 1758 of file interpreter.cc.

References tree_evaluator::clear_global_variable(), and m_evaluator.

Referenced by do_clear_globals().

◆ clear_global_variable_pattern()

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

Definition at line 1763 of file interpreter.cc.

References tree_evaluator::clear_global_variable_pattern(), and m_evaluator.

Referenced by do_clear_globals().

◆ clear_global_variable_regexp()

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

Definition at line 1768 of file interpreter.cc.

References tree_evaluator::clear_global_variable_regexp(), and m_evaluator.

◆ clear_global_variables()

void interpreter::clear_global_variables ( void  )

Definition at line 1773 of file interpreter.cc.

References tree_evaluator::clear_global_variables(), and m_evaluator.

◆ clear_objects()

void interpreter::clear_objects ( void  )

Definition at line 1733 of file interpreter.cc.

References tree_evaluator::clear_objects(), and m_evaluator.

Referenced by do_matlab_compatible_clear().

◆ clear_symbol()

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

Definition at line 1788 of file interpreter.cc.

References tree_evaluator::clear_symbol(), and m_evaluator.

◆ clear_symbol_pattern()

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

◆ clear_symbol_regexp()

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

Definition at line 1808 of file interpreter.cc.

References tree_evaluator::clear_symbol_regexp(), and m_evaluator.

◆ clear_variable()

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

Definition at line 1738 of file interpreter.cc.

References tree_evaluator::clear_variable(), and m_evaluator.

Referenced by do_clear_globals(), and do_clear_variables().

◆ clear_variable_pattern()

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

Definition at line 1743 of file interpreter.cc.

References tree_evaluator::clear_variable_pattern(), and m_evaluator.

Referenced by do_clear_globals(), and do_clear_variables().

◆ clear_variable_regexp()

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

Definition at line 1748 of file interpreter.cc.

References tree_evaluator::clear_variable_regexp(), and m_evaluator.

Referenced by do_clear_variables().

◆ clear_variables()

void interpreter::clear_variables ( void  )

◆ debug_watch_expressions()

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

Definition at line 1929 of file interpreter.cc.

References tree_evaluator::debug_watch_expressions(), and m_evaluator.

◆ display_startup_message()

void interpreter::display_startup_message ( void  ) const
private

◆ eval() [1/2]

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

Definition at line 1515 of file interpreter.cc.

References tree_evaluator::eval(), and m_evaluator.

◆ eval() [2/2]

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

Definition at line 1509 of file interpreter.cc.

References tree_evaluator::eval(), and m_evaluator.

Referenced by base_qobject::execute_command().

◆ eval_string() [1/3]

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

Definition at line 1502 of file interpreter.cc.

References tree_evaluator::eval_string(), and m_evaluator.

◆ eval_string() [2/3]

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

Definition at line 1496 of file interpreter.cc.

References tree_evaluator::eval_string(), and m_evaluator.

◆ eval_string() [3/3]

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

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

References tree_evaluator::evalin(), and m_evaluator.

◆ evalin() [2/2]

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

Definition at line 1522 of file interpreter.cc.

References tree_evaluator::evalin(), and m_evaluator.

Referenced by quit().

◆ execute()

◆ execute_atexit_fcns()

void interpreter::execute_atexit_fcns ( void  )
private

Definition at line 1078 of file interpreter.cc.

References feval(), flush_stdout(), m_atexit_fcns, m_executing_atexit, and OCTAVE_SAFE_CALL.

Referenced by shutdown().

◆ execute_command_line_file()

◆ execute_eval_option_code()

int interpreter::execute_eval_option_code ( void  )
private

◆ execute_pkg_add()

void interpreter::execute_pkg_add ( const std::string &  dir)
private

◆ execute_startup_files()

◆ executing_finish_script()

bool interpreter::executing_finish_script ( void  ) const
inline

Definition at line 530 of file interpreter.h.

◆ experimental_terminal_widget()

bool interpreter::experimental_terminal_widget ( void  ) 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 1546 of file interpreter.cc.

Referenced by internal_fcn_handle::call(), simple_fcn_handle::call(), scoped_fcn_handle::call(), class_simple_fcn_handle::call(), tree_evaluator::evaluate_end_expression(), octave_inline_fcn::execute(), execute_atexit_fcns(), feval(), feval(), get_function_handle(), main_window::handle_open_any_request(), set_path_model::save(), and shutdown().

◆ 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 1632 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 1567 of file interpreter.cc.

References octave_function::call(), and m_evaluator.

◆ find()

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

◆ get_app_context()

application* interpreter::get_app_context ( void  )
inline

Definition at line 231 of file interpreter.h.

Referenced by base_qobject::close_gui().

◆ get_cdef_manager()

cdef_manager& interpreter::get_cdef_manager ( void  )
inline

◆ get_child_list()

child_list& interpreter::get_child_list ( void  )
inline

◆ get_current_scope()

◆ get_display_info()

display_info& interpreter::get_display_info ( void  )
inline

Definition at line 236 of file interpreter.h.

Referenced by __get_display_info__().

◆ get_dynamic_loader()

dynamic_loader& interpreter::get_dynamic_loader ( void  )
inline

Definition at line 278 of file interpreter.h.

Referenced by __get_dynamic_loader__(), and load_fcn_from_file().

◆ get_environment()

environment& interpreter::get_environment ( void  )
inline

Definition at line 241 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 ( void  )
inline

Definition at line 333 of file interpreter.h.

Referenced by __get_gh_manager__().

◆ get_gtk_manager()

gtk_manager& interpreter::get_gtk_manager ( void  )
inline

Definition at line 323 of file interpreter.h.

Referenced by __get_gtk_manager__().

◆ get_help_system()

help_system& interpreter::get_help_system ( void  )
inline

Definition at line 258 of file interpreter.h.

Referenced by __get_help_system__().

◆ get_history_system()

history_system& interpreter::get_history_system ( void  )
inline

◆ get_input_system()

◆ get_line_and_eval()

void interpreter::get_line_and_eval ( void  )

Definition at line 792 of file interpreter.cc.

References tree_evaluator::get_line_and_eval(), and m_evaluator.

Referenced by cli_input_reader::start().

◆ get_load_path()

◆ get_load_save_system()

load_save_system& interpreter::get_load_save_system ( void  )
inline

Definition at line 288 of file interpreter.h.

Referenced by __get_load_save_system__().

◆ get_output_system()

output_system& interpreter::get_output_system ( void  )
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 ( void  )

Definition at line 1396 of file interpreter.cc.

References tree_evaluator::get_profiler(), and m_evaluator.

◆ get_settings()

settings& interpreter::get_settings ( void  )
inline

◆ get_stream_list()

stream_list & interpreter::get_stream_list ( void  )

Definition at line 1363 of file interpreter.cc.

References m_stream_list.

Referenced by printf_internal(), puts_internal(), scanf_internal(), and textscan_internal().

◆ get_symbol_table()

◆ get_top_scope()

symbol_scope interpreter::get_top_scope ( void  ) const

Definition at line 1374 of file interpreter.cc.

References tree_evaluator::get_top_scope(), and m_evaluator.

◆ get_type_info()

◆ get_url_handle_manager()

url_handle_manager & interpreter::get_url_handle_manager ( void  )

Definition at line 1368 of file interpreter.cc.

References m_url_handle_manager.

◆ global_assign()

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

Definition at line 1661 of file interpreter.cc.

References tree_evaluator::global_assign(), and m_evaluator.

◆ global_variable_names()

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

Definition at line 1813 of file interpreter.cc.

References tree_evaluator::global_variable_names(), and m_evaluator.

Referenced by do_clear_globals().

◆ global_varval()

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

Definition at line 1656 of file interpreter.cc.

References tree_evaluator::global_varval(), and m_evaluator.

◆ handle_exception()

◆ in_top_level_repl()

bool interpreter::in_top_level_repl ( void  ) const
inline

Definition at line 211 of file interpreter.h.

Referenced by debugger::quitting_debugger().

◆ inhibit_startup_message()

void interpreter::inhibit_startup_message ( bool  flag)
inline

Definition at line 206 of file interpreter.h.

Referenced by display_startup_message(), and execute_startup_files().

◆ 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 ( void  ) const
inline

Definition at line 216 of file interpreter.h.

Referenced by interpreter_qobject::execute().

◆ install_variable()

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

◆ interactive() [1/2]

void interpreter::interactive ( bool  arg)
inline

Definition at line 176 of file interpreter.h.

◆ interactive() [2/2]

◆ intern_nargin()

void interpreter::intern_nargin ( octave_idx_type  nargs)

◆ interrupt()

void interpreter::interrupt ( void  )

◆ interrupt_all_in_process_group() [1/2]

void interpreter::interrupt_all_in_process_group ( bool  b)
inline

Definition at line 221 of file interpreter.h.

◆ interrupt_all_in_process_group() [2/2]

bool interpreter::interrupt_all_in_process_group ( void  ) const
inline

Definition at line 226 of file interpreter.h.

◆ is_local_variable()

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

Definition at line 1683 of file interpreter.cc.

References tree_evaluator::is_local_variable(), and m_evaluator.

Referenced by do_matlab_compatible_clear().

◆ is_variable()

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

◆ isglobal()

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

Definition at line 1718 of file interpreter.cc.

References tree_evaluator::is_global(), and m_evaluator.

◆ main_loop()

int interpreter::main_loop ( void  )
private

◆ make_function_handle()

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

Definition at line 1645 of file interpreter.cc.

References m_evaluator, and tree_evaluator::make_fcn_handle().

◆ mark_for_deletion()

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

Definition at line 1958 of file interpreter.cc.

References temporary_file_list::insert(), and m_tmp_files.

◆ maximum_braindamage()

◆ mfilename()

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

Definition at line 1484 of file interpreter.cc.

References m_evaluator, and tree_evaluator::mfilename().

◆ mislocked() [1/3]

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

Definition at line 1433 of file interpreter.cc.

References m_evaluator, and tree_evaluator::mislocked().

Referenced by mislocked().

◆ mislocked() [2/3]

bool interpreter::mislocked ( const char *  nm)

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

References m_evaluator, and tree_evaluator::mlock().

◆ munlock() [1/3]

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

Definition at line 1428 of file interpreter.cc.

References m_evaluator, and tree_evaluator::munlock().

Referenced by 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)

◆ operator=()

interpreter& interpreter::operator= ( const interpreter )
delete

◆ parse_and_execute()

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

◆ pause()

void interpreter::pause ( void  )

◆ quit()

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

◆ read_init_files()

void interpreter::read_init_files ( bool  flag)
inline

Definition at line 186 of file interpreter.h.

Referenced by execute_startup_files().

◆ read_site_files()

void interpreter::read_site_files ( bool  flag)
inline

Definition at line 181 of file interpreter.h.

Referenced by execute_startup_files().

◆ recover_from_exception()

◆ remove_atexit_fcn()

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

Definition at line 2018 of file interpreter.cc.

References m_atexit_fcns.

◆ remove_debug_watch_expression()

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

◆ require_current_scope()

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

Definition at line 1386 of file interpreter.cc.

References error(), and get_current_scope().

◆ resume()

void interpreter::resume ( void  )

◆ server_loop()

int interpreter::server_loop ( void  )
private

Definition at line 1353 of file interpreter.cc.

References m_evaluator, and tree_evaluator::server_loop().

Referenced by execute().

◆ server_mode()

bool interpreter::server_mode ( void  ) const
inline

◆ set_global_value()

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

◆ shutdown()

◆ source_file()

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

◆ stop()

void interpreter::stop ( void  )

◆ the_interpreter()

static interpreter* interpreter::the_interpreter ( void  )
inlinestatic

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

References m_evaluator, and tree_evaluator::top_level_assign().

◆ top_level_variable_names()

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

Definition at line 1818 of file interpreter.cc.

References m_evaluator, and tree_evaluator::top_level_variable_names().

◆ top_level_varval()

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

Definition at line 1667 of file interpreter.cc.

References m_evaluator, and tree_evaluator::top_level_varval().

◆ traditional() [1/2]

void interpreter::traditional ( bool  flag)
inline

Definition at line 196 of file interpreter.h.

◆ traditional() [2/2]

bool interpreter::traditional ( void  ) const
inline

Definition at line 201 of file interpreter.h.

◆ user_function_names()

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

Definition at line 1828 of file interpreter.cc.

References m_symbol_table, and symbol_table::user_function_names().

Referenced by do_clear_functions().

◆ variable_names()

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

Definition at line 1823 of file interpreter.cc.

References m_evaluator, and tree_evaluator::variable_names().

Referenced by do_clear_variables().

◆ varval()

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

◆ verbose()

void interpreter::verbose ( bool  flag)
inline

Definition at line 191 of file interpreter.h.

Referenced by execute_command_line_file(), execute_startup_files(), and source_file().

Member Data Documentation

◆ m_app_context

◆ m_atexit_fcns

std::list<std::string> interpreter::m_atexit_fcns
private

Definition at line 579 of file interpreter.h.

Referenced by add_atexit_fcn(), execute_atexit_fcns(), and remove_atexit_fcn().

◆ m_cancel_quit

bool interpreter::m_cancel_quit
private

Definition at line 642 of file interpreter.h.

Referenced by quit().

◆ m_cdef_manager

cdef_manager interpreter::m_cdef_manager
private

Definition at line 615 of file interpreter.h.

◆ m_child_list

child_list interpreter::m_child_list
private

Definition at line 611 of file interpreter.h.

◆ m_display_info

display_info interpreter::m_display_info
private

Definition at line 581 of file interpreter.h.

Referenced by interpreter().

◆ m_dynamic_loader

dynamic_loader interpreter::m_dynamic_loader
private

Definition at line 599 of file interpreter.h.

◆ m_environment

environment interpreter::m_environment
private

Definition at line 583 of file interpreter.h.

Referenced by interpreter().

◆ m_error_system

error_system interpreter::m_error_system
private

Definition at line 587 of file interpreter.h.

Referenced by handle_exception(), and maximum_braindamage().

◆ m_evaluator

◆ m_event_manager

event_manager interpreter::m_event_manager
private

Definition at line 619 of file interpreter.h.

Referenced by chdir(), execute(), quit(), recover_from_exception(), and shutdown().

◆ m_executing_atexit

bool interpreter::m_executing_atexit
private

Definition at line 646 of file interpreter.h.

Referenced by add_atexit_fcn(), and execute_atexit_fcns().

◆ m_executing_finish_script

bool interpreter::m_executing_finish_script
private

Definition at line 644 of file interpreter.h.

Referenced by quit().

◆ m_gh_manager

gh_manager* interpreter::m_gh_manager
private

Definition at line 621 of file interpreter.h.

Referenced by interpreter(), and ~interpreter().

◆ m_gtk_manager

gtk_manager interpreter::m_gtk_manager
private

Definition at line 617 of file interpreter.h.

Referenced by shutdown().

◆ m_help_system

help_system interpreter::m_help_system
private

Definition at line 591 of file interpreter.h.

◆ m_history_initialized

bool interpreter::m_history_initialized
private

Definition at line 638 of file interpreter.h.

Referenced by initialize_history().

◆ m_history_system

history_system interpreter::m_history_system
private

Definition at line 597 of file interpreter.h.

Referenced by initialize_history(), maximum_braindamage(), and shutdown().

◆ m_inhibit_startup_message

bool interpreter::m_inhibit_startup_message
private

Definition at line 634 of file interpreter.h.

Referenced by execute_startup_files().

◆ m_initialized

bool interpreter::m_initialized
private

Definition at line 648 of file interpreter.h.

Referenced by initialize(), and shutdown().

◆ m_input_system

input_system interpreter::m_input_system
private

Definition at line 593 of file interpreter.h.

Referenced by interpreter(), maximum_braindamage(), and shutdown().

◆ m_instance

OCTAVE_THREAD_LOCAL interpreter * interpreter::m_instance = nullptr
staticprivate

Definition at line 573 of file interpreter.h.

Referenced by interpreter().

◆ m_interactive

bool interpreter::m_interactive
private

◆ m_interrupt_all_in_process_group

bool interpreter::m_interrupt_all_in_process_group
private

Definition at line 640 of file interpreter.h.

Referenced by interrupt().

◆ m_load_path

load_path interpreter::m_load_path
private

Definition at line 601 of file interpreter.h.

Referenced by interpreter(), chdir(), execute_pkg_add(), and initialize_load_path().

◆ m_load_path_initialized

bool interpreter::m_load_path_initialized
private

Definition at line 636 of file interpreter.h.

Referenced by initialize_load_path().

◆ m_load_save_system

load_save_system interpreter::m_load_save_system
private

Definition at line 603 of file interpreter.h.

Referenced by maximum_braindamage().

◆ m_output_system

output_system interpreter::m_output_system
private

Definition at line 595 of file interpreter.h.

◆ m_read_init_files

bool interpreter::m_read_init_files
private

Definition at line 628 of file interpreter.h.

Referenced by execute_startup_files().

◆ m_read_site_files

bool interpreter::m_read_site_files
private

Definition at line 626 of file interpreter.h.

Referenced by execute_startup_files().

◆ m_settings

settings interpreter::m_settings
private

Definition at line 585 of file interpreter.h.

◆ m_stream_list

stream_list interpreter::m_stream_list
private

Definition at line 609 of file interpreter.h.

Referenced by get_stream_list().

◆ m_symbol_table

◆ m_tmp_files

temporary_file_list interpreter::m_tmp_files
private

Definition at line 577 of file interpreter.h.

Referenced by cleanup_tmp_files(), and mark_for_deletion().

◆ m_traditional

bool interpreter::m_traditional
private

Definition at line 632 of file interpreter.h.

Referenced by interpreter().

◆ m_type_info

type_info interpreter::m_type_info
private

Definition at line 605 of file interpreter.h.

◆ m_url_handle_manager

url_handle_manager interpreter::m_url_handle_manager
private

Definition at line 613 of file interpreter.h.

Referenced by get_url_handle_manager().

◆ m_verbose

bool interpreter::m_verbose
private

Definition at line 630 of file interpreter.h.

Referenced by execute_startup_files().


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