numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class to hold information of source codes. More...
#include <num_collect/util/source_info_view.h>
Public Member Functions | |
constexpr | source_info_view (std::string_view file_path=NUM_COLLECT_BUILTIN_FILE(), index_type line=NUM_COLLECT_BUILTIN_LINE(), index_type column=NUM_COLLECT_BUILTIN_COLUMN(), std::string_view function_name=NUM_COLLECT_BUILTIN_FUNCTION()) |
Constructor. | |
constexpr auto | column () const -> index_type |
Get the column number. | |
constexpr auto | file_path () const -> std::string_view |
Get the file path. | |
constexpr auto | function_name () const -> std::string_view |
Get the function name. | |
constexpr auto | line () const -> index_type |
Get the line number. | |
Private Attributes | |
index_type | column_ |
Column number. | |
std::string_view | file_path_ |
File path. | |
std::string_view | function_name_ |
Function name. | |
index_type | line_ |
Line number. | |
Class to hold information of source codes.
std::source_location
. Definition at line 35 of file source_info_view.h.
|
inlineexplicitconstexpr |
Constructor.
[in] | file_path | File path. |
[in] | line | Line number. |
[in] | column | Column number. |
[in] | function_name | Function name. |
Definition at line 45 of file source_info_view.h.
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
private |
Column number.
Definition at line 97 of file source_info_view.h.
|
private |
File path.
Definition at line 91 of file source_info_view.h.
|
private |
Function name.
Definition at line 100 of file source_info_view.h.
|
private |
Line number.
Definition at line 94 of file source_info_view.h.