Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor EventHandler aliases #1224

Merged
merged 5 commits into from
Feb 13, 2025
Merged

Refactor EventHandler aliases #1224

merged 5 commits into from
Feb 13, 2025

Conversation

DanRStevens
Copy link
Collaborator

Make type aliases refer to the full derived Signal template class. Use ::Source alias to refer to the SignalSource base type. Rename aliases and members to use "Signal" rather than "Event". They are not events themselves, but rather Signal objects that deliver events.

Contains a bug fix where some members were missing from EventHandler::disconnectAll(). Being able to destruct the object would have been an easier way to ensure all sub-objects are cleared out, though that doesn't work so well with globals.

Related:

Refer to the full `Signal` type, rather than the `SignalSource` base type. Get the base type using the `::Source` type reference.
This ensures consistency for the type.
They are not events. They are `Signal` objects that can be used to deliver events.
@DanRStevens DanRStevens merged commit bc2aeb5 into main Feb 13, 2025
8 checks passed
@DanRStevens DanRStevens deleted the refactorEventHandlerAliases branch February 13, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant