Struct IGenerator

Synopsis

#include <include/internal/catch_generators.hpp>

template<typename T>
struct IGenerator : GeneratorUntypedBase

Description

No description yet.

Mentioned in

Inheritance

Ancestors: GeneratorUntypedBase

Decsendents: TakeGenerator, Generators, SingleValueGenerator, RepeatGenerator, RangeGenerator, FilterGenerator, MapGenerator, IteratorGenerator, FixedValuesGenerator

Methods

~IGenerator
get

Source

Lines 45-55 in include/internal/catch_generators.hpp.

template<typename T>
struct IGenerator : GeneratorUntypedBase {
    virtual ~IGenerator() = default;
    // Returns the current element of the generator
    //
    // \Precondition The generator is either freshly constructed,
    // or the last call to `next()` returned true
    virtual T const& get() const = 0;
    using type = T;
};





Add Discussion as Guest

Log in