GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::symbol_record Class Reference

#include "symrec.h"

Collaboration diagram for octave::symbol_record:

Classes

class  symbol_record_rep
 

Public Types

typedef size_t context_id
 

Public Member Functions

 symbol_record (const std::string &nm, const octave_value &, unsigned int sc=local)
 
 symbol_record (const std::string &nm="", unsigned int sc=local)
 
 symbol_record (const symbol_record &)=default
 
 ~symbol_record (void)=default
 
size_t data_offset (void) const
 
octave_value dump (void) const
 
symbol_record dup (void) const
 
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
 
void mark_added_static (void)
 
void mark_formal (void)
 
void mark_local (void)
 
std::string name (void) const
 
 operator bool () const
 
symbol_recordoperator= (const symbol_record &)=default
 
void rename (const std::string &new_name)
 
void set_data_offset (size_t offset)
 
void set_frame_offset (size_t offset)
 
unsigned int storage_class (void) const
 
void unmark_added_static (void)
 
void unmark_formal (void)
 
void unmark_local (void)
 

Static Public Attributes

static const unsigned int added_static = 4
 
static const unsigned int formal = 2
 
static const unsigned int = 1
 

Private Member Functions

 symbol_record (const std::shared_ptr< symbol_record_rep > &new_rep)
 

Private Attributes

std::shared_ptr< symbol_record_repm_rep
 

Detailed Description

Definition at line 45 of file symrec.h.

Member Typedef Documentation

◆ context_id

Definition at line 49 of file symrec.h.

Constructor & Destructor Documentation

◆ symbol_record() [1/4]

octave::symbol_record::symbol_record ( const std::string &  nm = "",
unsigned int  sc = local 
)
inline

Definition at line 156 of file symrec.h.

Referenced by dup().

◆ symbol_record() [2/4]

octave::symbol_record::symbol_record ( const std::string &  nm,
const octave_value ,
unsigned int  sc = local 
)
inline

Definition at line 160 of file symrec.h.

◆ symbol_record() [3/4]

octave::symbol_record::symbol_record ( const symbol_record )
default

◆ ~symbol_record()

octave::symbol_record::~symbol_record ( void  )
default

◆ symbol_record() [4/4]

octave::symbol_record::symbol_record ( const std::shared_ptr< symbol_record_rep > &  new_rep)
inlineprivate

Definition at line 210 of file symrec.h.

Member Function Documentation

◆ data_offset()

◆ dump()

octave_value octave::symbol_record::dump ( void  ) const
inline

Definition at line 203 of file symrec.h.

References m_rep.

Referenced by octave::symbol_scope_rep::dump_symbols_map().

◆ dup()

symbol_record octave::symbol_record::dup ( void  ) const
inline

Definition at line 183 of file symrec.h.

References symbol_record(), and m_rep.

Referenced by octave::script_stack_frame::lookup_symbol().

◆ frame_offset()

◆ is_added_static()

bool octave::symbol_record::is_added_static ( void  ) const
inline

Definition at line 191 of file symrec.h.

References m_rep.

Referenced by octave::tree_identifier::evaluate_n(), and octave::tree_identifier::lvalue().

◆ is_formal()

bool octave::symbol_record::is_formal ( void  ) const
inline

◆ is_local()

bool octave::symbol_record::is_local ( void  ) const
inline

Definition at line 189 of file symrec.h.

References m_rep.

Referenced by octave::symbol_record::symbol_record_rep::dump().

◆ is_valid()

bool octave::symbol_record::is_valid ( void  ) const
inline

Definition at line 171 of file symrec.h.

References m_rep.

Referenced by operator bool().

◆ mark_added_static()

void octave::symbol_record::mark_added_static ( void  )
inline

Definition at line 195 of file symrec.h.

References m_rep.

Referenced by octave::symbol_scope_rep::insert().

◆ mark_formal()

void octave::symbol_record::mark_formal ( void  )
inline

Definition at line 194 of file symrec.h.

References m_rep.

Referenced by octave::tree_identifier::mark_as_formal_parameter().

◆ mark_local()

void octave::symbol_record::mark_local ( void  )
inline

Definition at line 193 of file symrec.h.

References m_rep.

◆ name()

◆ operator bool()

octave::symbol_record::operator bool ( ) const
inlineexplicit

Definition at line 173 of file symrec.h.

References is_valid().

◆ operator=()

symbol_record& octave::symbol_record::operator= ( const symbol_record )
default

◆ rename()

void octave::symbol_record::rename ( const std::string &  new_name)
inline

Definition at line 187 of file symrec.h.

References m_rep.

Referenced by octave::symbol_scope_rep::rename().

◆ set_data_offset()

void octave::symbol_record::set_data_offset ( size_t  offset)
inline

◆ set_frame_offset()

void octave::symbol_record::set_frame_offset ( size_t  offset)
inline

◆ storage_class()

unsigned int octave::symbol_record::storage_class ( void  ) const
inline

Definition at line 201 of file symrec.h.

References m_rep.

◆ unmark_added_static()

void octave::symbol_record::unmark_added_static ( void  )
inline

Definition at line 199 of file symrec.h.

References m_rep.

◆ unmark_formal()

void octave::symbol_record::unmark_formal ( void  )
inline

Definition at line 198 of file symrec.h.

References m_rep.

◆ unmark_local()

void octave::symbol_record::unmark_local ( void  )
inline

Definition at line 197 of file symrec.h.

References m_rep.

Member Data Documentation

◆ added_static

◆ formal

◆ int

const unsigned octave::symbol_record::int = 1
static

Definition at line 52 of file symrec.h.

◆ m_rep


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