13#ifndef RTCTK_COMPONENTFRAMEWORK_PATTERNGENERATION_HPP
14#define RTCTK_COMPONENTFRAMEWORK_PATTERNGENERATION_HPP
39template <
typename InputIter,
typename T,
typename U>
41 typename std::iterator_traits<InputIter>::value_type
counter = offset;
42 typename std::iterator_traits<InputIter>::value_type
delta =
slope;
86template <
typename InputIter,
typename T>
89 using C =
typename std::iterator_traits<InputIter>::value_type;
92 if (sample_id % 2 == 0) {
97 }
else if constexpr (std::is_signed_v<C>) {
99 if (sample_id % 2 == 0) {
106 if (sample_id % 2 == 0) {
Definition commandReplier.cpp:22
constexpr void GenerateRamp(InputIter begin, InputIter end, T offset, U slope)
Generates a ramp of values.
Definition patternGeneration.hpp:40
constexpr void GenerateAlternatingRamp(InputIter begin, InputIter end, std::uint32_t sample_id, T offset)
Generates a ramp of values alternating on the sample ID.
Definition patternGeneration.hpp:88
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23
Provides useful mechanisms to test various type traits.