MCPcopy Create free account
hub / github.com/apache/thrift / ValuesGenerator

Class ValuesGenerator

compiler/cpp/tests/catch/catch.hpp:2500–2518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2498
2499template<typename T>
2500class ValuesGenerator : public IGenerator<T> {
2501public:
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
2516private:
2517 std::vector<T> m_values;
2518};
2519
2520template<typename T>
2521class CompositeGenerator {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected