Horizon
Loading...
Searching...
No Matches
Catch::Generators::RandomFloatingGenerator< Float > Class Template Referencefinal
Inheritance diagram for Catch::Generators::RandomFloatingGenerator< Float >:
Catch::Generators::IGenerator< Float > Catch::Generators::GeneratorUntypedBase

Public Member Functions

 RandomFloatingGenerator (Float a, Float b, std::uint32_t seed)
Float const & get () const override
bool next () override
 Attempts to move the generator to the next element.
Public Member Functions inherited from Catch::Generators::IGenerator< Float >
IGenerator & operator= (IGenerator const &)=default
Public Member Functions inherited from Catch::Generators::GeneratorUntypedBase
 GeneratorUntypedBase (GeneratorUntypedBase const &)=default
GeneratorUntypedBase & operator= (GeneratorUntypedBase const &)=default
bool countedNext ()
 Attempts to move the generator to the next element.
std::size_t currentElementIndex () const
StringRef currentElementAsString () const
 Returns generator's current element as user-friendly string.

Additional Inherited Members

Public Types inherited from Catch::Generators::IGenerator< Float >
using type

Member Function Documentation

◆ get()

template<typename Float>
Float const & Catch::Generators::RandomFloatingGenerator< Float >::get ( ) const
inlineoverridevirtual

◆ next()

template<typename Float>
bool Catch::Generators::RandomFloatingGenerator< Float >::next ( )
inlineoverridevirtual

Attempts to move the generator to the next element.

Returns true iff the move succeeded (and a valid element can be retrieved).

Implements Catch::Generators::GeneratorUntypedBase.


The documentation for this class was generated from the following file: