Skip to content

Class ILLIXR::switchboard::event

ClassList > ILLIXR > switchboard > event

Virtual class for event types. More...

  • #include <switchboard.hpp>

Inherited by the following classes: ILLIXR::cam_type, ILLIXR::connection_signal, ILLIXR::hologram_input, ILLIXR::image_handle, ILLIXR::imu_integrator_input, ILLIXR::imu_raw_type, ILLIXR::imu_type, ILLIXR::pose_type, ILLIXR::rendered_frame, ILLIXR::rgb_depth_type, ILLIXR::signal_to_quad, ILLIXR::switchboard::event_wrapper, ILLIXR::texture_pose

Public Functions

Type Name
virtual ~event () = default

Detailed Description

Minimum requirement: Events must be destructible. Casting events from various sources to void* (aka type-punning) breaks [strict-aliasing][1] and is undefined behavior in modern C++. Therefore, we require a common supertype for all events. We will cast them to this common supertype, event* instead.

[1] https://cellperformance.beyond3d.com/articles/2006/06/understanding-strict-aliasing.html

Public Functions Documentation

function ~event

virtual ILLIXR::switchboard::event::~event () = default


The documentation for this class was generated from the following file include/illixr/switchboard.hpp