pars 0.2.1.99
Loading...
Searching...
No Matches
pars::ev::spec< kind_of_event_t > Class Template Reference

#include <spec.h>

Public Types

using kind_of_event_type = kind_of_event_t
 
template<typename event_t>
using kind_type = kind_of_event_type::template kind_type<event_t>
 
using event_type = kind_of_event_type::event_type
 

Public Member Functions

auto format_to (std::format_context &ctx) const -> decltype(ctx.out())
 

Static Public Attributes

static constexpr std::size_t hash
 

Detailed Description

template<typename kind_of_event_t>
class pars::ev::spec< kind_of_event_t >

Definition at line 43 of file spec.h.

Member Typedef Documentation

◆ event_type

template<typename kind_of_event_t>
using pars::ev::spec< kind_of_event_t >::event_type = kind_of_event_type::event_type

Definition at line 51 of file spec.h.

◆ kind_of_event_type

template<typename kind_of_event_t>
using pars::ev::spec< kind_of_event_t >::kind_of_event_type = kind_of_event_t

Definition at line 46 of file spec.h.

◆ kind_type

template<typename kind_of_event_t>
template<typename event_t>
using pars::ev::spec< kind_of_event_t >::kind_type = kind_of_event_type::template kind_type<event_t>

Definition at line 49 of file spec.h.

Member Function Documentation

◆ format_to()

template<typename kind_of_event_t>
auto pars::ev::spec< kind_of_event_t >::format_to ( std::format_context & ctx) const -> decltype(ctx.out())
inline

Definition at line 56 of file spec.h.

57 {
58 return std::format_to(
59 ctx.out(), "{} \x1b[90m[hash:{:X}, kind:{}({:X}), event:{}({:X})]\x1b[0m",
63 }
static constexpr std::size_t hash
Definition spec.h:53
kind_of_event_type::template kind_type< event_t > kind_type
Definition spec.h:49

References hash, and nametype().

Here is the call graph for this function:

Member Data Documentation

◆ hash

template<typename kind_of_event_t>
std::size_t pars::ev::spec< kind_of_event_t >::hash
staticconstexpr
Initial value:

Definition at line 53 of file spec.h.

Referenced by format_to().


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