Contents

SushiEngine::Logging

format_argument

void format_argument(FormatBuffer &buffer, bool value) noexcept

Parameters

NameType
bufferFormatBuffer &
valuebool

Description

Writes "true" or "false".

void format_argument(FormatBuffer &buffer, char value) noexcept

Parameters

NameType
bufferFormatBuffer &
valuechar

Description

Writes value as one character.

void format_argument(FormatBuffer &buffer, long long value) noexcept

Parameters

NameType
bufferFormatBuffer &
valuelong long

Description

Writes value in decimal through std::to_chars.

void format_argument(FormatBuffer &buffer, unsigned long long value) noexcept

Parameters

NameType
bufferFormatBuffer &
valueunsigned long long

Description

Writes value in decimal through std::to_chars.

void format_argument(FormatBuffer &buffer, float value) noexcept

Parameters

NameType
bufferFormatBuffer &
valuefloat

Description

Writes the shortest round-trip form of value through std::to_chars.

void format_argument(FormatBuffer &buffer, double value) noexcept

Parameters

NameType
bufferFormatBuffer &
valuedouble

Description

Writes the shortest round-trip form of value through std::to_chars.

void format_argument(FormatBuffer &buffer, const void *value) noexcept

Parameters

NameType
bufferFormatBuffer &
valueconst void *

Description

Writes value as 0x-prefixed hexadecimal.

void format_argument(FormatBuffer &buffer, const char *value) noexcept

Parameters

NameType
bufferFormatBuffer &
valueconst char *

Description

Copies the C string value, or writes "(null)".

void format_argument(FormatBuffer &buffer, std::nullptr_t value) noexcept

Parameters

NameType
bufferFormatBuffer &
valuestd::nullptr_t

Description

Writes "(null)".

void format_argument(FormatBuffer &buffer, std::string_view value) noexcept

Parameters

NameType
bufferFormatBuffer &
valuestd::string_view

Description

Copies value.

void format_argument(FormatBuffer &buffer, const std::string &value) noexcept

Parameters

NameType
bufferFormatBuffer &
valueconst std::string &

Description

Copies value.

template <typename Integer, typename std::enable_if< std::is_integral< Integer >::value &&!std::is_same< Integer, bool >::value &&!std::is_same< Integer, char >::value, int >::type = 0>
void format_argument(FormatBuffer &buffer, Integer value) noexcept

Parameters

NameType
bufferFormatBuffer &
valueInteger

Description

Writes a non-bool, non-char integer by widening it to a 64-bit overload.

template <typename Enumeration, typename std::enable_if< std::is_enum< Enumeration >::value, int >::type = 0>
void format_argument(FormatBuffer &buffer, Enumeration value) noexcept

Parameters

NameType
bufferFormatBuffer &
valueEnumeration

Description

Writes an enumeration as its underlying integer.

template <typename Pointee, typename std::enable_if<!std::is_same< typename std::remove_cv< Pointee >::type, char >::value, int >::type = 0>
void format_argument(FormatBuffer &buffer, Pointee *value) noexcept

Parameters

NameType
bufferFormatBuffer &
valuePointee *

Description

Writes a non-character object pointer as its address.