Public Member Functions | |
symbol_cleaner (bool clear_all_names=true, bool clear_objects=false) | |
symbol_cleaner (const std::string &pattern, bool have_regexp=false) | |
symbol_cleaner (const string_vector &patterns, bool have_regexp=false) | |
symbol_cleaner (const symbol_cleaner &)=delete | |
~symbol_cleaner (void)=default | |
symbol_cleaner & | operator= (const symbol_cleaner &)=delete |
void | visit_compiled_fcn_stack_frame (compiled_fcn_stack_frame &frame) |
void | visit_scope_stack_frame (scope_stack_frame &frame) |
void | visit_script_stack_frame (script_stack_frame &frame) |
void | visit_user_fcn_stack_frame (user_fcn_stack_frame &frame) |
Private Member Functions | |
void | clean_frame (stack_frame &frame) |
void | clear_symbols (stack_frame &frame, const std::list< symbol_record > &symbols) |
void | maybe_clear_symbol (stack_frame &frame, const symbol_record &sym) |
Private Attributes | |
bool | m_clear_all_names |
bool | m_clear_objects |
std::set< std::string > | m_cleared_names |
bool | m_have_regexp |
string_vector | m_patterns |
Definition at line 610 of file stack-frame.cc.
|
inline |
Definition at line 614 of file stack-frame.cc.
|
inline |
Definition at line 620 of file stack-frame.cc.
|
inline |
Definition at line 626 of file stack-frame.cc.
|
delete |
|
default |
|
inlineprivate |
Definition at line 750 of file stack-frame.cc.
References clear_symbols(), string_vector::empty(), octave::stack_frame::get_scope(), m_clear_all_names, m_patterns, and octave::symbol_scope::symbol_list().
Referenced by visit_scope_stack_frame(), and visit_user_fcn_stack_frame().
|
inlineprivate |
Definition at line 706 of file stack-frame.cc.
References octave::regexp::is_match(), m_clear_all_names, m_have_regexp, m_patterns, glob_match::match(), maybe_clear_symbol(), and string_vector::numel().
Referenced by clean_frame().
|
inlineprivate |
Definition at line 680 of file stack-frame.cc.
References octave::stack_frame::clear(), octave::stack_frame::is_object(), m_clear_objects, m_cleared_names, name, and octave::symbol_record::name().
Referenced by clear_symbols().
|
delete |
|
inlinevirtual |
Implements octave::stack_frame_walker.
Definition at line 638 of file stack-frame.cc.
References octave::stack_frame::static_link().
|
inlinevirtual |
Implements octave::stack_frame_walker.
Definition at line 668 of file stack-frame.cc.
References octave::stack_frame::access_link(), and clean_frame().
|
inlinevirtual |
Implements octave::stack_frame_walker.
Definition at line 650 of file stack-frame.cc.
References octave::stack_frame::access_link().
|
inlinevirtual |
Implements octave::stack_frame_walker.
Definition at line 658 of file stack-frame.cc.
References octave::stack_frame::access_link(), and clean_frame().
|
private |
Definition at line 762 of file stack-frame.cc.
Referenced by clean_frame(), and clear_symbols().
|
private |
Definition at line 763 of file stack-frame.cc.
Referenced by maybe_clear_symbol().
|
private |
Definition at line 766 of file stack-frame.cc.
Referenced by maybe_clear_symbol().
|
private |
Definition at line 764 of file stack-frame.cc.
Referenced by clear_symbols().
|
private |
Definition at line 760 of file stack-frame.cc.
Referenced by clean_frame(), and clear_symbols().