pars 0.2.1
Loading...
Searching...
No Matches
pars::ev::base_klass< event_t > Struct Template Reference

#include <klass.h>

Inheritance diagram for pars::ev::base_klass< event_t >:

Public Types

using event_type = event_t
 

Static Public Member Functions

template<template< typename > typename kind_of>
requires kind_c<kind_of>
static constexpr executes exec_policy ()
 an event_t executes synchronously in every possibile kind_of<event_t>
 

Static Public Attributes

static constexpr bool requires_network = true
 by default, an event_t requires network
 

Detailed Description

template<typename event_t>
struct pars::ev::base_klass< event_t >

Definition at line 51 of file klass.h.

Member Typedef Documentation

◆ event_type

template<typename event_t>
using pars::ev::base_klass< event_t >::event_type = event_t

Definition at line 53 of file klass.h.

Member Function Documentation

◆ exec_policy()

template<typename event_t>
template<template< typename > typename kind_of>
requires kind_c<kind_of>
static constexpr executes pars::ev::base_klass< event_t >::exec_policy ( )
inlinestaticconstexpr

an event_t executes synchronously in every possibile kind_of<event_t>

Definition at line 61 of file klass.h.

62 {
63 return executes::sync;
64 }

References pars::ev::sync.

Referenced by pars::ev::klass<::pars_example::event::fib_requested >::exec_policy().

Here is the caller graph for this function:

Member Data Documentation

◆ requires_network

template<typename event_t>
bool pars::ev::base_klass< event_t >::requires_network = true
staticconstexpr

by default, an event_t requires network

Definition at line 56 of file klass.h.


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