Navigation

Operators and Keywords

Function List:

C++ API

symbol_table Class Reference

#include <symtab.h>

Collaboration diagram for symbol_table:

List of all members.


Classes

class  fcn_info
class  scope_id_cache
class  symbol_record

Public Types

typedef int scope_id
typedef size_t context_id

Static Public Member Functions

static scope_id global_scope (void)
static scope_id top_scope (void)
static scope_id current_scope (void)
static context_id current_context (void)
static scope_id alloc_scope (void)
static void set_scope (scope_id scope)
static void set_scope_and_context (scope_id scope, context_id context)
static void erase_scope (scope_id scope)
static void erase_subfunctions_in_scope (scope_id scope)
static scope_id dup_scope (scope_id scope)
static std::list< scope_idscopes (void)
static symbol_record find_symbol (const std::string &name, scope_id scope=xcurrent_scope)
static void inherit (scope_id scope, scope_id donor_scope, context_id donor_context)
static bool at_top_level (void)
static octave_value find (const std::string &name, const octave_value_list &args=octave_value_list(), bool skip_variables=false, bool local_funcs=true)
static octave_value builtin_find (const std::string &name)
static symbol_recordinsert (const std::string &name)
static void force_variable (const std::string &name, scope_id scope=xcurrent_scope, context_id context=xcurrent_context)
static octave_valuevarref (const std::string &name, scope_id scope=xcurrent_scope, context_id context=xcurrent_context)
static octave_value varval (const std::string &name, scope_id scope=xcurrent_scope, context_id context=xcurrent_context)
static octave_valueglobal_varref (const std::string &name)
static octave_value global_varval (const std::string &name)
static octave_valuepersistent_varref (const std::string &name)
static octave_value persistent_varval (const std::string &name)
static void erase_persistent (const std::string &name)
static bool is_variable (const std::string &name)
static bool is_built_in_function_name (const std::string &name)
static octave_value find_method (const std::string &name, const std::string &dispatch_type)
static octave_value find_built_in_function (const std::string &name)
static octave_value find_autoload (const std::string &name)
static octave_value find_function (const std::string &name, const octave_value_list &args=octave_value_list(), bool local_funcs=true)
static octave_value find_user_function (const std::string &name)
static void install_cmdline_function (const std::string &name, const octave_value &fcn)
static void install_subfunction (const std::string &name, const octave_value &fcn, scope_id scope)
static void install_user_function (const std::string &name, const octave_value &fcn)
static void install_built_in_function (const std::string &name, const octave_value &fcn)
static void clear (const std::string &name)
static void clear_all (void)
static void clear_variables (scope_id scope)
static void clear_variables (void)
static void clear_objects (scope_id scope=xcurrent_scope)
static void unmark_forced_variables (scope_id scope=xcurrent_scope)
static void clear_functions (void)
static void clear_function (const std::string &name)
static void clear_global (const std::string &name)
static void clear_variable (const std::string &name)
static void clear_symbol (const std::string &name)
static void clear_function_pattern (const std::string &pat)
static void clear_global_pattern (const std::string &pat)
static void clear_variable_pattern (const std::string &pat)
static void clear_variable_regexp (const std::string &pat)
static void clear_symbol_pattern (const std::string &pat)
static void clear_user_function (const std::string &name)
static void clear_mex_functions (void)
static bool set_class_relationship (const std::string &sup_class, const std::string &inf_class)
static bool is_superiorto (const std::string &a, const std::string &b)
static void alias_built_in_function (const std::string &alias, const std::string &name)
static void add_dispatch (const std::string &name, const std::string &type, const std::string &fname)
static void clear_dispatch (const std::string &name, const std::string &type)
static void print_dispatch (std::ostream &os, const std::string &name)
static fcn_info::dispatch_map_type get_dispatch (const std::string &name)
static std::string help_for_dispatch (const std::string &name)
static void push_context (void)
static void pop_context (void)
static void pop_context (void *)
static void mark_hidden (const std::string &name)
static void mark_global (const std::string &name)
static std::list< symbol_recordall_variables (scope_id scope=xcurrent_scope, context_id context=xcurrent_context, bool defined_only=true)
static std::list< symbol_recordglob (const std::string &pattern)
static std::list< symbol_recordregexp (const std::string &pattern)
static std::list< symbol_recordglob_variables (const std::string &pattern)
static std::list< symbol_recordregexp_variables (const std::string &pattern)
static std::list< symbol_recordglob_global_variables (const std::string &pattern)
static std::list< symbol_recordregexp_global_variables (const std::string &pattern)
static std::list< symbol_recordglob_variables (const string_vector &patterns)
static std::list< symbol_recordregexp_variables (const string_vector &patterns)
static std::list< std::stringuser_function_names (void)
static std::list< std::stringglobal_variable_names (void)
static std::list< std::stringtop_level_variable_names (void)
static std::list< std::stringvariable_names (void)
static std::list< std::stringbuilt_in_function_names (void)
static bool is_local_variable (const std::string &name)
static bool is_global (const std::string &name)
static void dump (std::ostream &os, scope_id scope=xcurrent_scope)
static void dump_global (std::ostream &os)
static void dump_functions (std::ostream &os)
static void cache_name (scope_id scope, const std::string &name)
static void lock_subfunctions (scope_id scope=xcurrent_scope)
static void unlock_subfunctions (scope_id scope=xcurrent_scope)
static void free_scope (scope_id scope)
static void stash_dir_name_for_subfunctions (scope_id scope, const std::string &dir_name)
static void add_to_parent_map (const std::string &classname, const std::list< std::string > &parent_list)
static octave_user_functionget_curr_fcn (scope_id scope=xcurrent_scope)
static void set_curr_fcn (octave_user_function *curr_fcn, scope_id scope=xcurrent_scope)

