Flow123d
last_with_con_2.0.0-663-gd0e2296
|
Class representing stacktrace of exceptions. More...
#include <stack_trace.hh>
Public Member Functions | |
StackTrace () | |
Default constructor, fill stacktrace. More... | |
StackTrace (const StackTrace &other) | |
Copy constructor. More... | |
~StackTrace () | |
Destructor. More... | |
void | print (std::ostream &out, std::vector< std::string > frames_to_cut=std::vector< std::string >()) const |
Prints formated stacktrace into given stream out . More... | |
Private Attributes | |
char ** | frames_ |
Array of backtrace frames returned by glibc backtrace_symbols. More... | |
int | n_frames_ |
Size of stacktrace table - number of frames. More... | |
Class representing stacktrace of exceptions.
Store array of backtrace frames and size of this array, method print
allows to print formated stacktrace into given stream.
Definition at line 34 of file stack_trace.hh.
StackTrace::StackTrace | ( | ) |
Default constructor, fill stacktrace.
Definition at line 32 of file stack_trace.cc.
StackTrace::StackTrace | ( | const StackTrace & | other | ) |
Copy constructor.
Definition at line 45 of file stack_trace.cc.
StackTrace::~StackTrace | ( | ) |
Destructor.
Definition at line 61 of file stack_trace.cc.
void StackTrace::print | ( | std::ostream & | out, |
std::vector< std::string > | frames_to_cut = std::vector<std::string>() |
||
) | const |
Prints formated stacktrace into given stream out
.
Definition at line 71 of file stack_trace.cc.
|
private |
Array of backtrace frames returned by glibc backtrace_symbols.
Definition at line 52 of file stack_trace.hh.
|
private |
Size of stacktrace table - number of frames.
Definition at line 55 of file stack_trace.hh.