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

#include "call-stack.h"

Collaboration diagram for octave::call_stack::stack_frame:

Public Member Functions

 stack_frame (octave_function *fcn=nullptr, const symbol_scope &scope=symbol_scope(), symbol_record::context_id context=0, size_t prev=0)
 
 stack_frame (const stack_frame &elt)
 
int column (void) const
 
std::string fcn_file_name (void) const
 
std::string fcn_name (bool print_subfn=true) const
 
int line (void) const
 
bool operator== (const stack_frame &rhs) const
 

Private Attributes

int m_column
 
symbol_record::context_id m_context
 
octave_functionm_fcn
 
int m_line
 
size_t m_prev
 
symbol_scope m_scope
 

Friends

class call_stack
 

Detailed Description

Definition at line 50 of file call-stack.h.

Constructor & Destructor Documentation

◆ stack_frame() [1/2]

octave::call_stack::stack_frame::stack_frame ( octave_function fcn = nullptr,
const symbol_scope scope = symbol_scope (),
symbol_record::context_id  context = 0,
size_t  prev = 0 
)
inline

Definition at line 56 of file call-stack.h.

◆ stack_frame() [2/2]

octave::call_stack::stack_frame::stack_frame ( const stack_frame elt)
inline

Definition at line 63 of file call-stack.h.

Member Function Documentation

◆ column()

int octave::call_stack::stack_frame::column ( void  ) const
inline

Definition at line 70 of file call-stack.h.

Referenced by operator==().

◆ fcn_file_name()

std::string octave::call_stack::stack_frame::fcn_file_name ( void  ) const

◆ fcn_name()

std::string octave::call_stack::stack_frame::fcn_name ( bool  print_subfn = true) const

◆ line()

int octave::call_stack::stack_frame::line ( void  ) const
inline

Definition at line 68 of file call-stack.h.

Referenced by operator==().

◆ operator==()

bool octave::call_stack::stack_frame::operator== ( const stack_frame rhs) const

Definition at line 76 of file call-stack.cc.

References column(), column, fcn_file_name(), fcn_name(), and line().

Friends And Related Function Documentation

◆ call_stack

friend class call_stack
friend

Definition at line 54 of file call-stack.h.

Member Data Documentation

◆ m_column

◆ m_context

symbol_record::context_id octave::call_stack::stack_frame::m_context
private

◆ m_fcn

◆ m_line

◆ m_prev

size_t octave::call_stack::stack_frame::m_prev
private

Definition at line 85 of file call-stack.h.

Referenced by octave::call_stack::pop().

◆ m_scope


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