8#ifndef INCLUDED_BALST_STACKTRACE
9#define INCLUDED_BALST_STACKTRACE
170#include <balscm_version.h>
185#include <bsl_iosfwd.h>
186#include <bsl_vector.h>
272 void resize(
int newLength);
315 bsl::ostream&
print(bsl::ostream& stream,
317 int spacesPerLevel = 4)
const;
362 return d_frames.get_allocator().mechanism();
369, d_frames(basicAllocator ? basicAllocator : &d_hbpAlloc)
377, d_frames(original.d_frames,
378 basicAllocator ? basicAllocator : &d_hbpAlloc)
386 d_frames = rhs.d_frames;
397 return d_frames[index];
403 d_frames.push_back(value);
417 d_frames.resize(newLength);
427 d_frames.swap(other.d_frames);
437 return d_frames[index];
443 return (
int) d_frames.size();
452 return lhs.d_frames == rhs.d_frames;
464 object.print(stream, 0, -1);
Definition balst_stacktraceframe.h:217
Definition balst_stacktrace.h:203
friend bool operator==(const StackTrace &, const StackTrace &)
BSLMF_NESTED_TRAIT_DECLARATION(StackTrace, bslmf::IsBitwiseMoveable)
bslma::Allocator * allocator() const
Definition balst_stacktrace.h:360
void removeAll()
Definition balst_stacktrace.h:407
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
int length() const
Return the number of stack-trace frames contained in this object.
Definition balst_stacktrace.h:441
BSLMF_NESTED_TRAIT_DECLARATION(StackTrace, bslma::UsesBslmaAllocator)
void resize(int newLength)
Definition balst_stacktrace.h:413
StackTrace & operator=(const StackTrace &rhs)
Definition balst_stacktrace.h:384
StackTrace(bslma::Allocator *basicAllocator=0)
Definition balst_stacktrace.h:367
void append(const StackTraceFrame &value)
Append to this sequence the specified value.
Definition balst_stacktrace.h:401
StackTraceFrame & operator[](int index)
Definition balst_stacktrace.h:392
void swap(StackTrace &other)
Definition balst_stacktrace.h:421
Definition bdlma_heapbypassallocator.h:158
Definition bslstl_vector.h:1120
Definition bslma_allocator.h:545
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1976
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition balst_objectfileformat.h:152
bsl::ostream & operator<<(bsl::ostream &stream, const StackTrace &object)
bool operator==(const StackTrace &lhs, const StackTrace &rhs)
bool operator!=(const StackTrace &lhs, const StackTrace &rhs)
ALLOCATOR const STRING_VIEW_LIKE_TYPE & rhs
Definition bslstl_string.h:3918
ALLOCATOR & lhs
Definition bslstl_string.h:3917
Definition bslma_usesbslmaallocator.h:344
Definition bslmf_isbitwisemoveable.h:718