26 #if ! defined (octave_symrec_h)
27 #define octave_symrec_h 1
29 #include "octave-config.h"
43 class symbol_scope_rep;
52 static const unsigned int local = 1;
55 static const unsigned int formal = 2;
136 std::shared_ptr<symbol_record_rep>
dup (
void)
const;
161 unsigned int sc = local)
173 explicit operator bool ()
const {
return is_valid (); }
185 std::string
name (
void)
const {
return m_rep->name (); }
187 void rename (
const std::string& new_name) {
m_rep->rename (new_name); }
207 std::shared_ptr<symbol_record_rep>
m_rep;
void rename(const std::string &new_name)
unsigned int storage_class(void) const
~symbol_record_rep(void)=default
symbol_record_rep(const std::string &nm, unsigned int sc)
void unmark_added_static(void)
bool is_formal(void) const
symbol_record_rep & operator=(const symbol_record_rep &)=default
size_t frame_offset(void) const
void set_frame_offset(size_t offset)
bool is_valid(void) const
bool is_local(void) const
octave_value dump(void) const
void set_data_offset(size_t offset)
size_t data_offset(void) const
bool is_added_static(void) const
unsigned int m_storage_class
symbol_record_rep(const symbol_record_rep &)=default
std::shared_ptr< symbol_record_rep > dup(void) const
std::string name(void) const
void mark_added_static(void)
symbol_record(const std::string &nm="", unsigned int sc=local)
void set_data_offset(size_t offset)
std::shared_ptr< symbol_record_rep > m_rep
symbol_record(const symbol_record &)=default
symbol_record dup(void) const
static const unsigned int formal
symbol_record & operator=(const symbol_record &)=default
void mark_added_static(void)
symbol_record(const std::string &nm, const octave_value &, unsigned int sc=local)
symbol_record(const std::shared_ptr< symbol_record_rep > &new_rep)
bool is_local(void) const
void set_frame_offset(size_t offset)
size_t frame_offset(void) const
unsigned int storage_class(void) const
bool is_formal(void) const
size_t data_offset(void) const
octave_value dump(void) const
static const unsigned int added_static
void rename(const std::string &new_name)
bool is_added_static(void) const
void unmark_added_static(void)
~symbol_record(void)=default
std::string name(void) const
bool is_valid(void) const