#include "packed_backtrace.hpp"
◆ value_type
template<class FramePtrType, size_t FrameTypeSize>
The type stored in the container.
◆ const_value_type
template<class FramePtrType, size_t FrameTypeSize>
The const type stored in the container.
◆ size_type
template<class FramePtrType, size_t FrameTypeSize>
◆ difference_type
template<class FramePtrType, size_t FrameTypeSize>
◆ reference
template<class FramePtrType, size_t FrameTypeSize>
◆ const_reference
template<class FramePtrType, size_t FrameTypeSize>
The const reference type.
◆ pointer
template<class FramePtrType, size_t FrameTypeSize>
◆ const_pointer
template<class FramePtrType, size_t FrameTypeSize>
◆ const_iterator
template<class FramePtrType, size_t FrameTypeSize>
◆ reverse_iterator
template<class FramePtrType, size_t FrameTypeSize>
The reverse iterator type.
◆ const_reverse_iterator
template<class FramePtrType, size_t FrameTypeSize>
The const reverse iterator type.
◆ packed_backtrace() [1/2]
template<class FramePtrType, size_t FrameTypeSize>
239 , _count(_decode_count())
240 {
241 }
Definition packed_backtrace.hpp:127
size_type size() const noexcept
Returns the number of items in the backtrace.
Definition packed_backtrace.hpp:373
◆ packed_backtrace() [2/2]
template<class FramePtrType, size_t FrameTypeSize>
244 , _count(0)
245 {
246 }
◆ empty()
template<class FramePtrType, size_t FrameTypeSize>
Returns true if the index is empty.
371{ return _storage.empty(); }
◆ size()
template<class FramePtrType, size_t FrameTypeSize>
Returns the number of items in the backtrace.
◆ max_size()
template<class FramePtrType, size_t FrameTypeSize>
Returns the maximum number of items in the backtrace.
◆ begin() [1/2]
template<class FramePtrType, size_t FrameTypeSize>
Returns an iterator to the first item in the backtrace.
friend class iterator
Definition packed_backtrace.hpp:362
◆ begin() [2/2]
template<class FramePtrType, size_t FrameTypeSize>
Returns an iterator to the first item in the backtrace.
◆ cbegin()
template<class FramePtrType, size_t FrameTypeSize>
Returns an iterator to the first item in the backtrace.
◆ end() [1/2]
template<class FramePtrType, size_t FrameTypeSize>
Returns an iterator to the item after the last in the backtrace.
◆ end() [2/2]
template<class FramePtrType, size_t FrameTypeSize>
Returns an iterator to the item after the last in the backtrace.
◆ cend()
template<class FramePtrType, size_t FrameTypeSize>
Returns an iterator to the item after the last in the backtrace.
◆ operator[]()
template<class FramePtrType, size_t FrameTypeSize>
Returns the specified element, unchecked.
390 {
391 uintptr_type
out = 0;
394 {
396 return nullptr;
397 }
399 }
size_t size_type
The size type.
Definition packed_backtrace.hpp:254
FramePtrType value_type
The type stored in the container.
Definition packed_backtrace.hpp:250
◆ at()
template<class FramePtrType, size_t FrameTypeSize>
Returns the specified element, checked.
402 {
403 uintptr_type
out = 0;
406 {
408 {
410 }
411 }
413 }
◆ swap()
template<class FramePtrType, size_t FrameTypeSize>
Swaps with another instance.
416 {
418 swap(_storage,
o._storage);
419 swap(_count,
o._count);
420 }
void swap(packed_backtrace &o) noexcept
Swaps with another instance.
Definition packed_backtrace.hpp:415
◆ assign()
template<class FramePtrType, size_t FrameTypeSize>
Assigns a raw stack backtrace to the packed storage.
424 {
425 uintptr_type
out = 0;
427 memset(_storage.data(), 0, _storage.size());
428 _count = 0;
430 {
432 uintptr_type
i =
reinterpret_cast<uintptr_type
>(
_i);
433 uintptr_type
delta =
i & bits63_43;
435 {
437 return;
438
439 _storage[
idx++] = 0xc0 | ((
delta >> 59) & 0x3f);
440 _storage[
idx++] = (
delta >> 51) & 0xff;
441 _storage[
idx++] = (
delta >> 43) & 0xff;
444 }
447 {
449 {
451 return;
452 }
453
454 _storage[
idx++] = 0x80 | ((
delta >> 37) & 0x3f);
455 _storage[
idx++] = (
delta >> 29) & 0xff;
456 _storage[
idx++] = (
delta >> 21) & 0xff;
460 }
461 if(
i -
out >= (1 << 13) &&
out -
i >= (1 << 13))
462 {
464 {
466 return;
467 }
468 delta =
static_cast<uintptr_type
>(
i -
out);
469
470 _storage[
idx++] = 0x40 | ((
delta >> 16) & 0x3f);
471 _storage[
idx++] = (
delta >> 8) & 0xff;
472 _storage[
idx++] = (
delta >> 0) & 0xff;
474 }
475 else
476 {
478 {
480 return;
481 }
482 delta =
static_cast<uintptr_type
>(
i -
out);
483
484 _storage[
idx++] = (
delta >> 8) & 0x3f;
485 _storage[
idx++] = (
delta >> 0) & 0xff;
487 }
488 _count++;
489 }
490 }
◆ iterator
template<class FramePtrType, size_t FrameTypeSize>
The documentation for this class was generated from the following file: