#include "symrec.h"
Classes | |
class | symbol_record_rep |
Public Types | |
typedef std::size_t | context_id |
enum | symrec_t : unsigned char { LOCAL = 1 , FORMAL = 2 , ADDED_STATIC = 4 , VARIABLE = 8 } |
Public Member Functions | |
symbol_record (const std::string &nm, const octave_value &, symrec_t sc=LOCAL) | |
symbol_record (const std::string &nm="", symrec_t sc=LOCAL) | |
symbol_record (const symbol_record &)=default | |
~symbol_record (void)=default | |
std::size_t | data_offset (void) const |
octave_value | dump (void) const |
symbol_record | dup (void) const |
std::size_t | frame_offset (void) const |
bool | is_added_static (void) const |
bool | is_formal (void) const |
bool | is_local (void) const |
bool | is_valid (void) const |
bool | is_variable (void) const |
void | mark_added_static (void) |
void | mark_as_variable (void) |
void | mark_formal (void) |
void | mark_local (void) |
std::string | name (void) const |
operator bool () const | |
symbol_record & | operator= (const symbol_record &)=default |
void | rename (const std::string &new_name) |
void | set_data_offset (std::size_t offset) |
void | set_frame_offset (std::size_t offset) |
unsigned int | storage_class (void) const |
void | unmark_added_static (void) |
void | unmark_as_variable (void) |
void | unmark_formal (void) |
void | unmark_local (void) |
Private Member Functions | |
symbol_record (const std::shared_ptr< symbol_record_rep > &new_rep) | |
Private Attributes | |
std::shared_ptr< symbol_record_rep > | m_rep |
typedef std::size_t octave::symbol_record::context_id |
enum octave::symbol_record::symrec_t : unsigned char |
|
inline |
|
default |
|
default |
|
inlineprivate |
|
inline |
Definition at line 203 of file symrec.h.
References m_rep.
Referenced by octave::script_stack_frame::get_val_offsets(), octave::script_stack_frame::get_val_offsets_internal(), octave::script_stack_frame::get_val_offsets_with_insert(), octave::script_stack_frame::mark_scope(), octave::user_fcn_stack_frame::mark_scope(), octave::scope_stack_frame::mark_scope(), octave::script_stack_frame::resize_and_update_script_offsets(), octave::user_fcn_stack_frame::scope_flag(), octave::scope_stack_frame::scope_flag(), octave::script_stack_frame::set_script_offsets_internal(), octave::user_fcn_stack_frame::varref(), octave::scope_stack_frame::varref(), octave::user_fcn_stack_frame::varval(), and octave::scope_stack_frame::varval().
|
inline |
Definition at line 228 of file symrec.h.
References m_rep.
Referenced by octave::symbol_scope_rep::dump_symbols_map().
|
inline |
Definition at line 205 of file symrec.h.
References symbol_record(), and m_rep.
Referenced by octave::script_stack_frame::lookup_symbol().
|
inline |
Definition at line 199 of file symrec.h.
References m_rep.
Referenced by octave::script_stack_frame::get_val_offsets(), octave::script_stack_frame::get_val_offsets_internal(), octave::script_stack_frame::get_val_offsets_with_insert(), octave::script_stack_frame::insert_symbol(), octave::script_stack_frame::lookup_symbol(), octave::user_fcn_stack_frame::mark_scope(), octave::user_fcn_stack_frame::scope_flag(), octave::script_stack_frame::set_script_offsets_internal(), octave::user_fcn_stack_frame::varref(), and octave::user_fcn_stack_frame::varval().
|
inline |
Definition at line 213 of file symrec.h.
References m_rep.
Referenced by octave::tree_identifier::evaluate_n(), and octave::tree_identifier::lvalue().
|
inline |
Definition at line 212 of file symrec.h.
References m_rep.
Referenced by octave::symbol_record::symbol_record_rep::dump(), octave::stack_frame::make_persistent(), and octave::symbol_scope_rep::update_nest().
|
inline |
Definition at line 211 of file symrec.h.
References m_rep.
Referenced by octave::symbol_record::symbol_record_rep::dump().
|
inline |
|
inline |
|
inline |
Definition at line 218 of file symrec.h.
References m_rep.
Referenced by octave::symbol_scope_rep::insert().
|
inline |
|
inline |
Definition at line 217 of file symrec.h.
References m_rep.
Referenced by octave::tree_identifier::mark_as_formal_parameter().
|
inline |
|
inline |
Definition at line 207 of file symrec.h.
References m_rep.
Referenced by octave::tree_identifier::evaluate_n(), octave::script_stack_frame::get_val_offsets_internal(), octave::script_stack_frame::get_val_offsets_with_insert(), octave::symbol_scope_rep::insert_symbol_record(), octave::stack_frame::install_variable(), octave::stack_frame::make_global(), octave::stack_frame::make_persistent(), octave::symbol_cleaner::maybe_clear_symbol(), octave::tree_identifier::name(), octave::script_stack_frame::resize_and_update_script_offsets(), octave::script_stack_frame::varref(), octave::user_fcn_stack_frame::varref(), octave::scope_stack_frame::varref(), octave::script_stack_frame::varval(), octave::user_fcn_stack_frame::varval(), and octave::scope_stack_frame::varval().
|
inlineexplicit |
Definition at line 195 of file symrec.h.
References is_valid().
|
default |
|
inline |
Definition at line 209 of file symrec.h.
References m_rep.
Referenced by octave::symbol_scope_rep::rename().
|
inline |
Definition at line 201 of file symrec.h.
References m_rep.
Referenced by octave::symbol_scope_rep::insert(), octave::symbol_scope_rep::insert_symbol_record(), and octave::symbol_scope_rep::look_nonlocal().
|
inline |
Definition at line 197 of file symrec.h.
References m_rep.
Referenced by octave::symbol_scope_rep::look_nonlocal(), and octave::script_stack_frame::lookup_symbol().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 232 of file symrec.h.
Referenced by data_offset(), dump(), dup(), frame_offset(), is_added_static(), is_formal(), is_local(), is_valid(), is_variable(), mark_added_static(), mark_as_variable(), mark_formal(), mark_local(), name(), rename(), set_data_offset(), set_frame_offset(), storage_class(), unmark_added_static(), unmark_as_variable(), unmark_formal(), and unmark_local().