Flow123d
release_3.0.0-1073-g8f35d56
|
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 33 of file stack_trace.cc.
StackTrace::StackTrace | ( | const StackTrace & | other | ) |
Copy constructor.
Definition at line 46 of file stack_trace.cc.
StackTrace::~StackTrace | ( | ) |
Destructor.
Definition at line 62 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 72 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.