| 2479 | |
| 2480 | template<typename T> |
| 2481 | class BetweenGenerator : public IGenerator<T> { |
| 2482 | public: |
| 2483 | BetweenGenerator( T from, T to ) : m_from( from ), m_to( to ){} |
| 2484 | |
| 2485 | virtual T getValue( std::size_t index ) const { |
| 2486 | return m_from+static_cast<int>( index ); |
| 2487 | } |
| 2488 | |
| 2489 | virtual std::size_t size() const { |
| 2490 | return static_cast<std::size_t>( 1+m_to-m_from ); |
| 2491 | } |
| 2492 | |
| 2493 | private: |
| 2494 | |
| 2495 | T m_from; |
| 2496 | T m_to; |
| 2497 | }; |
| 2498 | |
| 2499 | template<typename T> |
| 2500 | class ValuesGenerator : public IGenerator<T> { |
nothing calls this directly
no outgoing calls
no test coverage detected