| 2345 | |
| 2346 | template<typename T> |
| 2347 | class BetweenGenerator : public IGenerator<T> { |
| 2348 | public: |
| 2349 | BetweenGenerator( T from, T to ) : m_from( from ), m_to( to ){} |
| 2350 | |
| 2351 | virtual T getValue( std::size_t index ) const { |
| 2352 | return m_from+static_cast<int>( index ); |
| 2353 | } |
| 2354 | |
| 2355 | virtual std::size_t size() const { |
| 2356 | return static_cast<std::size_t>( 1+m_to-m_from ); |
| 2357 | } |
| 2358 | |
| 2359 | private: |
| 2360 | |
| 2361 | T m_from; |
| 2362 | T m_to; |
| 2363 | }; |
| 2364 | |
| 2365 | template<typename T> |
| 2366 | class ValuesGenerator : public IGenerator<T> { |
nothing calls this directly
no outgoing calls
no test coverage detected