MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / fillRange

Method fillRange

app/src/DSP.h:239–245  ·  view source on GitHub ↗

* @brief Fills the queue with increasing values starting from a given base. */

Source from the content-addressed store, hash-verified

237 * @brief Fills the queue with increasing values starting from a given base.
238 */
239 void fillRange(const T& start, const T& step = 1)
240 requires Concepts::Numeric<T>
241 {
242 clear();
243 for (std::size_t i = 0; i < m_capacity; ++i)
244 push(start + static_cast<T>(i) * step);
245 }
246
247 /**
248 * @brief Inserts an element by copy. Overwrites oldest element if full.

Callers 2

configureLineSeriesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected