![]() |
Shamrock 2025.10.0
Astrophysical Code
|
provide information about the source location More...
#include <shambase/include/shambase/SourceLocation.hpp>
Collaboration diagram for SourceLocation:Public Types | |
| using | srcloc = shambase::cxxstd::source_location |
Public Member Functions | |
| SourceLocation (srcloc _loc=srcloc::current()) | |
| std::string | format_multiline () const |
| format the location in multiple lines | |
| std::string | format_multiline (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 30 of file SourceLocation.hpp.
Definition at line 32 of file SourceLocation.hpp.
|
inlineexplicit |
Definition at line 36 of file SourceLocation.hpp.
| std::string SourceLocation::format_multiline | ( | ) | const |
format the location in multiple lines
Definition at line 23 of file SourceLocation.cpp.
Here is the call graph for this function:| std::string SourceLocation::format_multiline | ( | std::string | stacktrace | ) | const |
format the location in multiple lines with a given stacktrace
| stacktrace | the stacktrace to add to the location |
Definition at line 32 of file SourceLocation.cpp.
| std::string SourceLocation::format_one_line | ( | ) | const |
format the location in a one liner
Definition at line 42 of file SourceLocation.cpp.
| std::string SourceLocation::format_one_line_func | ( | ) | const |
format the location in a one liner with the function name displayed
Definition at line 46 of file SourceLocation.cpp.
| srcloc SourceLocation::loc |
Definition at line 34 of file SourceLocation.hpp.