|
libtcspc C++ API
Streaming TCSPC and time tag data processing
|
Concepts and traits to check processor capabilities.
Concepts | |
| concept | tcspc::const_handler_for |
| Concept that is satisfied when a processor handles an event type by const lvalue reference. | |
| concept | tcspc::flushable |
| Concept that is satisfied when a processor handles flushing. | |
| concept | tcspc::handler_for |
| Concept that is satisfied when a processor handles the given event types. | |
| concept | tcspc::processor |
| Concept that is satisfied when a processor handles the given event types and flush. | |
| concept | tcspc::rvalue_handler_for |
| Concept that is satisfied when a processor handles an event type by rvalue reference. | |
Variables | |
| template<typename Proc, typename EventList> | |
| constexpr bool | tcspc::handles_event_list_v |
| Trait variable to check whether a processor handles a list of event types. | |
| template<typename Proc, typename EventList> | |
| constexpr bool | tcspc::is_processor_of_list_v |
| Trait variable to check whether a processor handles a list of event types and flush. | |
|
inlineconstexpr |
Trait variable to check whether a processor handles a list of event types.
Determines whether the processor Proc handles all of the event types in the tcspc::type_list specialization EventList. Equivalent to tcspc::handler_for<Proc, Events...> where Events... is the parameter pack of EventList.
If the event handler(s) exist but any of them has a return type other than void, compilation fails.
Proc handles the events in EventList provided that Proc and the relevant Proc::handle() overloads can be instantiated (if Proc is a template class). It is possible that instantiation will fail (due to static_assert failures or other issues) even if the result of this trait is true.
|
inlineconstexpr |
Trait variable to check whether a processor handles a list of event types and flush.
Determines whether the processor Proc handles all of the event types in the tcspc::type_list specialization EventList as well as flush(). Equivalent to tcspc::processor<Proc, Events...> where Events... is the parameter pack of EventList.
If the event handler(s) and/or flush() exist but any of them has a return type other than void, compilation fails.
Proc handles flush and the events in EventList provided that Proc, Proc::flush(), and the relevant Proc::handle() overloads can be instantiated (if Proc is a template class). It is possible that instantiation will fail (due to static_assert failures or other issues) even if the result of this trait is true.