libtcspc C++ API
Streaming TCSPC and time tag data processing
Loading...
Searching...
No Matches
tcspc::channel_router< N, DataTypes > Class Template Reference

Description

template<std::size_t N, typename DataTypes = default_data_types>
class tcspc::channel_router< N, DataTypes >

Router that routes by channel number.

Template Parameters
Nthe number of channels to route
DataTypesdata type set specifying channel_type

Public Member Functions

template<typename ChannelIndexPair>
 channel_router (std::array< ChannelIndexPair, N > const &channel_indices)
 Construct with channels and corresponding downstream indices.
template<typename Event>
auto operator() (Event const &event) const -> std::size_t
 Implements router requirement.

Constructor & Destructor Documentation

◆ channel_router()

template<std::size_t N, typename DataTypes = default_data_types>
template<typename ChannelIndexPair>
tcspc::channel_router< N, DataTypes >::channel_router ( std::array< ChannelIndexPair, N > const & channel_indices)
inlineexplicit

Construct with channels and corresponding downstream indices.

Template Parameters
ChannelIndexPairtuple-like type (DataTypes::channel_type, std::size_t) of channel_indices (usually deduced)
Parameters
channel_indicespairs of channels with downstream indices to route to

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