13#ifndef RTCTK_COMPONENTFRAMEWORK_PATTERNVALIDATION_HPP
14#define RTCTK_COMPONENTFRAMEWORK_PATTERNVALIDATION_HPP
36template <
typename InputIter,
typename T,
typename U>
38 typename std::iterator_traits<InputIter>::value_type
counter = offset;
39 typename std::iterator_traits<InputIter>::value_type
delta =
slope;
40 for (
auto value = begin; value != end; ++value) {
63template <
typename InputIter,
typename T>
66 using C =
typename std::iterator_traits<InputIter>::value_type;
69 if (sample_id % 2 == 0) {
74 }
else if constexpr (std::is_signed_v<C>) {
76 if (sample_id % 2 == 0) {
83 if (sample_id % 2 == 0) {
Definition commandReplier.cpp:22
constexpr bool ValidRamp(InputIter begin, InputIter end, T offset, U slope)
Checks to see if the buffer contains a ramp of values.
Definition patternValidation.hpp:37
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23
constexpr bool ValidAlternatingRamp(InputIter begin, InputIter end, std::uint32_t sample_id, T offset)
Checks to see if the buffer contains an alternating ramp of values.
Definition patternValidation.hpp:65
Provides useful mechanisms to test various type traits.