diff --git a/boost/stacktrace/const_iterator.html b/boost/stacktrace/const_iterator.html new file mode 100644 index 0000000..856b8b8 --- /dev/null +++ b/boost/stacktrace/const_iterator.html @@ -0,0 +1,52 @@ + +
+ +![]() |
+Home | +Libraries | +People | +FAQ | +More | +
boost::stacktrace::const_iterator — Random access iterator over frames that returns frame on dereference.
// In header: <boost/stacktrace/const_iterator.hpp> + + +class const_iterator : public boost::iterator_facade< const_iterator, frame, boost::random_access_traversal_tag, frame > +{ +};
| + | + |
![]() |
+Home | +Libraries | +People | +FAQ | +More | +
boost::stacktrace::frame — Non-owning class that references the frame information stored inside the boost::stacktrace::stacktrace class.
+// In header: <boost/stacktrace/frame.hpp> + + +class frame { +public: + // construct/copy/destruct + frame() = delete; + frame(const frame &) = default; + explicit frame(const void *) noexcept; + frame & operator=(const frame &) = default; + + // public member functions + std::string name() const; + const void * address() const noexcept; + std::string source_file() const; + std::size_t source_line() const; +};
frame
+ public
+ construct/copy/destructframe() = delete;
frame(const frame &) = default;Copy constructs frame.
+
+Throws: |
+Nothing. Complexity: O(1). | +
explicit frame(const void * addr) noexcept;Constructs frame that can extract information from addr at runtime.
+
+Throws: |
+Nothing. Complexity: O(1). | +
frame & operator=(const frame &) = default;Copy assigns frame.
+
+Throws: |
+Nothing. Complexity: O(1). | +
frame public member functionsstd::string name() const;+
+ +
+Returns: |
+Name of the frame (function name in a human readable form). |
+
Throws: |
+std::bad_alloc if not enough memory to construct resulting string. | +
const void * address() const noexcept;+
+ +
+Returns: |
+Address of the frame function. |
+
Throws: |
+Nothing. | +
std::string source_file() const;+
+ +
+Returns: |
+Path to the source file, were the function of the frame is defined. Returns empty string if this->source_line() == 0. |
+
Throws: |
+std::bad_alloc if not enough memory to construct resulting string. | +
std::size_t source_line() const;+
+ +
+Returns: |
+Code line in the source file, were the function of the frame is defined. |
+
Throws: |
+std::bad_alloc if not enough memory to construct string for internal needs. | +
| + | + |
![]() |
-Home | -Libraries | -People | -FAQ | -More | -
boost::stacktrace::frame_view — Non-owning class that references the frame information stored inside the boost::stacktrace::stacktrace class.
-// In header: <boost/stacktrace.hpp> - - -class frame_view { -public: - // construct/copy/destruct - frame_view() = delete; - frame_view(const frame_view &) = default; - frame_view & operator=(const frame_view &) = default; - - // public member functions - std::string name() const; - const void * address() const noexcept; - std::string source_file() const; - std::size_t source_line() const noexcept; -};
frame_view
- public
- construct/copy/destructframe_view() = delete;
frame_view(const frame_view &) = default;Copy constructs
frame_view. -
-Throws: |
-Nothing. Complexity: O(1). | -
frame_view & operator=(const frame_view &) = default;Copy assigns
frame_view. -
-Throws: |
-Nothing. Complexity: O(1). | -
frame_view public member functionsstd::string name() const;-
- -
-Returns: |
-Name of the frame (function name in a human readable form). |
-
Throws: |
-std::bad_alloc if not enough memory to construct resulting string. | -
const void * address() const noexcept;-
- -
-Returns: |
-Address of the frame function. |
-
Throws: |
-Nothing. | -
std::string source_file() const;-
- -
-Returns: |
-Path to the source file, were the function of the frame is defined. Returns empty string if this->source_line() == 0. |
-
Throws: |
-std::bad_alloc if not enough memory to construct resulting string. | -
std::size_t source_line() const noexcept;-
- -
-Returns: |
-Code line in the source file, were the function of the frame is defined. |
-
Throws: |
-Nothing. | -
| - | - |
boost::stacktrace::stacktrace — Class that on construction copies minimal information about call stack into its internals and provides access to that information.
// In header: <boost/stacktrace.hpp>
+// In header: <boost/stacktrace/stacktrace.hpp>
class stacktrace {
public:
// types
- typedef frame_view reference;
- typedef unspecified iterator; // Random access iterator that returns frame_view.
+ typedef frame reference;
+ typedef boost::stacktrace::const_iterator iterator; // Random access iterator that returns frame.
typedef iterator const_iterator;
typedef std::reverse_iterator< iterator > reverse_iterator;
- typedef std::reverse_iterator< const_iterator > const_reverse_iterator;
+ typedef std::reverse_iterator< const_iterator > const_reverse_iterator;
// construct/copy/destruct
- stacktrace() noexcept;
- stacktrace(const stacktrace &) noexcept;
- stacktrace & operator=(const stacktrace &) noexcept;
- ~stacktrace();
+ stacktrace() noexcept;
+ stacktrace(const stacktrace &) noexcept;
+ stacktrace & operator=(const stacktrace &) noexcept;
+ ~stacktrace();
- // public member functions
- std::size_t size() const noexcept;
- frame_view operator[](std::size_t) const noexcept;
- const_iterator begin() const noexcept;
- const_iterator cbegin() const noexcept;
- const_iterator end() const noexcept;
- const_iterator cend() const noexcept;
- const_reverse_iterator rbegin() const noexcept;
- const_reverse_iterator crbegin() const noexcept;
- const_reverse_iterator rend() const noexcept;
- const_reverse_iterator crend() const noexcept;
- explicit operator bool() const noexcept;
- bool operator<(const stacktrace &) const noexcept;
- bool operator==(const stacktrace &) const noexcept;
- std::size_t hash_code() const noexcept;
+ // public member functions
+ std::size_t size() const noexcept;
+ frame operator[](std::size_t) const noexcept;
+ const_iterator begin() const noexcept;
+ const_iterator cbegin() const noexcept;
+ const_iterator end() const noexcept;
+ const_iterator cend() const noexcept;
+ const_reverse_iterator rbegin() const noexcept;
+ const_reverse_iterator crbegin() const noexcept;
+ const_reverse_iterator rend() const noexcept;
+ const_reverse_iterator crend() const noexcept;
+ explicit operator bool() const noexcept;
+ bool operator<(const stacktrace &) const noexcept;
+ bool operator==(const stacktrace &) const noexcept;
+ std::size_t hash_code() const noexcept;
};
-Description
+Description
-
+
stacktrace
public
construct/copy/destruct
-
-
stacktrace() noexcept;
Stores the current function call sequence inside the class. Complexity: O(N) where N is call seaquence length, O(1) for noop backend.
+stacktrace() noexcept;
Stores the current function call sequence inside the class. Complexity: O(N) where N is call seaquence length, O(1) for noop backend.
-
-
stacktrace(const stacktrace & bt) noexcept;
+stacktrace(const stacktrace & st) noexcept;
Complexity: O(1)
-
-
stacktrace & operator=(const stacktrace & bt) noexcept;
+stacktrace & operator=(const stacktrace & st) noexcept;
Complexity: O(1)
-
-
~stacktrace();
+~stacktrace();
Complexity: O(N) for libunwind, O(1) for other backends.
-
-stacktrace public member functions
+
+stacktrace public member functions
-
-
std::size_t size() const noexcept;
+std::size_t size() const noexcept;
Complexity: O(1)
@@ -101,7 +102,7 @@
-
-
frame_view operator[](std::size_t frame_no) const noexcept;
+frame operator[](std::size_t frame_no) const noexcept;
Complexity: Amortized O(1), O(1) for noop backend.
@@ -120,37 +121,37 @@
Returns:
-frame_view that references the actual frame info, stored inside *this.
+frame that references the actual frame info, stored inside *this.
-const_iterator begin() const noexcept;
+const_iterator begin() const noexcept;
Complexity: O(1)
-const_iterator cbegin() const noexcept;
+const_iterator cbegin() const noexcept;
Complexity: O(1)
-const_iterator end() const noexcept;
+const_iterator end() const noexcept;
Complexity: O(1)
-const_iterator cend() const noexcept;
+const_iterator cend() const noexcept;
Complexity: O(1)
-const_reverse_iterator rbegin() const noexcept;
+const_reverse_iterator rbegin() const noexcept;
Complexity: O(1)
-const_reverse_iterator crbegin() const noexcept;
+const_reverse_iterator crbegin() const noexcept;
Complexity: O(1)
-const_reverse_iterator rend() const noexcept;
+const_reverse_iterator rend() const noexcept;
Complexity: O(1)
-const_reverse_iterator crend() const noexcept;
+const_reverse_iterator crend() const noexcept;
Complexity: O(1)
-explicit operator bool() const noexcept;
Allows to check that stack trace capturing was successful.
+
explicit operator bool() const noexcept;
Allows to check that stack trace capturing was successful.
Complexity: O(1)
@@ -161,13 +162,13 @@
-bool operator<(const stacktrace & rhs) const noexcept;
Compares stacktraces for less, order is platform dependant. Complexity: Amortized O(1); worst case O(size())
+bool operator<(const stacktrace & rhs) const noexcept;
Compares stacktraces for less, order is platform dependant. Complexity: Amortized O(1); worst case O(size())
-bool operator==(const stacktrace & rhs) const noexcept;
Compares stacktraces for equality. Complexity: Amortized O(1); worst case O(size())
+bool operator==(const stacktrace & rhs) const noexcept;
Compares stacktraces for equality. Complexity: Amortized O(1); worst case O(size())
-std::size_t hash_code() const noexcept;
Returns hashed code of the stacktrace. Complexity: O(1)
+std::size_t hash_code() const noexcept;
Returns hashed code of the stacktrace. Complexity: O(1)
@@ -183,7 +184,7 @@