![]() |
Shamrock 2025.10.0
Astrophysical Code
|
provide information about the source location More...
#include <shambase/include/shambase/SourceLocation.hpp>
Public Types | |
| using | srcloc = std::source_location |
Public Member Functions | |
| constexpr | SourceLocation (srcloc _loc=srcloc::current()) noexcept |
| std::string | format_multiline () const |
| format the location in multiple lines | |
| std::string | format_multiline (const std::string &stacktrace) const |
| format the location in multiple lines with a given stacktrace | |
| std::string | format_one_line () const |
| format the location in a one liner | |
| std::string | format_one_line_func () const |
| format the location in a one liner with the function name displayed | |
Public Attributes | |
| srcloc | loc |
provide information about the source location
Example :
Definition at line 61 of file SourceLocation.hpp.
| using SourceLocation::srcloc = std::source_location |
Definition at line 63 of file SourceLocation.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 67 of file SourceLocation.hpp.
|
inline |
format the location in multiple lines
Definition at line 75 of file SourceLocation.hpp.
|
inline |
format the location in multiple lines with a given stacktrace
| stacktrace | the stacktrace to add to the location |
Definition at line 83 of file SourceLocation.hpp.
|
inline |
format the location in a one liner
Definition at line 92 of file SourceLocation.hpp.
|
inline |
format the location in a one liner with the function name displayed
Definition at line 99 of file SourceLocation.hpp.
| srcloc SourceLocation::loc |
Definition at line 65 of file SourceLocation.hpp.