Maki
|
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_ref & | operator= (const machine_ref &) noexcept=default |
machine_ref & | operator= (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. | |
A type-erasing container for a reference to a machine of any type.
It exposes the process_event() member function of the held machine.