2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
8 #include <ObjectList.h>
10 #include "StackFrame.h"
13 class StackTrace
: public BReferenceable
{
16 virtual ~StackTrace();
18 bool AddFrame(StackFrame
* frame
);
19 // takes over reference (also on error)
21 int32
CountFrames() const;
22 StackFrame
* FrameAt(int32 index
) const;
25 typedef BObjectList
<StackFrame
> StackFrameList
;
28 StackFrameList fStackFrames
;
32 #endif // STACK_TRACE_H