15#define __XTD_CORE_INTERNAL__
17#undef __XTD_CORE_INTERNAL__
130 bool equals(const
xtd::
object& obj) const noexcept override;
261 friend class stack_trace;
262 static auto get_stack_frames(const
xtd::
string& str,
xtd::
size skip_frames,
bool need_file_info) noexcept;
Contains string definitions.
The xtd::diagnostics::source_location class represents certain information about the source code,...
Definition source_location.hpp:33
virtual const xtd::string & get_file_name() const noexcept
Gets the file name that contains the code that is executing. This information is typically extracted ...
stack_frame(const xtd::string &file_name, xtd::size line_number)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given fi...
xtd::string to_string() const noexcept override
Builds a readable representation of the stack trace.
stack_frame()
Initializes a new instance of the xtd::diagnostics::stack_frame class.
stack_frame(xtd::size skip_frame)
Initializes a new instance of the xtd::diagnostics::stack_frame class that corresponds to a frame abo...
stack_frame(const xtd::diagnostics::source_location &source_location, xtd::size offset)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given gi...
stack_frame(const xtd::string &file_name, xtd::size line_number, const xtd::string &method_name)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given fi...
static stack_frame current(const xtd::diagnostics::source_location &value=xtd::diagnostics::source_location::current()) noexcept
Crates a new xtd::diagnostics::stack_frame object corresponding to the location of the call site.
stack_frame(xtd::null_ptr frame)
Initializes a new empty instance of the xtd::diagnostics::stack_frame.
virtual xtd::size get_file_line_number() const noexcept
Gets the line number in the file that contains the code that is executing. This information is typica...
virtual xtd::size get_file_column_number() const noexcept
Gets the column number in the file that contains the code that is executing. This information is typi...
static stack_frame empty() noexcept
Return an empty stack frame.
bool equals(const xtd::object &obj) const noexcept override
Indicates whether the current xtd::diagnostic::stack_frame is equal to another xtd::diagnostic::stack...
virtual xtd::size get_native_offset() const noexcept
Gets the offset from the start of the native code for the method that is being executed.
stack_frame(xtd::size skip_frame, bool need_file_info)
Initializes a new instance of the xtd::diagnostics::stack_frame class that corresponds to a frame abo...
stack_frame(const xtd::string &file_name, xtd::size line_number, xtd::size column_number)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given fi...
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
virtual const xtd::string & get_method() const noexcept
Gets the method in which the frame is executing.
static constexpr xtd::size OFFSET_UNKNOWN
Defines the value that is returned from the get_offset() method when the offset is unknown....
Definition stack_frame.hpp:121
stack_frame(const xtd::diagnostics::source_location &source_location)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given so...
virtual xtd::size get_offset() const noexcept
Gets the offset from the start of the code for the method that is being executed.
stack_frame(bool need_file_info)
Initializes a new instance of the xtd::diagnostics::stack_frame class, optionally capturing source in...
stack_frame(const xtd::string &file_name, xtd::size line_number, const xtd::string &method_name, xtd::size column_number, xtd::size offset)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given fi...
stack_frame(const xtd::string &file_name, xtd::size line_number, const xtd::string &method_name, xtd::size column_number)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given fi...
Represents a stack trace, which is an ordered collection of one or more stack frames.
Definition stack_trace.hpp:40
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
Contains core_export_ keyword.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
std::nullptr_t null_ptr
Represents the null_opt alias on std::nullptr_t.
Definition null_ptr.hpp:19
xtd::sptr< type_t > ptr
The xtd::ptr object is a shared pointer.
Definition ptr.hpp:27
@ other
The operating system is other.
Definition platform_id.hpp:58
Contains xtd::iequatable interface.
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::null_ptr alias.
Contains xtd::object class.
Contains xtd::diagnostics::source_location method.