#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 symbol_record::context_id |
enum symbol_record::symrec_t : unsigned char |
|
inline |
|
default |
|
default |
|
inlineprivate |
|
inline |
Definition at line 205 of file symrec.h.
References m_rep.
Referenced by script_stack_frame::get_val_offsets(), script_stack_frame::get_val_offsets_internal(), script_stack_frame::get_val_offsets_with_insert(), script_stack_frame::mark_scope(), user_fcn_stack_frame::mark_scope(), scope_stack_frame::mark_scope(), script_stack_frame::resize_and_update_script_offsets(), user_fcn_stack_frame::scope_flag(), scope_stack_frame::scope_flag(), script_stack_frame::set_script_offsets_internal(), user_fcn_stack_frame::varref(), scope_stack_frame::varref(), user_fcn_stack_frame::varval(), and scope_stack_frame::varval().
|
inline |
Definition at line 230 of file symrec.h.
References m_rep.
Referenced by symbol_scope_rep::dump_symbols_map().
|
inline |
Definition at line 207 of file symrec.h.
References symbol_record(), and m_rep.
Referenced by script_stack_frame::lookup_symbol().
|
inline |
Definition at line 200 of file symrec.h.
References m_rep.
Referenced by script_stack_frame::get_val_offsets(), script_stack_frame::get_val_offsets_internal(), script_stack_frame::get_val_offsets_with_insert(), script_stack_frame::insert_symbol(), script_stack_frame::lookup_symbol(), user_fcn_stack_frame::mark_scope(), user_fcn_stack_frame::scope_flag(), script_stack_frame::set_script_offsets_internal(), user_fcn_stack_frame::varref(), and user_fcn_stack_frame::varval().
|
inline |
Definition at line 215 of file symrec.h.
References m_rep.
Referenced by tree_identifier::evaluate_n(), and tree_identifier::lvalue().
|
inline |
Definition at line 214 of file symrec.h.
References m_rep.
Referenced by symbol_record::symbol_record_rep::dump(), stack_frame::make_persistent(), and symbol_scope_rep::update_nest().
|
inline |
Definition at line 213 of file symrec.h.
References m_rep.
Referenced by symbol_record::symbol_record_rep::dump().
|
inline |
Definition at line 193 of file symrec.h.
References m_rep.
Referenced by script_stack_frame::insert_symbol(), user_fcn_stack_frame::insert_symbol(), scope_stack_frame::insert_symbol(), and operator bool().
|
inline |
|
inline |
Definition at line 220 of file symrec.h.
References m_rep.
Referenced by symbol_scope_rep::insert().
|
inline |
|
inline |
Definition at line 219 of file symrec.h.
References m_rep.
Referenced by tree_identifier::mark_as_formal_parameter().
|
inline |
|
inline |
Definition at line 209 of file symrec.h.
References m_rep.
Referenced by tree_identifier::evaluate_n(), script_stack_frame::get_val_offsets_internal(), script_stack_frame::get_val_offsets_with_insert(), symbol_scope_rep::insert_symbol_record(), stack_frame::install_variable(), stack_frame::make_global(), stack_frame::make_persistent(), symbol_cleaner::maybe_clear_symbol(), tree_identifier::name(), script_stack_frame::resize_and_update_script_offsets(), script_stack_frame::varref(), user_fcn_stack_frame::varref(), scope_stack_frame::varref(), script_stack_frame::varval(), user_fcn_stack_frame::varval(), and scope_stack_frame::varval().
|
inlineexplicit |
Definition at line 195 of file symrec.h.
References is_valid().
|
default |
|
inline |
Definition at line 211 of file symrec.h.
References m_rep.
Referenced by symbol_scope_rep::rename().
|
inline |
Definition at line 202 of file symrec.h.
References m_rep.
Referenced by symbol_scope_rep::insert(), symbol_scope_rep::insert_symbol_record(), and symbol_scope_rep::look_nonlocal().
|
inline |
Definition at line 197 of file symrec.h.
References m_rep.
Referenced by symbol_scope_rep::look_nonlocal(), and script_stack_frame::lookup_symbol().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 234 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().