Member Typedef Documentation

typedef size_t symbol_table::context_id


Member Function Documentation

static void symbol_table::add_dispatch ( const std::string name,
const std::string type,
const std::string fname 
) [inline, static]

static void symbol_table::add_to_parent_map ( const std::string classname,
const std::list< std::string > &  parent_list 
) [inline, static]

static void symbol_table::alias_built_in_function ( const std::string alias,
const std::string name 
) [inline, static]

static std::list<symbol_record> symbol_table::all_variables ( scope_id  scope = xcurrent_scope,
context_id  context = xcurrent_context,
bool  defined_only = true 
) [inline, static]

static scope_id symbol_table::alloc_scope ( void   )  [inline, static]

static bool symbol_table::at_top_level ( void   )  [inline, static]

static std::list<std::string> symbol_table::built_in_function_names ( void   )  [inline, static]

octave_value symbol_table::builtin_find ( const std::string name  )  [static]

static void symbol_table::cache_name ( scope_id  scope,
const std::string name 
) [inline, static]

static void symbol_table::clear ( const std::string name  )  [inline, static]

static void symbol_table::clear_all ( void   )  [inline, static]

static void symbol_table::clear_dispatch ( const std::string name,
const std::string type 
) [inline, static]

static void symbol_table::clear_function ( const std::string name  )  [inline, static]

static void symbol_table::clear_function_pattern ( const std::string pat  )  [inline, static]

static void symbol_table::clear_functions ( void   )  [inline, static]

static void symbol_table::clear_global ( const std::string name  )  [inline, static]

static void symbol_table::clear_global_pattern ( const std::string pat  )  [inline, static]

static void symbol_table::clear_mex_functions ( void   )  [inline, static]

static void symbol_table::clear_objects ( scope_id  scope = xcurrent_scope  )  [inline, static]

static void symbol_table::clear_symbol ( const std::string name  )  [inline, static]

static void symbol_table::clear_symbol_pattern ( const std::string pat  )  [inline, static]

static void symbol_table::clear_user_function ( const std::string name  )  [inline, static]

static void symbol_table::clear_variable ( const std::string name  )  [inline, static]

static void symbol_table::clear_variable_pattern ( const std::string pat  )  [inline, static]

static void symbol_table::clear_variable_regexp ( const std::string pat  )  [inline, static]

static void symbol_table::clear_variables ( void   )  [inline, static]

static void symbol_table::clear_variables ( scope_id  scope  )  [inline, static]

static context_id symbol_table::current_context ( void   )  [inline, static]

static scope_id symbol_table::current_scope ( void   )  [inline, static]

void symbol_table::dump ( std::ostream os,
scope_id  scope = xcurrent_scope 
) [static]

void symbol_table::dump_functions ( std::ostream os  )  [static]

void symbol_table::dump_global ( std::ostream os  )  [static]

static scope_id symbol_table::dup_scope ( scope_id  scope  )  [inline, static]

static void symbol_table::erase_persistent ( const std::string name  )  [inline, static]

static void symbol_table::erase_scope ( scope_id  scope  )  [inline, static]

static void symbol_table::erase_subfunctions_in_scope ( scope_id  scope  )  [inline, static]

octave_value symbol_table::find ( const std::string name,
const octave_value_list args = octave_value_list (),
bool  skip_variables = false,
bool  local_funcs = true 
) [static]

static octave_value symbol_table::find_autoload ( const std::string name  )  [inline, static]

static octave_value symbol_table::find_built_in_function ( const std::string name  )  [inline, static]

octave_value symbol_table::find_function ( const std::string name,
const octave_value_list args = octave_value_list (),
bool  local_funcs = true 
) [static]

static octave_value symbol_table::find_method ( const std::string name,
const std::string dispatch_type 
) [inline, static]

static symbol_record symbol_table::find_symbol ( const std::string name,
scope_id  scope = xcurrent_scope 
) [inline, static]

static octave_value symbol_table::find_user_function ( const std::string name  )  [inline, static]

static void symbol_table::force_variable ( const std::string name,
scope_id  scope = xcurrent_scope,
context_id  context = xcurrent_context 
) [inline, static]

