All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Radiant::CallStack Class Reference

Captures the current callstack. More...

#include <Radiant/CallStack.hpp>

Public Member Functions

 CallStack ()
 Constructor.
 
stackptr_t operator[] (size_t index) const
 Get given frame from the callstack. More...
 
void print () const
 Prints a human-readable version of the stack to the log.
 
size_t size () const
 Get the size of the callstacks. More...
 
const stackptr_t * stack () const
 Returns the pointer to the raw callstack. More...
 
QStringList toStringList () const
 Returns a human-readable version of the stack. More...
 
 ~CallStack ()
 Destructor.
 

Detailed Description

Captures the current callstack.

Member Function Documentation

stackptr_t Radiant::CallStack::operator[] ( size_t  index) const
inline

Get given frame from the callstack.

Parameters
indexThe requested element in the callstack
Returns
the requested element in the callstack
size_t Radiant::CallStack::size ( ) const
inline

Get the size of the callstacks.

Returns
the number of frames in the callstack
const stackptr_t* Radiant::CallStack::stack ( ) const
inline

Returns the pointer to the raw callstack.

Returns
Pointer to raw callstack
QStringList Radiant::CallStack::toStringList ( ) const

Returns a human-readable version of the stack.

Returns
List of frames' textual representation