Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Private Types | Private Member Functions | List of all members
fmt::formatter< Vector3< What > > Class Template Reference

Allows formatting a Vector<T> using the same format specifiers as for T e.g. More...

#include <Vector3.h>

Inheritance diagram for fmt::formatter< Vector3< What > >:
Inheritance graph
[legend]
Collaboration diagram for fmt::formatter< Vector3< What > >:
Collaboration graph
[legend]

Public Member Functions

template<typename FormatContext >
auto format (const Vector3< What > &a_Vec, FormatContext &a_Ctx)
 

Private Types

using Super = fmt::formatter< What >
 

Private Member Functions

template<typename FormatContext , size_t Len>
void Write (FormatContext &a_Ctx, const char(&a_Str)[Len])
 
template<typename FormatContext >
void Write (FormatContext &a_Ctx, const What &a_Arg)
 

Detailed Description

template<typename What>
class fmt::formatter< Vector3< What > >

Allows formatting a Vector<T> using the same format specifiers as for T e.g.

fmt::format("{0:0.2f}", Vector3f{0.0231f, 1.2146f, 1.0f}) == "{0.02, 1.21, 1.00}"

Definition at line 407 of file Vector3.h.

Member Typedef Documentation

◆ Super

template<typename What >
using fmt::formatter< Vector3< What > >::Super = fmt::formatter<What>
private

Definition at line 409 of file Vector3.h.

Member Function Documentation

◆ format()

template<typename What >
template<typename FormatContext >
auto fmt::formatter< Vector3< What > >::format ( const Vector3< What > &  a_Vec,
FormatContext &  a_Ctx 
)
inline

Definition at line 428 of file Vector3.h.

◆ Write() [1/2]

template<typename What >
template<typename FormatContext , size_t Len>
void fmt::formatter< Vector3< What > >::Write ( FormatContext &  a_Ctx,
const char(&)  a_Str[Len] 
)
inlineprivate

Definition at line 412 of file Vector3.h.

◆ Write() [2/2]

template<typename What >
template<typename FormatContext >
void fmt::formatter< Vector3< What > >::Write ( FormatContext &  a_Ctx,
const What &  a_Arg 
)
inlineprivate

Definition at line 419 of file Vector3.h.


The documentation for this class was generated from the following file: