numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
num_collect::logging::impl Namespace Reference

Namespace of internal implementations. More...

Classes

class  iteration_layer_handler
 Class to handle layers of iterations. More...
 
class  log_tag_config_tree
 Class of trees of configurations of log tags. More...
 
class  log_tag_config_tree_node
 Class of nodes in log_tag_config_tree objects. More...
 
class  log_tag_element
 Class of elements in log tags. More...
 

Functions

constexpr auto create_log_tag_element_char_mask ()
 Create a mask array for is_log_tag_element_char function.
 
auto is_log_tag_element_char (char c) noexcept -> bool
 Check whether the given character is permitted in elements of log tags.
 
template<typename... Args>
requires (sizeof...(Args) > 0)
void log_without_condition_check (util::source_info_view source, const logger &l, log_level level, fmt::format_string< Args... > format, Args &&... args)
 Write a log without check of the condition to write logs.
 
void log_without_condition_check (util::source_info_view source, const logger &l, log_level level, std::string_view body)
 Write a log without check of the condition to write logs.
 
auto parse_log_tag_element (std::string_view input) -> std::tuple< std::string_view, std::string_view >
 Parse an element in log tags.
 
auto parse_log_tag_separator (std::string_view input) -> std::string_view
 Parse a separator in log tags.
 
auto separate_top_log_tag_element (std::string_view tag) -> std::pair< log_tag_element, std::string_view >
 Separate the top level element in a log tag.
 

Detailed Description

Namespace of internal implementations.

Function Documentation

◆ create_log_tag_element_char_mask()

auto num_collect::logging::impl::create_log_tag_element_char_mask ( )
nodiscardconstexpr

Create a mask array for is_log_tag_element_char function.

Returns
Mask array.

Definition at line 33 of file is_log_tag_element_char.h.

◆ is_log_tag_element_char()

auto num_collect::logging::impl::is_log_tag_element_char ( char c) -> bool
inlinenodiscardnoexcept

Check whether the given character is permitted in elements of log tags.

Parameters
[in]cCharacter to check.
Return values
truePermitted.
falseNot permitted.

Definition at line 70 of file is_log_tag_element_char.h.

◆ log_without_condition_check() [1/2]

template<typename... Args>
requires (sizeof...(Args) > 0)
void num_collect::logging::impl::log_without_condition_check ( util::source_info_view source,
const logger & l,
log_level level,
fmt::format_string< Args... > format,
Args &&... args )
inline

Write a log without check of the condition to write logs.

Template Parameters
ArgsType of arguments.
Parameters
[in]sourceInformation of the source code.
[in]lLogger.
[in]levelLog level.
[in]formatFormat string.
[in]argsArguments for the format string.

Definition at line 65 of file logging_macros.h.

◆ log_without_condition_check() [2/2]

void num_collect::logging::impl::log_without_condition_check ( util::source_info_view source,
const logger & l,
log_level level,
std::string_view body )
inline

Write a log without check of the condition to write logs.

Parameters
[in]sourceInformation of the source code.
[in]lLogger.
[in]levelLog level.
[in]bodyBody.

Definition at line 48 of file logging_macros.h.

◆ parse_log_tag_element()

auto num_collect::logging::impl::parse_log_tag_element ( std::string_view input) -> std::tuple<std::string_view, std::string_view>
inlinenodiscard

Parse an element in log tags.

Parameters
[in]inputInput starting with an element.
Returns
Remaining inputs after an element.

Definition at line 36 of file parse_log_tag_element.h.

◆ parse_log_tag_separator()

auto num_collect::logging::impl::parse_log_tag_separator ( std::string_view input) -> std::string_view
inlinenodiscard

Parse a separator in log tags.

Parameters
[in]inputInput starting with a separator.
Returns
Remaining inputs after a separator.

Definition at line 34 of file parse_log_tag_separator.h.

◆ separate_top_log_tag_element()

auto num_collect::logging::impl::separate_top_log_tag_element ( std::string_view tag) -> std::pair<log_tag_element, std::string_view>
inlinenodiscard

Separate the top level element in a log tag.

Parameters
[in]tagLog tag.
Returns
Top level element and remaining.

Definition at line 39 of file separate_top_log_tag_element.h.