CppCommon  1.0.4.1
C++ Common Library
Public Member Functions | Public Attributes | Friends | List of all members
CppCommon::StackTrace::Frame Struct Reference

Stack trace frame. More...

#include <stack_trace.h>

Public Member Functions

std::string string () const
 Get string from the current stack trace frame. More...
 

Public Attributes

void * address
 Frame address. More...
 
std::string module
 Frame module. More...
 
std::string function
 Frame function. More...
 
std::string filename
 Frame file name. More...
 
int line
 Frame line number. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const Frame &frame)
 Output stack trace frame into the given output stream. More...
 

Detailed Description

Stack trace frame.

Definition at line 36 of file stack_trace.h.

Member Function Documentation

◆ string()

std::string CppCommon::StackTrace::Frame::string ( ) const
inline

Get string from the current stack trace frame.

Definition at line 45 of file stack_trace.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Frame frame 
)
friend

Output stack trace frame into the given output stream.

Definition at line 48 of file stack_trace.cpp.

Member Data Documentation

◆ address

void* CppCommon::StackTrace::Frame::address

Frame address.

Definition at line 38 of file stack_trace.h.

◆ filename

std::string CppCommon::StackTrace::Frame::filename

Frame file name.

Definition at line 41 of file stack_trace.h.

◆ function

std::string CppCommon::StackTrace::Frame::function

Frame function.

Definition at line 40 of file stack_trace.h.

◆ line

int CppCommon::StackTrace::Frame::line

Frame line number.

Definition at line 42 of file stack_trace.h.

◆ module

std::string CppCommon::StackTrace::Frame::module

Frame module.

Definition at line 39 of file stack_trace.h.


The documentation for this struct was generated from the following file: