iterative-solver 0.0
molpro::linalg::itsolv::log::FormatOption< Context, T, precision > Struct Template Reference

#include <Logger.h>

Detailed Description

template<context Context, typename T, std::size_t precision = default_precision>
struct molpro::linalg::itsolv::log::FormatOption< Context, T, precision >

Customization point for controlling how exactly a type is formatted

Template Parameters
ContextThe context in which the formatting is happening
TThe type to format
precisionThe requested precision (default_precision indicates unspecified/default precision)

Static Public Member Functions

static constexpr auto format_string ()
 
static constexpr std::string_view range_begin_mark ()
 
static constexpr std::string_view range_end_mark ()
 
static constexpr std::string_view range_separator ()
 
static constexpr void prepare_stream (std::ostream &stream)
 

Member Function Documentation

◆ format_string()

template<context Context, typename T , std::size_t precision = default_precision>
static constexpr auto molpro::linalg::itsolv::log::FormatOption< Context, T, precision >::format_string ( )
inlinestaticconstexpr

Yields the format string to be used with std::format

◆ prepare_stream()

template<context Context, typename T , std::size_t precision = default_precision>
static constexpr void molpro::linalg::itsolv::log::FormatOption< Context, T, precision >::prepare_stream ( std::ostream &  stream)
inlinestaticconstexpr

Sets the stream's properties when using operator<< to yield a string representation

◆ range_begin_mark()

template<context Context, typename T , std::size_t precision = default_precision>
static constexpr std::string_view molpro::linalg::itsolv::log::FormatOption< Context, T, precision >::range_begin_mark ( )
inlinestaticconstexpr
Returns
String to be inserted at the beginning of a range

◆ range_end_mark()

template<context Context, typename T , std::size_t precision = default_precision>
static constexpr std::string_view molpro::linalg::itsolv::log::FormatOption< Context, T, precision >::range_end_mark ( )
inlinestaticconstexpr
Returns
String to be inserted at the end of a range

◆ range_separator()

template<context Context, typename T , std::size_t precision = default_precision>
static constexpr std::string_view molpro::linalg::itsolv::log::FormatOption< Context, T, precision >::range_separator ( )
inlinestaticconstexpr
Returns
Separator that shall be used when formatting a range of T