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>
188#ifndef BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
189#include <bsl_algorithm.h>
271 void resize(
int newLength);
310 bsl::ostream&
print(bsl::ostream& stream,
312 int spacesPerLevel = 4)
const;
356 return d_frames.get_allocator().mechanism();
363, d_frames(basicAllocator ? basicAllocator : &d_hbpAlloc)
371, d_frames(original.d_frames,
372 basicAllocator ? basicAllocator : &d_hbpAlloc)
380 d_frames = rhs.d_frames;
391 return d_frames[index];
397 d_frames.push_back(value);
411 d_frames.resize(newLength);
421 d_frames.swap(other.d_frames);
431 return d_frames[index];
437 return (
int) d_frames.size();
446 return lhs.d_frames == rhs.d_frames;
452 return !(lhs == rhs);
458 object.print(stream, 0, -1);
Definition balst_stacktraceframe.h:222
Definition balst_stacktrace.h:206
friend bool operator==(const StackTrace &, const StackTrace &)
BSLMF_NESTED_TRAIT_DECLARATION(StackTrace, bslmf::IsBitwiseMoveable)
bslma::Allocator * allocator() const
Definition balst_stacktrace.h:354
void removeAll()
Definition balst_stacktrace.h:401
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:435
BSLMF_NESTED_TRAIT_DECLARATION(StackTrace, bslma::UsesBslmaAllocator)
void resize(int newLength)
Definition balst_stacktrace.h:407
StackTrace & operator=(const StackTrace &rhs)
Definition balst_stacktrace.h:378
StackTrace(bslma::Allocator *basicAllocator=0)
Definition balst_stacktrace.h:361
void append(const StackTraceFrame &value)
Append to this sequence the specified value.
Definition balst_stacktrace.h:395
StackTraceFrame & operator[](int index)
Definition balst_stacktrace.h:386
void swap(StackTrace &other)
Definition balst_stacktrace.h:415
Definition bdlma_heapbypassallocator.h:157
Definition bslstl_vector.h:1025
Definition bslma_allocator.h:457
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition balst_objectfileformat.h:161
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)
Definition bslma_usesbslmaallocator.h:343
Definition bslmf_isbitwisemoveable.h:718