A simple type-erased stacktrace abstraction.
More...
#include <Stacktrace.hpp>
|
| | ~Stacktrace ()=default |
| | Defaulted destructor.
|
| |
| | Stacktrace () |
| | Default constructor.
|
| |
template<typename Backend>
requires (!std::same_as<Stacktrace, std::remove_cvref_t<Backend>>) && stacktrace::backend<Backend> |
| | Stacktrace (Backend backend) |
| | Constructor storing the given stacktrace-backend.
|
| |
| | Stacktrace (Stacktrace const &)=default |
| | Defaulted copy-constructor.
|
| |
| Stacktrace & | operator= (Stacktrace const &)=default |
| | Defaulted copy-assignment-operator.
|
| |
| | Stacktrace (Stacktrace &&)=default |
| | Defaulted move-constructor.
|
| |
| Stacktrace & | operator= (Stacktrace &&)=default |
| | Defaulted move-assignment-operator.
|
| |
| std::size_t | size () const |
| | Queries the underlying stacktrace-backend for its size.
|
| |
| bool | empty () const |
| | Queries the underlying stacktrace-backend whether it's empty.
|
| |
| std::string | description (std::size_t const at) const |
| | Queries the underlying stacktrace-backend for the description of the selected stacktrace-entry.
|
| |
| std::string | source_file (std::size_t const at) const |
| | Queries the underlying stacktrace-backend for the source-file of the selected stacktrace-entry.
|
| |
| std::size_t | source_line (std::size_t const at) const |
| | Queries the underlying stacktrace-backend for the source-line of the selected stacktrace-entry.
|
| |
A simple type-erased stacktrace abstraction.
◆ ~Stacktrace()
| mimicpp::util::Stacktrace::~Stacktrace |
( |
| ) |
|
|
default |
◆ Stacktrace() [1/4]
| mimicpp::util::Stacktrace::Stacktrace |
( |
| ) |
|
|
inline |
◆ Stacktrace() [2/4]
template<typename Backend>
requires (!std::same_as<
Stacktrace, std::remove_cvref_t<Backend>>) && stacktrace::backend<Backend>
| mimicpp::util::Stacktrace::Stacktrace |
( |
Backend | backend | ) |
|
|
inlineexplicitnodiscard |
Constructor storing the given stacktrace-backend.
- Parameters
-
| backend | The actual stacktrace-backend object. |
◆ Stacktrace() [3/4]
| mimicpp::util::Stacktrace::Stacktrace |
( |
Stacktrace const & | | ) |
|
|
default |
Defaulted copy-constructor.
◆ Stacktrace() [4/4]
| mimicpp::util::Stacktrace::Stacktrace |
( |
Stacktrace && | | ) |
|
|
nodiscarddefault |
Defaulted move-constructor.
◆ description()
| std::string mimicpp::util::Stacktrace::description |
( |
std::size_t const | at | ) |
const |
|
inlinenodiscard |
Queries the underlying stacktrace-backend for the description of the selected stacktrace-entry.
- Parameters
-
| at | The stacktrace-entry index. |
- Returns
- The description of the selected stacktrace-entry.
◆ empty()
| bool mimicpp::util::Stacktrace::empty |
( |
| ) |
const |
|
inlinenodiscard |
Queries the underlying stacktrace-backend whether it's empty.
- Returns
True if no stacktrace-entries exist.
◆ operator=() [1/2]
Defaulted move-assignment-operator.
◆ operator=() [2/2]
Defaulted copy-assignment-operator.
◆ size()
| std::size_t mimicpp::util::Stacktrace::size |
( |
| ) |
const |
|
inlinenodiscard |
Queries the underlying stacktrace-backend for its size.
- Returns
- The stacktrace-entry size.
◆ source_file()
| std::string mimicpp::util::Stacktrace::source_file |
( |
std::size_t const | at | ) |
const |
|
inlinenodiscard |
Queries the underlying stacktrace-backend for the source-file of the selected stacktrace-entry.
- Parameters
-
| at | The stacktrace-entry index. |
- Returns
- The source-file of the selected stacktrace-entry.
◆ source_line()
| std::size_t mimicpp::util::Stacktrace::source_line |
( |
std::size_t const | at | ) |
const |
|
inlinenodiscard |
Queries the underlying stacktrace-backend for the source-line of the selected stacktrace-entry.
- Parameters
-
| at | The stacktrace-entry index. |
- Returns
- The source-line of the selected stacktrace-entry.
◆ operator==
The documentation for this class was generated from the following file: