AsmGrader 0.0.0
Loading...
Searching...
No Matches
asmgrader::detail::AggregateFormatter< Aggregate, AggregateName, Fields > Struct Template Reference

#include <aggregate.hpp>

Public Member Functions

constexpr auto parse (fmt::format_parse_context &ctx)
 
constexpr auto get_fields (const Aggregate &from) const
 
constexpr auto get_named_fields (const Aggregate &from) const
 
constexpr auto normal_format (const Aggregate &from, fmt::format_context &ctx) const
 
constexpr auto debug_format (const Aggregate &from, fmt::format_context &ctx) const
 
constexpr auto format (const Aggregate &from, fmt::format_context &ctx) const
 

Public Attributes

DebugFormatter debug_parser
 

Detailed Description

template<typename Aggregate, StaticString AggregateName, auto... Fields>
struct asmgrader::detail::AggregateFormatter< Aggregate, AggregateName, Fields >
Template Parameters
Fields- asmgrader::pair<StaticString, Aggregate::*> field name field ptr Very annoying to declare manually, so use the macro below!

Member Function Documentation

◆ debug_format()

template<typename Aggregate , StaticString AggregateName, auto... Fields>
auto asmgrader::detail::AggregateFormatter< Aggregate, AggregateName, Fields >::debug_format ( const Aggregate & from,
fmt::format_context & ctx ) const
inlineconstexpr

◆ format()

template<typename Aggregate , StaticString AggregateName, auto... Fields>
auto asmgrader::detail::AggregateFormatter< Aggregate, AggregateName, Fields >::format ( const Aggregate & from,
fmt::format_context & ctx ) const
inlineconstexpr

◆ get_fields()

template<typename Aggregate , StaticString AggregateName, auto... Fields>
auto asmgrader::detail::AggregateFormatter< Aggregate, AggregateName, Fields >::get_fields ( const Aggregate & from) const
inlineconstexpr

◆ get_named_fields()

template<typename Aggregate , StaticString AggregateName, auto... Fields>
auto asmgrader::detail::AggregateFormatter< Aggregate, AggregateName, Fields >::get_named_fields ( const Aggregate & from) const
inlineconstexpr

◆ normal_format()

template<typename Aggregate , StaticString AggregateName, auto... Fields>
auto asmgrader::detail::AggregateFormatter< Aggregate, AggregateName, Fields >::normal_format ( const Aggregate & from,
fmt::format_context & ctx ) const
inlineconstexpr

◆ parse()

template<typename Aggregate , StaticString AggregateName, auto... Fields>
auto asmgrader::detail::AggregateFormatter< Aggregate, AggregateName, Fields >::parse ( fmt::format_parse_context & ctx)
inlineconstexpr

Member Data Documentation

◆ debug_parser

template<typename Aggregate , StaticString AggregateName, auto... Fields>
DebugFormatter asmgrader::detail::AggregateFormatter< Aggregate, AggregateName, Fields >::debug_parser

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