libtcspc C++ API
Streaming TCSPC and time tag data processing
Loading...
Searching...
No Matches
tcspc::type_erased_processor< EventList > Class Template Reference

Description

template<typename EventList>
class tcspc::type_erased_processor< EventList >

Processor that type-erases the downstream processor.

Template Parameters
EventListthe event set handled by the processor
Events handled
  • Events in EventList: pass through with no action
  • Flush: pass through with no action

Public Member Functions

 type_erased_processor ()
 Construct with a stub downstream processor.
template<typename Downstream>
 type_erased_processor (Downstream downstream)
 Construct with the given downstream processor.
void flush ()
 Implements processor requirement.
template<typename Event>
void handle (Event &&event)
 Implements processor requirement.
auto introspect_graph () const -> processor_graph
 Implements processor requirement.
auto introspect_node () const -> processor_info
 Implements processor requirement.

Constructor & Destructor Documentation

◆ type_erased_processor() [1/2]

template<typename EventList>
tcspc::type_erased_processor< EventList >::type_erased_processor ( )
inline

Construct with a stub downstream processor.

The stub processor discards all events.

◆ type_erased_processor() [2/2]

template<typename EventList>
template<typename Downstream>
tcspc::type_erased_processor< EventList >::type_erased_processor ( Downstream downstream)
inlineexplicit

Construct with the given downstream processor.

The downstream processor must handle all of the events in EventList.

Parameters
downstreamdownstream processor

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