CommRaT 2.0.0
C++20 Real-Time Messaging Framework
Loading...
Searching...
No Matches
commrat::PrimaryInputIndex< PrimaryT, InputsTuple > Struct Template Reference

Extract the index of the primary input type within Inputs<Ts...> More...

Detailed Description

template<typename PrimaryT, typename InputsTuple>
struct commrat::PrimaryInputIndex< PrimaryT, InputsTuple >

Extract the index of the primary input type within Inputs<Ts...>

Used for compile-time validation and runtime lookup of the primary input mailbox in multi-input modules.

Template Parameters
PrimaryTThe payload type designated as primary (from PrimaryInput<T>)
InputsTupleThe tuple of input types (from Inputs<Ts...>::PayloadTypes)

Example:

using Primary = PrimaryInput<GPSData>;
// Find GPSData index in (IMUData, GPSData, LidarData)
constexpr size_t idx = PrimaryInputIndex<GPS Data,
typename Inputs::PayloadTypes>::value;
// idx == 1
@ Data
Data messages (sensor data, state, etc.)
Multiple continuous inputs specification.
Definition io_spec.hpp:205
std::tuple< Ts... > PayloadTypes
Definition io_spec.hpp:206
Extract the index of the primary input type within Inputs<Ts...>
Definition io_spec.hpp:530
Primary input designation for multi-input synchronization (Phase 6)
Definition io_spec.hpp:240

Definition at line 530 of file io_spec.hpp.


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