| 2498 | |
| 2499 | template<typename T> |
| 2500 | class ValuesGenerator : public IGenerator<T> { |
| 2501 | public: |
| 2502 | ValuesGenerator(){} |
| 2503 | |
| 2504 | void add( T value ) { |
| 2505 | m_values.push_back( value ); |
| 2506 | } |
| 2507 | |
| 2508 | virtual T getValue( std::size_t index ) const { |
| 2509 | return m_values[index]; |
| 2510 | } |
| 2511 | |
| 2512 | virtual std::size_t size() const { |
| 2513 | return m_values.size(); |
| 2514 | } |
| 2515 | |
| 2516 | private: |
| 2517 | std::vector<T> m_values; |
| 2518 | }; |
| 2519 | |
| 2520 | template<typename T> |
| 2521 | class CompositeGenerator { |
nothing calls this directly
no outgoing calls
no test coverage detected