All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Brief description of class still missing. More...
#include <TraceBug.h>
Public Member Functions | |
void | append (const char *valName, const void *val) |
void | append (const char *valName, Variant val) |
TraceBug (const TraceStamp *stamp) | |
~TraceBug () | |
Static Public Member Functions | |
static std::string | backTrace (const std::vector< TraceBug * > *stack) |
static std::vector< TraceBug * > * | mainStack () |
Brief description of class still missing.
Full description of class still missing
GpCoreTools::TraceBug::TraceBug | ( | const TraceStamp * | s | ) |
Description of constructor still missing
References GpCoreTools::PThread::bugStack(), and GpCoreTools::PThread::currentThread().
{ PThread * t=PThread::currentThread(); if(t) { _myStack=t->bugStack(); _myStack->push_back(this); } else { _myStack=&_mainStack; _myStack->push_back(this); } _stamp=s; }
Description of destructor still missing
{
if(_myStack) {
_myStack->pop_back();
}
}
void GpCoreTools::TraceBug::append | ( | const char * | valName, |
const void * | val | ||
) | [inline] |
{ _infos.push_back(TraceInfo(valName, val) ); }
void GpCoreTools::TraceBug::append | ( | const char * | valName, |
Variant | val | ||
) | [inline] |
{ _infos.push_back(TraceInfo(valName, val) ); }
std::string GpCoreTools::TraceBug::backTrace | ( | const std::vector< TraceBug * > * | stack | ) | [static] |
{ std::string list; for(std::vector<TraceBug *>::const_reverse_iterator it=stack->rbegin();it!=stack->rend();it--) { list += (*it)->toString(); } return list; }
static std::vector<TraceBug *>* GpCoreTools::TraceBug::mainStack | ( | ) | [inline, static] |
Referenced by GpCoreTools::PThread::bugStacks().
{return &_mainStack;}