Home
last modified time | relevance | path

Searched refs:GeneratorWrapper (Results 1 – 9 of 9) sorted by relevance

/external/catch2/include/internal/
Dcatch_generators_generic.hpp17 GeneratorWrapper<T> m_generator;
21 TakeGenerator(size_t target, GeneratorWrapper<T>&& generator): in TakeGenerator()
47 GeneratorWrapper<T> take(size_t target, GeneratorWrapper<T>&& generator) { in take()
48 return GeneratorWrapper<T>(pf::make_unique<TakeGenerator<T>>(target, std::move(generator))); in take()
54 GeneratorWrapper<T> m_generator;
58 FilterGenerator(P&& pred, GeneratorWrapper<T>&& generator): in FilterGenerator()
88 GeneratorWrapper<T> filter(Predicate&& pred, GeneratorWrapper<T>&& generator) { in filter()
89 …return GeneratorWrapper<T>(std::unique_ptr<IGenerator<T>>(pf::make_unique<FilterGenerator<T, Predi… in filter()
94 GeneratorWrapper<T> m_generator;
100 RepeatGenerator(size_t repeats, GeneratorWrapper<T>&& generator): in RepeatGenerator()
[all …]
Dcatch_generators.hpp88 class GeneratorWrapper final { class
91 GeneratorWrapper(std::unique_ptr<IGenerator<T>> generator): in GeneratorWrapper() function in Catch::Generators::GeneratorWrapper
103 GeneratorWrapper<T> value(T&& value) { in value()
104 … return GeneratorWrapper<T>(pf::make_unique<SingleValueGenerator<T>>(std::forward<T>(value))); in value()
107 GeneratorWrapper<T> values(std::initializer_list<T> values) { in values()
108 return GeneratorWrapper<T>(pf::make_unique<FixedValuesGenerator<T>>(values)); in values()
113 std::vector<GeneratorWrapper<T>> m_generators;
116 void populate(GeneratorWrapper<T>&& generator) { in populate()
157GeneratorWrapper<std::tuple<Ts...>> table( std::initializer_list<std::tuple<typename std::decay<Ts… in table()
166 auto makeGenerators( GeneratorWrapper<T>&& generator, Gs... moreGenerators ) -> Generators<T> { in makeGenerators()
[all …]
Dcatch_generators_specific.hpp68 GeneratorWrapper<T>>::type
70 return GeneratorWrapper<T>( in random()
77 GeneratorWrapper<T>>::type
79 return GeneratorWrapper<T>( in random()
119 GeneratorWrapper<T> range(T const& start, T const& end, T const& step) { in range()
121 return GeneratorWrapper<T>(pf::make_unique<RangeGenerator<T>>(start, end, step)); in range()
125 GeneratorWrapper<T> range(T const& start, T const& end) { in range()
127 return GeneratorWrapper<T>(pf::make_unique<RangeGenerator<T>>(start, end)); in range()
/external/catch2/examples/
D300-Gen-OwnGenerator.cpp40 Catch::Generators::GeneratorWrapper<int> random(int low, int high) { in random()
41 …return Catch::Generators::GeneratorWrapper<int>(std::unique_ptr<Catch::Generators::IGenerator<int>… in random()
53 …auto i = GENERATE(take(100, GeneratorWrapper<int>(std::unique_ptr<IGenerator<int>>(new RandomIntGe…
D301-Gen-MapTypeConversion.cpp37 Catch::Generators::GeneratorWrapper<std::string> lines(std::string /* ignored for example */) { in lines()
38 return Catch::Generators::GeneratorWrapper<std::string>( in lines()
D310-Gen-VariablesInGenerators.cpp41 Catch::Generators::GeneratorWrapper<double> random(double low, double high) { in random()
42 …return Catch::Generators::GeneratorWrapper<double>(std::unique_ptr<Catch::Generators::IGenerator<d… in random()
/external/catch2/docs/
Dgenerators.md57 * `filter(predicate, GeneratorWrapper<T>&&)` for `FilterGenerator<T, Predicate>`
58 * `take(count, GeneratorWrapper<T>&&)` for `TakeGenerator<T>`
59 * `repeat(repeats, GeneratorWrapper<T>&&)` for `RepeatGenerator<T>`
60 * `map(func, GeneratorWrapper<T>&&)` for `MapGenerator<T, T, Func>` (map `T` to `T`)
61 * `map<T>(func, GeneratorWrapper<U>&&)` for `MapGenerator<T, U, Func>` (map `U` to `T`)
62 * `chunk(chunk-size, GeneratorWrapper<T>&&)` for `ChunkGenerator<T>`
126 will need to be wrapped inside a `GeneratorWrapper<T>`.
127 `GeneratorWrapper<T>` is a value wrapper around a
/external/catch2/single_include/catch2/
Dcatch.hpp3574 class GeneratorWrapper final { class
3577 GeneratorWrapper(std::unique_ptr<IGenerator<T>> generator): in GeneratorWrapper() function in Catch::Generators::GeneratorWrapper
3589 GeneratorWrapper<T> value(T&& value) { in value()
3590 … return GeneratorWrapper<T>(pf::make_unique<SingleValueGenerator<T>>(std::forward<T>(value))); in value()
3593 GeneratorWrapper<T> values(std::initializer_list<T> values) { in values()
3594 return GeneratorWrapper<T>(pf::make_unique<FixedValuesGenerator<T>>(values)); in values()
3599 std::vector<GeneratorWrapper<T>> m_generators;
3602 void populate(GeneratorWrapper<T>&& generator) { in populate()
3642GeneratorWrapper<std::tuple<Ts...>> table( std::initializer_list<std::tuple<typename std::decay<Ts… in table()
3651 auto makeGenerators( GeneratorWrapper<T>&& generator, Gs... moreGenerators ) -> Generators<T> { in makeGenerators()
[all …]
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dfrom_generator_test.py290 class GeneratorWrapper(object): class
305 GeneratorWrapper, output_types=dtypes.int64).take(2)