GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Public Types | |
typedef int(* | char_is_quoted_fcn )(const std::string &, int) |
typedef std::string(* | completion_fcn )(const std::string &, int) |
typedef std::string(* | dequoting_fcn )(const std::string &, int) |
typedef int(* | event_hook_fcn )(void) |
typedef int(* | pre_input_hook_fcn )(void) |
typedef std::string(* | quoting_fcn )(const std::string &, int, char) |
typedef int(* | startup_hook_fcn )(void) |
typedef void(* | user_accept_line_fcn )(const std::string &) |
Public Member Functions | |
default_command_editor (void) | |
~default_command_editor (void) | |
void | do_accept_line (void) |
string_vector | do_generate_filename_completions (const std::string &text) |
std::string | do_get_current_line (void) const |
FILE * | do_get_input_stream (void) |
std::string | do_get_line_buffer (void) const |
FILE * | do_get_output_stream (void) |
void | do_insert_text (const std::string &text) |
void | do_newline (void) |
std::string | do_readline (const std::string &prompt, bool &eof) |
void | do_replace_line (const std::string &text, bool clear_undo) |
void | do_set_input_stream (FILE *f) |
void | do_set_output_stream (FILE *f) |
Protected Attributes | |
int | command_number |
std::string | initial_input |
bool | interrupted |
Private Member Functions | |
default_command_editor (const default_command_editor &) | |
default_command_editor & | operator= (const default_command_editor &) |
Private Attributes | |
FILE * | input_stream |
FILE * | output_stream |
Definition at line 792 of file cmd-edit.cc.
Definition at line 56 of file cmd-edit.h.
|
inherited |
Definition at line 50 of file cmd-edit.h.
|
inherited |
Definition at line 54 of file cmd-edit.h.
Definition at line 48 of file cmd-edit.h.
Definition at line 46 of file cmd-edit.h.
Definition at line 52 of file cmd-edit.h.
Definition at line 44 of file cmd-edit.h.
|
inherited |
Definition at line 58 of file cmd-edit.h.
|
inline |
Definition at line 797 of file cmd-edit.cc.
|
inline |
Definition at line 800 of file cmd-edit.cc.
|
private |
Definition at line 1310 of file cmd-edit.cc.
References command_editor::do_accept_line(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1382 of file cmd-edit.cc.
References command_editor::event_handler(), command_editor::event_hook_set, command_editor::instance, command_editor::instance_ok(), and command_editor::set_event_hook().
Referenced by gh_manager::do_enable_event_processing(), gh_manager::do_post_event(), Fadd_input_event_hook(), and octave_link::octave_link().
|
staticinherited |
Definition at line 1356 of file cmd-edit.cc.
References command_editor::instance, command_editor::instance_ok(), command_editor::pre_input_handler(), command_editor::pre_input_hook_set, and command_editor::set_pre_input_hook().
Referenced by command_editor::readline().
|
staticinherited |
Definition at line 1330 of file cmd-edit.cc.
References command_editor::instance, command_editor::instance_ok(), command_editor::set_startup_hook(), command_editor::startup_handler(), and command_editor::startup_hook_set.
Definition at line 1151 of file cmd-edit.cc.
References command_editor::do_blink_matching_paren(), command_editor::instance, and command_editor::instance_ok().
Referenced by octave_execute_interpreter().
Definition at line 1102 of file cmd-edit.cc.
References command_editor::do_clear_screen(), command_editor::instance, and command_editor::instance_ok().
Referenced by Fclc().
Definition at line 1323 of file cmd-edit.cc.
References command_editor::do_clear_undo_list(), command_editor::instance, and command_editor::instance_ok().
Definition at line 1123 of file cmd-edit.cc.
References command_editor::command_number, command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1116 of file cmd-edit.cc.
References command_editor::do_decode_prompt_string(), command_editor::instance, and command_editor::instance_ok().
Referenced by octave_base_reader::do_input_echo(), and octave_base_reader::octave_gets().
Implements command_editor.
Definition at line 911 of file cmd-edit.cc.
Definition at line 257 of file cmd-edit.h.
Referenced by command_editor::blink_matching_paren().
Definition at line 247 of file cmd-edit.h.
Referenced by command_editor::clear_screen().
Definition at line 310 of file cmd-edit.h.
Referenced by command_editor::clear_undo_list().
|
protectedvirtualinherited |
Definition at line 1496 of file cmd-edit.cc.
References octave_env::base_pathname(), command_editor::command_number, command_history::current_number(), octave_env::get_current_directory(), octave_env::get_home_directory(), octave_env::get_host_name(), octave_env::get_program_name(), octave_env::get_user_name(), command_editor::newline_chars(), octave_rl_prompt_end_ignore(), octave_rl_prompt_start_ignore(), octave_env::polite_directory_format(), command_editor::read_octal(), and octave_base_tm::strftime().
Referenced by command_editor::decode_prompt_string().
|
inlineprotectedvirtualinherited |
Definition at line 328 of file cmd-edit.h.
Referenced by command_editor::filename_completion_desired().
Definition at line 330 of file cmd-edit.h.
Referenced by command_editor::filename_quoting_desired().
|
virtual |
Implements command_editor.
Definition at line 873 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 287 of file cmd-edit.h.
Referenced by command_editor::get_char_is_quoted_function().
|
inlineprotectedvirtualinherited |
Definition at line 281 of file cmd-edit.h.
Referenced by command_editor::get_completion_function().
|
virtual |
Implements command_editor.
Definition at line 886 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 285 of file cmd-edit.h.
Referenced by command_editor::get_dequoting_function().
|
virtual |
|
virtual |
Implements command_editor.
Definition at line 880 of file cmd-edit.cc.
|
virtual |
|
inlineprotectedvirtualinherited |
Definition at line 283 of file cmd-edit.h.
Referenced by command_editor::get_quoting_function().
|
inlineprotectedvirtualinherited |
Definition at line 290 of file cmd-edit.h.
Referenced by command_editor::get_user_accept_line_function().
Definition at line 1736 of file cmd-edit.cc.
References command_editor::do_insert_text(), command_editor::do_redisplay(), command_editor::initial_input, and input().
Referenced by command_editor::insert_initial_input().
|
virtual |
Implements command_editor.
Definition at line 899 of file cmd-edit.cc.
Definition at line 332 of file cmd-edit.h.
Referenced by command_editor::interrupt().
Implements command_editor.
Definition at line 905 of file cmd-edit.cc.
Definition at line 326 of file cmd-edit.h.
Referenced by command_editor::re_read_init_file().
|
inlineprotectedvirtualinherited |
Definition at line 324 of file cmd-edit.h.
Referenced by command_editor::read_init_file().
|
inlineprotectedinherited |
Definition at line 224 of file cmd-edit.h.
Referenced by command_editor::readline().
|
virtual |
Implements command_editor.
Definition at line 840 of file cmd-edit.cc.
References input_stream, octave_fgetl(), and output_stream.
Definition at line 241 of file cmd-edit.h.
Referenced by command_editor::do_insert_initial_input(), and command_editor::redisplay().
Implements command_editor.
Definition at line 893 of file cmd-edit.cc.
Definition at line 249 of file cmd-edit.h.
Referenced by command_editor::resize_terminal().
Definition at line 255 of file cmd-edit.h.
Referenced by command_editor::restore_terminal_state().
|
inlineprotectedvirtualinherited |
Definition at line 263 of file cmd-edit.h.
Referenced by command_editor::set_basic_quote_characters().
|
inlineprotectedvirtualinherited |
Definition at line 259 of file cmd-edit.h.
Referenced by command_editor::set_basic_word_break_characters().
|
inlineprotectedvirtualinherited |
Definition at line 277 of file cmd-edit.h.
Referenced by command_editor::set_char_is_quoted_function().
|
inlineprotectedvirtualinherited |
Definition at line 267 of file cmd-edit.h.
Referenced by command_editor::set_completer_quote_characters().
|
inlineprotectedvirtualinherited |
Definition at line 261 of file cmd-edit.h.
Referenced by command_editor::set_completer_word_break_characters().
|
inlineprotectedvirtualinherited |
Definition at line 269 of file cmd-edit.h.
Referenced by command_editor::set_completion_append_character().
|
inlineprotectedvirtualinherited |
Definition at line 271 of file cmd-edit.h.
Referenced by command_editor::set_completion_function().
|
inlineprotectedvirtualinherited |
Definition at line 275 of file cmd-edit.h.
Referenced by command_editor::set_dequoting_function().
|
inlineprotectedvirtualinherited |
Definition at line 265 of file cmd-edit.h.
Referenced by command_editor::set_filename_quote_characters().
|
virtual |
Implements command_editor.
Definition at line 849 of file cmd-edit.cc.
References f, and input_stream.
|
inlineprotectedvirtualinherited |
Definition at line 222 of file cmd-edit.h.
Referenced by command_editor::set_name().
|
virtual |
Implements command_editor.
Definition at line 861 of file cmd-edit.cc.
References f, and output_stream.
|
inlineprotectedvirtualinherited |
Definition at line 273 of file cmd-edit.h.
Referenced by command_editor::set_quoting_function().
|
inlineprotectedvirtualinherited |
Definition at line 279 of file cmd-edit.h.
Referenced by command_editor::set_user_accept_line_function().
Definition at line 245 of file cmd-edit.h.
Referenced by command_editor::terminal_cols().
Definition at line 243 of file cmd-edit.h.
Referenced by command_editor::terminal_rows().
Definition at line 308 of file cmd-edit.h.
Referenced by command_editor::undo().
Definition at line 1776 of file cmd-edit.cc.
References current_liboctave_error_handler.
|
protectedinherited |
Definition at line 1782 of file cmd-edit.cc.
References current_liboctave_error_handler.
Definition at line 1436 of file cmd-edit.cc.
References command_editor::do_filename_completion_desired(), command_editor::instance, and command_editor::instance_ok().
Definition at line 1443 of file cmd-edit.cc.
References command_editor::do_filename_quoting_desired(), command_editor::instance, and command_editor::instance_ok().
Definition at line 951 of file cmd-edit.cc.
References command_editor::instance.
Referenced by octave_initialize_interpreter().
|
staticinherited |
Definition at line 1270 of file cmd-edit.cc.
References command_editor::do_generate_filename_completions(), command_editor::instance, and command_editor::instance_ok().
Referenced by generate_completion().
|
staticinherited |
Definition at line 1256 of file cmd-edit.cc.
References command_editor::do_get_char_is_quoted_function(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1235 of file cmd-edit.cc.
References command_editor::do_get_completion_function(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1283 of file cmd-edit.cc.
References command_editor::do_get_current_line(), command_editor::instance, and command_editor::instance_ok().
Referenced by main_window::execute_command_callback().
|
staticinherited |
Definition at line 1249 of file cmd-edit.cc.
References command_editor::do_get_dequoting_function(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1060 of file cmd-edit.cc.
References command_editor::do_get_input_stream(), command_editor::instance, and command_editor::instance_ok().
Referenced by get_input_from_stdin().
|
staticinherited |
Definition at line 1277 of file cmd-edit.cc.
References command_editor::do_get_line_buffer(), command_editor::instance, and command_editor::instance_ok().
Referenced by is_completing_dirfns().
|
staticinherited |
Definition at line 1074 of file cmd-edit.cc.
References command_editor::do_get_output_stream(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1242 of file cmd-edit.cc.
References command_editor::do_get_quoting_function(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1263 of file cmd-edit.cc.
References command_editor::do_get_user_accept_line_function(), command_editor::instance, and command_editor::instance_ok().
Definition at line 1137 of file cmd-edit.cc.
References command_editor::command_number, command_editor::instance, and command_editor::instance_ok().
Referenced by main_loop().
Definition at line 965 of file cmd-edit.cc.
References command_editor::do_insert_initial_input(), command_editor::instance, and command_editor::instance_ok().
Referenced by command_editor::readline().
|
staticinherited |
Definition at line 1296 of file cmd-edit.cc.
References command_editor::do_insert_text(), command_editor::instance, and command_editor::instance_ok().
Definition at line 1450 of file cmd-edit.cc.
References arg(), command_editor::do_interrupt(), command_editor::instance, command_editor::instance_ok(), and command_editor::interrupted.
Referenced by main_window::clear_command_window_callback(), main_window::debug_continue_callback(), main_window::debug_quit_callback(), main_window::debug_step_into_callback(), main_window::debug_step_out_callback(), main_window::debug_step_over_callback(), main_window::execute_command_callback(), and get_debug_input().
Definition at line 1303 of file cmd-edit.cc.
References command_editor::do_newline(), command_editor::instance, and command_editor::instance_ok().
|
inlineprotectedvirtualinherited |
Definition at line 253 of file cmd-edit.h.
Referenced by command_editor::do_decode_prompt_string().
|
private |
Definition at line 1429 of file cmd-edit.cc.
References command_editor::do_re_read_init_file(), command_editor::instance, and command_editor::instance_ok().
Referenced by Freadline_re_read_init_file().
|
staticinherited |
Definition at line 1418 of file cmd-edit.cc.
References command_editor::do_read_init_file(), command_editor::instance, command_editor::instance_ok(), and file_ops::tilde_expand().
Referenced by Freadline_read_init_file().
|
protectedinherited |
Definition at line 1754 of file cmd-edit.cc.
Referenced by command_editor::do_decode_prompt_string().
|
staticinherited |
Definition at line 1029 of file cmd-edit.cc.
Referenced by gnu_readline().
|
staticinherited |
Definition at line 1037 of file cmd-edit.cc.
References command_editor::add_pre_input_hook(), command_editor::do_readline(), command_editor::initial_input, command_editor::insert_initial_input(), command_editor::instance, and command_editor::instance_ok().
Definition at line 1081 of file cmd-edit.cc.
References command_editor::do_redisplay(), command_editor::instance, and command_editor::instance_ok().
Referenced by main_window::command_window_undo_callback(), and main_window::execute_command_callback().
|
staticinherited |
Definition at line 1395 of file cmd-edit.cc.
References command_editor::event_hook_set, command_editor::instance, command_editor::instance_ok(), and command_editor::restore_event_hook().
Referenced by gh_manager::do_enable_event_processing(), gh_manager::do_process_events(), Fremove_input_event_hook(), and internal_input_event_hook_fcn().
|
staticinherited |
Definition at line 1367 of file cmd-edit.cc.
References command_editor::instance, command_editor::instance_ok(), command_editor::pre_input_hook_set, and command_editor::restore_pre_input_hook().
|
staticinherited |
Definition at line 1341 of file cmd-edit.cc.
References command_editor::instance, command_editor::instance_ok(), command_editor::restore_startup_hook(), and command_editor::startup_hook_set.
|
staticinherited |
Definition at line 1289 of file cmd-edit.cc.
References command_editor::do_replace_line(), command_editor::instance, and command_editor::instance_ok().
Referenced by main_window::execute_command_callback().
Definition at line 1130 of file cmd-edit.cc.
References command_editor::command_number, command_editor::instance, and command_editor::instance_ok().
Referenced by octave_execute_interpreter().
Definition at line 1109 of file cmd-edit.cc.
References command_editor::do_resize_terminal(), command_editor::instance, and command_editor::instance_ok().
Referenced by main_window::resize_command_window_callback().
Definition at line 322 of file cmd-edit.h.
Referenced by command_editor::remove_event_hook().
Definition at line 318 of file cmd-edit.h.
Referenced by command_editor::remove_pre_input_hook().
Definition at line 314 of file cmd-edit.h.
Referenced by command_editor::remove_startup_hook().
Definition at line 1144 of file cmd-edit.cc.
References command_editor::do_restore_terminal_state(), command_editor::instance, and command_editor::instance_ok().
Referenced by do_octave_atexit().
Definition at line 1412 of file cmd-edit.cc.
References command_editor::event_handler().
Referenced by Fwaitfor().
|
staticinherited |
Definition at line 1172 of file cmd-edit.cc.
References command_editor::do_set_basic_quote_characters(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
|
staticinherited |
Definition at line 1158 of file cmd-edit.cc.
References command_editor::do_set_basic_word_break_characters(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
|
staticinherited |
Definition at line 1221 of file cmd-edit.cc.
References command_editor::do_set_char_is_quoted_function(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1186 of file cmd-edit.cc.
References command_editor::do_set_completer_quote_characters(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
|
staticinherited |
Definition at line 1165 of file cmd-edit.cc.
References command_editor::do_set_completer_word_break_characters(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
Definition at line 1193 of file cmd-edit.cc.
References command_editor::do_set_completion_append_character(), command_editor::instance, and command_editor::instance_ok().
Referenced by generate_completion().
|
staticinherited |
Definition at line 1200 of file cmd-edit.cc.
References command_editor::do_set_completion_function(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
|
staticinherited |
Definition at line 1214 of file cmd-edit.cc.
References command_editor::do_set_dequoting_function(), command_editor::instance, and command_editor::instance_ok().
|
inlineprotectedvirtualinherited |
Definition at line 320 of file cmd-edit.h.
Referenced by command_editor::add_event_hook().
|
staticinherited |
Definition at line 1179 of file cmd-edit.cc.
References command_editor::do_set_filename_quote_characters(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
|
staticinherited |
Definition at line 958 of file cmd-edit.cc.
References command_editor::initial_input, command_editor::instance, and command_editor::instance_ok().
Referenced by main_window::execute_command_callback().
|
staticinherited |
Definition at line 1053 of file cmd-edit.cc.
References command_editor::do_set_input_stream(), command_editor::instance, and command_editor::instance_ok().
Referenced by get_input_from_stdin().
|
staticinherited |
Definition at line 1022 of file cmd-edit.cc.
References command_editor::do_set_name(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
|
staticinherited |
Definition at line 1067 of file cmd-edit.cc.
References command_editor::do_set_output_stream(), command_editor::instance, and command_editor::instance_ok().
|
inlineprotectedvirtualinherited |
Definition at line 316 of file cmd-edit.h.
Referenced by command_editor::add_pre_input_hook().
|
staticinherited |
Definition at line 1207 of file cmd-edit.cc.
References command_editor::do_set_quoting_function(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
|
inlineprotectedvirtualinherited |
Definition at line 312 of file cmd-edit.h.
Referenced by command_editor::add_startup_hook().
|
staticinherited |
Definition at line 1228 of file cmd-edit.cc.
References command_editor::do_set_user_accept_line_function(), command_editor::instance, and command_editor::instance_ok().
Definition at line 1095 of file cmd-edit.cc.
References command_editor::do_terminal_cols(), command_editor::instance, and command_editor::instance_ok().
Referenced by Fterminal_size(), string_vector::list_in_columns(), more_than_a_screenful(), octave_print_internal(), and octave_print_internal_template().
Definition at line 1088 of file cmd-edit.cc.
References command_editor::do_terminal_rows(), command_editor::instance, and command_editor::instance_ok().
Referenced by Fterminal_size(), and more_than_a_screenful().
Definition at line 1317 of file cmd-edit.cc.
References command_editor::do_undo(), command_editor::instance, and command_editor::instance_ok().
Referenced by main_window::command_window_undo_callback().
|
protectedinherited |
Definition at line 343 of file cmd-edit.h.
Referenced by command_editor::current_command_number(), command_editor::do_decode_prompt_string(), command_editor::increment_current_command_number(), and command_editor::reset_current_command_number().
|
protectedinherited |
Definition at line 347 of file cmd-edit.h.
Referenced by command_editor::do_insert_initial_input(), command_editor::readline(), and command_editor::set_initial_input().
|
private |
Definition at line 828 of file cmd-edit.cc.
Referenced by do_get_input_stream(), do_readline(), and do_set_input_stream().
|
protectedinherited |
Definition at line 345 of file cmd-edit.h.
Referenced by command_editor::interrupt().
|
private |
Definition at line 830 of file cmd-edit.cc.
Referenced by do_get_output_stream(), do_readline(), and do_set_output_stream().