This value-semantic class describes a function-call stack.
Declared in <balst_stacktrace.h>
class StackTrace;
A StackTrace is represented as a sequence of randomly accessible StackTraceFrame objects, each of which represents one function call on the stack. Note that if no allocator is supplied at construction, an owned bdlma::HeapBypassAllocator object is used to supply memory.
| Name | Description |
|---|---|
StackTrace [constructor] | Constructors |
operator= | Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object. |
allocator | Return the allocator used by this object to supply memory. Note that if no allocator was supplied at construction the owned heap-bypass allocator is used. |
append | Append to this sequence the specified value. |
length | Return the number of stack-trace frames contained in this object. |
operator[] | Subscript operators |
print | Format this object to the specified output stream. |
removeAll | Remove all stack-trace frames from this object. After this operation, the length() method will return 0. |
resize | Resize this stack-trace so that length() == newLength. |
swap | Efficiently exchange the value of this object with the value of the specified other object. |
operator BloombergLP::bslmf::NestedTraitDeclaration<StackTrace, IsBitwiseMoveable> | Nested trait declaration for bslma::UsesBslmaAllocator. |
| Name | Description |
|---|---|
BloombergLP::balst::operator== | Return true if the specified lhs and rhs objects have the same value, and false otherwise. |
| Name | Description |
|---|---|
operator!= | Return true if the specified lhs and rhs objects do not have the same value, and false otherwise. |
swap | Exchange the values of the specified a and b objects. |