Classes | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes

symbol_table::symbol_record Class Reference

#include "symtab.h"

Collaboration diagram for symbol_table::symbol_record:
Collaboration graph
[legend]

List of all members.

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_recordoperator= (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_valuevarref (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_reprep

Detailed Description

Definition at line 172 of file symtab.h.


Constructor & Destructor Documentation

symbol_table::symbol_record::symbol_record ( const std::string &  nm = std::string (),
const octave_value v = octave_value (),
unsigned int  sc = local 
) [inline]

Definition at line 404 of file symtab.h.

symbol_table::symbol_record::symbol_record ( const symbol_record sr  )  [inline]

Definition at line 409 of file symtab.h.

symbol_table::symbol_record::~symbol_record ( void   )  [inline]

Definition at line 429 of file symtab.h.

symbol_table::symbol_record::symbol_record ( symbol_record_rep new_rep  )  [inline, private]

Definition at line 515 of file symtab.h.


Member Function Documentation

void symbol_table::symbol_record::clear ( void   )  [inline]
void symbol_table::symbol_record::dump ( std::ostream &  os,
const std::string &  prefix = std::string () 
) const [inline]

Definition at line 506 of file symtab.h.

symbol_record symbol_table::symbol_record::dup ( void   )  const [inline]

Definition at line 435 of file symtab.h.

void symbol_table::symbol_record::erase_persistent ( void   )  [inline]

Definition at line 501 of file symtab.h.

octave_value symbol_table::symbol_record::find ( const octave_value_list args = octave_value_list ()  )  const
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]

Definition at line 499 of file symtab.h.

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]
bool symbol_table::symbol_record::is_forced ( void   )  const [inline]

Definition at line 479 of file symtab.h.

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]
bool symbol_table::symbol_record::is_hidden ( void   )  const [inline]

Definition at line 476 of file symtab.h.

bool symbol_table::symbol_record::is_inherited ( void   )  const [inline]

Definition at line 477 of file symtab.h.

bool symbol_table::symbol_record::is_local ( void   )  const [inline]

Definition at line 472 of file symtab.h.

bool symbol_table::symbol_record::is_persistent ( void   )  const [inline]

Definition at line 478 of file symtab.h.

bool symbol_table::symbol_record::is_variable ( context_id  context = xcurrent_context  )  const [inline]
void symbol_table::symbol_record::mark_automatic ( void   )  [inline]

Definition at line 482 of file symtab.h.

void symbol_table::symbol_record::mark_forced ( void   )  [inline]

Definition at line 488 of file symtab.h.

void symbol_table::symbol_record::mark_formal ( void   )  [inline]

Definition at line 483 of file symtab.h.

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]

Definition at line 484 of file symtab.h.

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]

Definition at line 481 of file symtab.h.

void symbol_table::symbol_record::mark_persistent ( void   )  [inline]

Definition at line 487 of file symtab.h.

std::string symbol_table::symbol_record::name ( void   )  const [inline]
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]

Definition at line 458 of file symtab.h.

void symbol_table::symbol_record::push_context ( void   )  [inline]

Definition at line 456 of file symtab.h.

void symbol_table::symbol_record::unmark_automatic ( void   )  [inline]

Definition at line 491 of file symtab.h.

void symbol_table::symbol_record::unmark_forced ( void   )  [inline]

Definition at line 497 of file symtab.h.

void symbol_table::symbol_record::unmark_formal ( void   )  [inline]

Definition at line 492 of file symtab.h.

void symbol_table::symbol_record::unmark_global ( void   )  [inline]
void symbol_table::symbol_record::unmark_hidden ( void   )  [inline]

Definition at line 493 of file symtab.h.

void symbol_table::symbol_record::unmark_inherited ( void   )  [inline]

Definition at line 494 of file symtab.h.

void symbol_table::symbol_record::unmark_local ( void   )  [inline]

Definition at line 490 of file symtab.h.

void symbol_table::symbol_record::unmark_persistent ( void   )  [inline]

Definition at line 496 of file symtab.h.

octave_value& symbol_table::symbol_record::varref ( context_id  context = xcurrent_context  )  [inline]
octave_value symbol_table::symbol_record::varval ( context_id  context = xcurrent_context  )  const [inline]

Definition at line 451 of file symtab.h.

Referenced by do_save(), and find().

unsigned int symbol_table::symbol_record::xstorage_class ( void   )  const [inline]

Definition at line 503 of file symtab.h.


Member Data Documentation

const unsigned int symbol_table::symbol_record::automatic = 2 [static]

Definition at line 182 of file symtab.h.

const unsigned int symbol_table::symbol_record::forced = 128 [static]

Definition at line 200 of file symtab.h.

const unsigned int symbol_table::symbol_record::formal = 4 [static]

Definition at line 185 of file symtab.h.

const unsigned int symbol_table::symbol_record::global = 32 [static]

Definition at line 194 of file symtab.h.

const unsigned int symbol_table::symbol_record::hidden = 8 [static]

Definition at line 188 of file symtab.h.

const unsigned int symbol_table::symbol_record::inherited = 16 [static]

Definition at line 191 of file symtab.h.

const unsigned int symbol_table::symbol_record::local = 1 [static]

Definition at line 178 of file symtab.h.

const unsigned int symbol_table::symbol_record::persistent = 64 [static]

Definition at line 197 of file symtab.h.

Definition at line 513 of file symtab.h.

Referenced by find(), and operator=().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines