Public Member Functions | List of all members
ustl::CBacktrace Class Reference

Stores the backtrace from the point of construction. More...

#include <ustl.h>

Public Member Functions

 CBacktrace (void) noexcept
 Default constructor. The backtrace is obtained here.
 
 CBacktrace (const CBacktrace &v) noexcept
 Copy constructor.
 
const CBacktraceoperator= (const CBacktrace &v) noexcept
 Copy operator.
 
void text_write (ostringstream &os) const
 Prints the backtrace to os.
 
void read (istream &is)
 Reads the object from stream is.
 
void write (ostream &os) const
 Writes the object to stream os.
 
size_t stream_size (void) const
 Returns the size of the written object.
 

Detailed Description

Stores the backtrace from the point of construction.

The backtrace, or callstack, is the listing of functions called to reach the construction of this object. This is useful for debugging, to print the location of an error. To get meaningful output you'll need to use a debug build with symbols and with frame pointers. For GNU ld you will also need to link with the -rdynamic option to see actual function names instead of __gxx_personality0+0xF4800.


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

Generated on Mon Sep 28 2015 17:58:50 for uSTL by Doxygen 1.8.10