static void symbol_table::free_scope ( scope_id  scope  )  [inline, static]

static octave_user_function* symbol_table::get_curr_fcn ( scope_id  scope = xcurrent_scope  )  [inline, static]

static fcn_info::dispatch_map_type symbol_table::get_dispatch ( const std::string name  )  [inline, static]

static std::list<symbol_record> symbol_table::glob ( const std::string pattern  )  [inline, static]

static std::list<symbol_record> symbol_table::glob_global_variables ( const std::string pattern  )  [inline, static]

static std::list<symbol_record> symbol_table::glob_variables ( const string_vector patterns  )  [inline, static]

static std::list<symbol_record> symbol_table::glob_variables ( const std::string pattern  )  [inline, static]

static scope_id symbol_table::global_scope ( void   )  [inline, static]

static std::list<std::string> symbol_table::global_variable_names ( void   )  [inline, static]

static octave_value& symbol_table::global_varref ( const std::string name  )  [inline, static]

static octave_value symbol_table::global_varval ( const std::string name  )  [inline, static]

static std::string symbol_table::help_for_dispatch ( const std::string name  )  [inline, static]

static void symbol_table::inherit ( scope_id  scope,
scope_id  donor_scope,
context_id  donor_context 
) [inline, static]

static symbol_record& symbol_table::insert ( const std::string name  )  [inline, static]

static void symbol_table::install_built_in_function ( const std::string name,
const octave_value fcn 
) [inline, static]

static void symbol_table::install_cmdline_function ( const std::string name,
const octave_value fcn 
) [inline, static]

static void symbol_table::install_subfunction ( const std::string name,
const octave_value fcn,
scope_id  scope 
) [inline, static]

static void symbol_table::install_user_function ( const std::string name,
const octave_value fcn 
) [inline, static]

static bool symbol_table::is_built_in_function_name ( const std::string name  )  [inline, static]

static bool symbol_table::is_global ( const std::string name  )  [inline, static]

static bool symbol_table::is_local_variable ( const std::string name  )  [inline, static]

bool symbol_table::is_superiorto ( const std::string a,
const std::string b 
) [static]

static bool symbol_table::is_variable ( const std::string name  )  [inline, static]

static void symbol_table::lock_subfunctions ( scope_id  scope = xcurrent_scope  )  [inline, static]

static void symbol_table::mark_global ( const std::string name  )  [inline, static]

static void symbol_table::mark_hidden ( const std::string name  )  [inline, static]

static octave_value& symbol_table::persistent_varref ( const std::string name  )  [inline, static]

static octave_value symbol_table::persistent_varval ( const std::string name  )  [inline, static]

static void symbol_table::pop_context ( void *   )  [inline, static]

static void symbol_table::pop_context ( void   )  [inline, static]

static void symbol_table::print_dispatch ( std::ostream os,
const std::string name 
) [inline, static]

static void symbol_table::push_context ( void   )  [inline, static]

static std::list<symbol_record> symbol_table::regexp ( const std::string pattern  )  [inline, static]

static std::list<symbol_record> symbol_table::regexp_global_variables ( const std::string pattern  )  [inline, static]

static std::list<symbol_record> symbol_table::regexp_variables ( const string_vector patterns  )  [inline, static]

static std::list<symbol_record> symbol_table::regexp_variables ( const std::string pattern  )  [inline, static]

static std::list<scope_id> symbol_table::scopes ( void   )  [inline, static]

bool symbol_table::set_class_relationship ( const std::string sup_class,
const std::string inf_class 
) [static]

static void symbol_table::set_curr_fcn ( octave_user_function curr_fcn,
scope_id  scope = xcurrent_scope 
) [inline, static]

static void symbol_table::set_scope ( scope_id  scope  )  [inline, static]

static void symbol_table::set_scope_and_context ( scope_id  scope,
context_id  context 
) [inline, static]

void symbol_table::stash_dir_name_for_subfunctions ( scope_id  scope,
const std::string dir_name 
) [static]

static std::list<std::string> symbol_table::top_level_variable_names ( void   )  [inline, static]

static scope_id symbol_table::top_scope ( void   )  [inline, static]

static void symbol_table::unlock_subfunctions ( scope_id  scope = xcurrent_scope  )  [inline, static]

static void symbol_table::unmark_forced_variables ( scope_id  scope = xcurrent_scope  )  [inline, static]

static std::list<std::string> symbol_table::user_function_names ( void   )  [inline, static]

static std::list<std::string> symbol_table::variable_names ( void   )  [inline, static]

static octave_value& symbol_table::varref ( const std::string name,
scope_id  scope = xcurrent_scope,
context_id  context = xcurrent_context 
) [inline, static]

static octave_value symbol_table::varval ( const std::string name,
scope_id  scope = xcurrent_scope,
context_id  context = xcurrent_context 
) [inline, static]


The documentation for this class was generated from the following files: