rutz::backtrace Class Reference

Represents an instantaneous state of the call stack. More...

#include <rutz/backtrace.h>

Collaboration diagram for rutz::backtrace:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 backtrace () throw ()
 Default construct an empty call stack.
 backtrace (const backtrace &other) throw ()
 Copy constructor.
backtraceoperator= (const backtrace &other) throw ()
 Assignment operator.
 ~backtrace () throw ()
 Destructor.
bool push (rutz::prof *p) throw ()
 Push a new element onto the call stack. Returns true if successful.
void pop () throw ()
 Pop the most recent element off of the call stack.
unsigned int size () const throw ()
 Get the number of elements in the call stack.
rutz::proftop () const throw ()
 Get the top stack frame, or null if the backtrace is empty.
rutz::profat (unsigned int i) const throw ()
 Will return a null pointer if i is out of range.
rutz::profoperator[] (unsigned int i) const throw ()
 Shorthand for at(i).
void print () const throw ()
 Print the call stack on stderr.
void print (std::ostream &os) const throw ()
 Print the call stack to the given stream.

Static Public Member Functions

static backtracecurrent () throw ()
 Access the current call stack.


Detailed Description

Represents an instantaneous state of the call stack.

Definition at line 49 of file backtrace.h.


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

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:32 2008 by Doxygen version 1.5.5.