#include "symtab.h"
Classes | |
class | symbol_record_rep |
Public Member Functions | |
symbol_record (const std::string &nm=std::string(), const octave_value &v=octave_value(), unsigned int sc=local) | |
symbol_record (const symbol_record &sr) | |
~symbol_record (void) | |
void | clear (void) |
void | dump (std::ostream &os, const std::string &prefix=std::string()) const |
symbol_record | dup (void) const |
void | erase_persistent (void) |
octave_value | find (const octave_value_list &args=octave_value_list()) const |
void | force_variable (context_id context=xcurrent_context) |
void | init_persistent (void) |
bool | is_automatic (void) const |
bool | is_defined (context_id context=xcurrent_context) const |
bool | is_forced (void) const |
bool | is_formal (void) const |
bool | is_global (void) const |
bool | is_hidden (void) const |
bool | is_inherited (void) const |
bool | is_local (void) const |
bool | is_persistent (void) const |
bool | is_variable (context_id context=xcurrent_context) const |
void | mark_automatic (void) |
void | mark_forced (void) |
void | mark_formal (void) |
void | mark_global (void) |
void | mark_hidden (void) |
void | mark_inherited (void) |
void | mark_local (void) |
void | mark_persistent (void) |
std::string | name (void) const |
symbol_record & | operator= (const symbol_record &sr) |
size_t | pop_context (void) |
void | push_context (void) |
void | unmark_automatic (void) |
void | unmark_forced (void) |
void | unmark_formal (void) |
void | unmark_global (void) |
void | unmark_hidden (void) |
void | unmark_inherited (void) |
void | unmark_local (void) |
void | unmark_persistent (void) |
octave_value & | varref (context_id context=xcurrent_context) |
octave_value | varval (context_id context=xcurrent_context) const |
unsigned int | xstorage_class (void) const |
Static Public Attributes | |
static const unsigned int | automatic = 2 |
static const unsigned int | forced = 128 |
static const unsigned int | formal = 4 |
static const unsigned int | global = 32 |
static const unsigned int | hidden = 8 |
static const unsigned int | inherited = 16 |
static const unsigned int | local = 1 |
static const unsigned int | persistent = 64 |
Private Member Functions | |
symbol_record (symbol_record_rep *new_rep) | |
Private Attributes | |
symbol_record_rep * | rep |
Definition at line 172 of file symtab.h.
symbol_table::symbol_record::symbol_record | ( | const std::string & | nm = std::string () , |
|
const octave_value & | v = octave_value () , |
|||
unsigned int | sc = local | |||
) | [inline] |
symbol_table::symbol_record::symbol_record | ( | const symbol_record & | sr | ) | [inline] |
symbol_table::symbol_record::~symbol_record | ( | void | ) | [inline] |
symbol_table::symbol_record::symbol_record | ( | symbol_record_rep * | new_rep | ) | [inline, private] |
void symbol_table::symbol_record::clear | ( | void | ) | [inline] |
Definition at line 460 of file symtab.h.
Referenced by symbol_table::do_clear_variable_pattern(), symbol_table::do_clear_variable_regexp(), and install_loaded_variable().
void symbol_table::symbol_record::dump | ( | std::ostream & | os, | |
const std::string & | prefix = std::string () | |||
) | const [inline] |
symbol_record symbol_table::symbol_record::dup | ( | void | ) | const [inline] |
void symbol_table::symbol_record::erase_persistent | ( | void | ) | [inline] |
octave_value symbol_table::symbol_record::find | ( | const octave_value_list & | args = octave_value_list () |
) | const |
Definition at line 107 of file symtab.cc.
References symbol_table::fcn_info::find(), symbol_table::find_function(), symbol_table::symbol_record::symbol_record_rep::finfo, symbol_table::get_fcn_info(), symbol_table::global_varref(), octave_value::is_defined(), is_global(), octave_value::is_undefined(), name(), rep, and varval().
Referenced by tree_identifier::rvalue().
void symbol_table::symbol_record::force_variable | ( | context_id | context = xcurrent_context |
) | [inline] |
Definition at line 441 of file symtab.h.
Referenced by symbol_table::do_force_variable().
void symbol_table::symbol_record::init_persistent | ( | void | ) | [inline] |
bool symbol_table::symbol_record::is_automatic | ( | void | ) | const [inline] |
Definition at line 473 of file symtab.h.
Referenced by symbol_table::do_inherit().
bool symbol_table::symbol_record::is_defined | ( | context_id | context = xcurrent_context |
) | const [inline] |
Definition at line 462 of file symtab.h.
Referenced by symbol_table::do_all_variables(), symbol_table::do_clear_variable_pattern(), and symbol_table::do_clear_variable_regexp().
bool symbol_table::symbol_record::is_forced | ( | void | ) | const [inline] |
bool symbol_table::symbol_record::is_formal | ( | void | ) | const [inline] |
Definition at line 474 of file symtab.h.
Referenced by symbol_table::do_inherit().
bool symbol_table::symbol_record::is_global | ( | void | ) | const [inline] |
Definition at line 475 of file symtab.h.
Referenced by symbol_table::do_clear_global(), symbol_table::do_clear_global_pattern(), symbol_table::do_clear_variable_pattern(), symbol_table::do_clear_variable_regexp(), symbol_table::do_find(), do_save(), do_who(), and find().
bool symbol_table::symbol_record::is_hidden | ( | void | ) | const [inline] |
bool symbol_table::symbol_record::is_inherited | ( | void | ) | const [inline] |
bool symbol_table::symbol_record::is_local | ( | void | ) | const [inline] |
bool symbol_table::symbol_record::is_persistent | ( | void | ) | const [inline] |
bool symbol_table::symbol_record::is_variable | ( | context_id | context = xcurrent_context |
) | const [inline] |
Definition at line 467 of file symtab.h.
Referenced by symbol_table::do_glob(), symbol_table::do_is_variable(), and symbol_table::do_regexp().
void symbol_table::symbol_record::mark_automatic | ( | void | ) | [inline] |
void symbol_table::symbol_record::mark_forced | ( | void | ) | [inline] |
void symbol_table::symbol_record::mark_formal | ( | void | ) | [inline] |
void symbol_table::symbol_record::mark_global | ( | void | ) | [inline] |
Definition at line 486 of file symtab.h.
Referenced by install_loaded_variable().
void symbol_table::symbol_record::mark_hidden | ( | void | ) | [inline] |
void symbol_table::symbol_record::mark_inherited | ( | void | ) | [inline] |
Definition at line 485 of file symtab.h.
Referenced by symbol_table::do_inherit().
void symbol_table::symbol_record::mark_local | ( | void | ) | [inline] |
void symbol_table::symbol_record::mark_persistent | ( | void | ) | [inline] |
std::string symbol_table::symbol_record::name | ( | void | ) | const [inline] |
Definition at line 437 of file symtab.h.
Referenced by symbol_table::do_clear_global_pattern(), symbol_table::do_clear_variable_pattern(), symbol_table::do_clear_variable_regexp(), symbol_table::do_inherit(), do_save(), find(), symbol_table::insert_symbol_record(), and tree_identifier::xsym().
symbol_record& symbol_table::symbol_record::operator= | ( | const symbol_record & | sr | ) | [inline] |
Definition at line 415 of file symtab.h.
References symbol_table::symbol_record::symbol_record_rep::count, and rep.
size_t symbol_table::symbol_record::pop_context | ( | void | ) | [inline] |
void symbol_table::symbol_record::push_context | ( | void | ) | [inline] |
void symbol_table::symbol_record::unmark_automatic | ( | void | ) | [inline] |
void symbol_table::symbol_record::unmark_forced | ( | void | ) | [inline] |
void symbol_table::symbol_record::unmark_formal | ( | void | ) | [inline] |
void symbol_table::symbol_record::unmark_global | ( | void | ) | [inline] |
Definition at line 495 of file symtab.h.
Referenced by symbol_table::do_clear_global(), and symbol_table::do_clear_global_pattern().
void symbol_table::symbol_record::unmark_hidden | ( | void | ) | [inline] |
void symbol_table::symbol_record::unmark_inherited | ( | void | ) | [inline] |
void symbol_table::symbol_record::unmark_local | ( | void | ) | [inline] |
void symbol_table::symbol_record::unmark_persistent | ( | void | ) | [inline] |
octave_value& symbol_table::symbol_record::varref | ( | context_id | context = xcurrent_context |
) | [inline] |
Definition at line 446 of file symtab.h.
Referenced by symbol_table::do_clear_objects(), symbol_table::do_find(), symbol_table::do_inherit(), symbol_table::do_varref(), and install_loaded_variable().
octave_value symbol_table::symbol_record::varval | ( | context_id | context = xcurrent_context |
) | const [inline] |
unsigned int symbol_table::symbol_record::xstorage_class | ( | void | ) | const [inline] |
const unsigned int symbol_table::symbol_record::automatic = 2 [static] |
const unsigned int symbol_table::symbol_record::forced = 128 [static] |
const unsigned int symbol_table::symbol_record::formal = 4 [static] |
const unsigned int symbol_table::symbol_record::global = 32 [static] |
const unsigned int symbol_table::symbol_record::hidden = 8 [static] |
const unsigned int symbol_table::symbol_record::inherited = 16 [static] |
const unsigned int symbol_table::symbol_record::local = 1 [static] |
const unsigned int symbol_table::symbol_record::persistent = 64 [static] |
Definition at line 513 of file symtab.h.
Referenced by find(), and operator=().