Skip to content

draft: SampleHandlerBase becomes CRTP over event data type#866

Draft
luketpickering wants to merge 1 commit into
developfrom
feature/SampleHandlerCRTP
Draft

draft: SampleHandlerBase becomes CRTP over event data type#866
luketpickering wants to merge 1 commit into
developfrom
feature/SampleHandlerCRTP

Conversation

@luketpickering
Copy link
Copy Markdown
Contributor

SampleHandlerBase
-> template SampleHandlerBase_t

now:

using SampleHandlerBase = SampleHandlerBase_t<EventInfo>;

to hopefully not be a breaking change, classes inheriting from SampleHandlerBase will function exactly as before, but now subclasses are able to inject their event data type into the base class.

All generic access to SampleHandlers must go through SampleHandlerInterface as SampleHandlerBase_t is no longer a class.

Pull request description

Changes or fixes

Examples


SampleHandlerBase
  -> template <class EventDataType> SampleHandlerBase_t<EventDataType>

now:

```
using SampleHandlerBase = SampleHandlerBase_t<EventInfo>;
```

to hopefully not be a breaking change, classes inheriting from SampleHandlerBase
will function exactly as before, but now subclasses are able to inject their
event data type into the base class.

All generic access to SampleHandlers must go through SampleHandlerInterface
as SampleHandlerBase_t is no longer a class.
@github-actions
Copy link
Copy Markdown

Hi @luketpickering, thank you for contributing to MaCh3! Please wait for MaCh3 developers to review your PR. If no one answers within a week, please message people from this list: https://github.com/orgs/mach3-software/teams/mach3admin . While waiting, please enjoy this

meme

Use this action on your projects. Use jokes on issues instead.

@KSkwarczynski KSkwarczynski marked this pull request as draft April 15, 2026 10:46
@github-actions
Copy link
Copy Markdown

Hi, I am MaCh3-Telemetry bot

Memory and CPU Usage Summary

### Memory and CPU Usage Summary

| Metric  |     Mean    |      Max    |
|---------|-------------|-------------|
| **RAM** |   358.51 MB |   366.24 MB |
| **CPU** |    96.24 %  |    97.75 %  |

Memory Usage Plot

You can view the memory usage plot directly in the job summary from the link above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant