ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::TypeDispatcher< base_t, signature_t > Class Template Reference

Template class for type-based function dispatch. More...

Inheritance diagram for Acts::TypeDispatcher< base_t, signature_t >:
[legend]

Detailed Description

template<typename base_t, typename signature_t>
class Acts::TypeDispatcher< base_t, signature_t >

Template class for type-based function dispatch.

This class allows registering function pointers associated with specific derived types of a base class. When invoked with a base class reference, it will look up and call the appropriate registered function.

Template Parameters
base_tThe base class type that will be the first parameter
signature_tThe function signature (e.g., return_t(Args...))