GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
base_parser::parent_scope_info Class Reference
Collaboration diagram for base_parser::parent_scope_info:

Public Types

typedef std::deque< value_type >::const_iterator const_iterator
 
typedef std::deque< value_type >::const_reverse_iterator const_reverse_iterator
 
typedef std::deque< value_type >::iterator iterator
 
typedef std::deque< value_type >::reverse_iterator reverse_iterator
 
typedef std::pair< symbol_scope, std::string > value_type
 

Public Member Functions

 parent_scope_info (base_parser &parser)
 
 parent_scope_info (const parent_scope_info &)=delete
 
 parent_scope_info (void)=delete
 
 ~parent_scope_info (void)=default
 
OCTINTERP_API void clear (void)
 
OCTINTERP_API bool name_current_scope (const std::string &name)
 
OCTINTERP_API bool name_ok (const std::string &name)
 
parent_scope_infooperator= (const parent_scope_info &)=delete
 
OCTINTERP_API std::string parent_name (void) const
 
OCTINTERP_API symbol_scope parent_scope (void) const
 
OCTINTERP_API void pop (void)
 
OCTINTERP_API void push (const symbol_scope &id)
 
OCTINTERP_API void push (const value_type &elt)
 
OCTINTERP_API std::size_t size (void) const
 

Private Attributes

std::set< std::string > m_all_names
 
std::deque< value_typem_info
 
base_parserm_parser
 

Detailed Description

Definition at line 113 of file parse.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 120 of file parse.h.

◆ const_reverse_iterator

◆ iterator

Definition at line 119 of file parse.h.

◆ reverse_iterator

◆ value_type

Definition at line 117 of file parse.h.

Constructor & Destructor Documentation

◆ parent_scope_info() [1/3]

base_parser::parent_scope_info::parent_scope_info ( void  )
delete

◆ parent_scope_info() [2/3]

base_parser::parent_scope_info::parent_scope_info ( base_parser parser)
inline

Definition at line 127 of file parse.h.

◆ parent_scope_info() [3/3]

base_parser::parent_scope_info::parent_scope_info ( const parent_scope_info )
delete

◆ ~parent_scope_info()

base_parser::parent_scope_info::~parent_scope_info ( void  )
default

Member Function Documentation

◆ clear()

void base_parser::parent_scope_info::clear ( void  )

Definition at line 6715 of file oct-parse.cc.

Referenced by base_parser::reset().

◆ name_current_scope()

bool base_parser::parent_scope_info::name_current_scope ( const std::string &  name)

Definition at line 6692 of file oct-parse.cc.

Referenced by base_parser::make_fcn_name().

◆ name_ok()

bool base_parser::parent_scope_info::name_ok ( const std::string &  name)

Definition at line 6654 of file oct-parse.cc.

◆ operator=()

parent_scope_info& base_parser::parent_scope_info::operator= ( const parent_scope_info )
delete

◆ parent_name()

std::string base_parser::parent_scope_info::parent_name ( void  ) const

Definition at line 6710 of file oct-parse.cc.

◆ parent_scope()

symbol_scope base_parser::parent_scope_info::parent_scope ( void  ) const

Definition at line 6704 of file oct-parse.cc.

Referenced by base_parser::finish_function().

◆ pop()

void base_parser::parent_scope_info::pop ( void  )

Definition at line 6648 of file oct-parse.cc.

Referenced by base_parser::recover_from_parsing_function().

◆ push() [1/2]

void base_parser::parent_scope_info::push ( const symbol_scope id)

Definition at line 6642 of file oct-parse.cc.

◆ push() [2/2]

void base_parser::parent_scope_info::push ( const value_type elt)

Definition at line 6636 of file oct-parse.cc.

Referenced by base_parser::push_fcn_symtab().

◆ size()

std::size_t base_parser::parent_scope_info::size ( void  ) const

Definition at line 6630 of file oct-parse.cc.

References m_info.

Referenced by base_parser::finish_function().

Member Data Documentation

◆ m_all_names

std::set<std::string> base_parser::parent_scope_info::m_all_names
private

Definition at line 161 of file parse.h.

◆ m_info

std::deque<value_type> base_parser::parent_scope_info::m_info
private

Definition at line 160 of file parse.h.

Referenced by size().

◆ m_parser

base_parser& base_parser::parent_scope_info::m_parser
private

Definition at line 159 of file parse.h.


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