ExceptionBacktraceTree Struct Reference

Public Member Functions

void addEntry (const Trace *t) noexcept
 
 ExceptionBacktraceTree (ExceptionBacktraceTree *parent)
 
void print (std::ostream &out, const std::string &prefix="", std::size_t levelOffset=0)
 

Static Public Member Functions

static void ClearExceptionBacktrace ()
 
static void PrintExceptionBacktrace (std::ostream &out, const std::string &pre)
 

Public Attributes

std::deque< ExceptionBacktraceTreechildren
 
std::size_t currentStackSize
 
std::deque< LocationProviderentries
 
ExceptionBacktraceTree *const parent
 
const std::size_t parentEntryOffset
 

Static Public Attributes

static thread_local ExceptionBacktraceTreeActive = nullptr
 
static thread_local std::deque< ExceptionBacktraceTreeAll
 

Friends

class Trace
 

Detailed Description

Definition at line 37 of file trace.cpp.

Constructor & Destructor Documentation

◆ ExceptionBacktraceTree()

Definition at line 47 of file trace.cpp.

Member Function Documentation

◆ addEntry()

void addEntry ( const Trace t)
inlinenoexcept

Definition at line 60 of file trace.cpp.

+ Here is the caller graph for this function:

◆ ClearExceptionBacktrace()

void ClearExceptionBacktrace ( )
static

Definition at line 84 of file trace.cpp.

+ Here is the caller graph for this function:

◆ print()

void print ( std::ostream &  out,
const std::string &  prefix = "",
std::size_t  levelOffset = 0 
)

Definition at line 200 of file trace.cpp.

+ Here is the call graph for this function:

◆ PrintExceptionBacktrace()

void PrintExceptionBacktrace ( std::ostream &  out,
const std::string &  pre 
)
static

Definition at line 176 of file trace.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Trace

friend class Trace
friend

Definition at line 45 of file trace.cpp.

Member Data Documentation

◆ Active

thread_local ExceptionBacktraceTree * Active = nullptr
static

Definition at line 42 of file trace.cpp.

◆ All

thread_local std::deque< ExceptionBacktraceTree > All
static

Definition at line 43 of file trace.cpp.

◆ children

std::deque<ExceptionBacktraceTree> children

Definition at line 57 of file trace.cpp.

◆ currentStackSize

std::size_t currentStackSize

Definition at line 56 of file trace.cpp.

◆ entries

std::deque<LocationProvider> entries

Definition at line 58 of file trace.cpp.

◆ parent

ExceptionBacktraceTree* const parent

Definition at line 53 of file trace.cpp.

◆ parentEntryOffset

const std::size_t parentEntryOffset

Definition at line 54 of file trace.cpp.


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