Files
haiku-beta6/headers/private/debugger/model/StackTrace.h
T

33 lines
614 B
C++
Raw Normal View History

2009-06-18 19:57:46 +00:00
/*
* Copyright 2009, Ingo Weinhold, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef STACK_TRACE_H
#define STACK_TRACE_H
#include <ObjectList.h>
2009-06-18 19:57:46 +00:00
#include "StackFrame.h"
class StackTrace : public BReferenceable {
2009-06-18 19:57:46 +00:00
public:
StackTrace();
virtual ~StackTrace();
bool AddFrame(StackFrame* frame);
// takes over reference (also on error)
2009-06-18 19:57:46 +00:00
int32 CountFrames() const;
StackFrame* FrameAt(int32 index) const;
2009-06-18 19:57:46 +00:00
private:
typedef BObjectList<StackFrame> StackFrameList;
2009-06-18 19:57:46 +00:00
private:
StackFrameList fStackFrames;
};
#endif // STACK_TRACE_H