Maki
Loading...
Searching...
No Matches
maki::machine_ref< Conf > Class Template Reference

A type-erasing container for a reference to a machine of any type. More...

#include <maki/machine_ref.hpp>

Public Member Functions

 machine_ref (const machine_ref &) noexcept=default
 
template<const auto & MachineConf>
 machine_ref (machine< MachineConf > &mach)
 
 machine_ref (machine_ref &&) noexcept=default
 
machine_refoperator= (const machine_ref &) noexcept=default
 
machine_refoperator= (machine_ref &&) noexcept=default
 
template<class Event>
void process_event (const Event &evt) const
 

Related Symbols

(Note that these are not member symbols.)

template<class... Events>
using machine_ref_e = machine_ref<machine_ref_e_conf<Events...>>
 A convenient alias for machine_ref that only takes a list of event types.
 

Detailed Description

template<const auto & Conf>
class maki::machine_ref< Conf >

A type-erasing container for a reference to a machine of any type.

It exposes the process_event() member function of the held machine.