ILLIXR: Illinois Extended Reality Testbed
List of all members
ILLIXR::switchboard::event Class Reference

Virtual class for event types. More...

#include <switchboard.hpp>

Detailed Description

Virtual class for event types.

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


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