API
Catch::Generators::RandomFloatingGenerator< Float > Class Template Referencefinal

#include <catch.hpp>

Inheritance diagram for Catch::Generators::RandomFloatingGenerator< Float >:
Inheritance graph
Collaboration diagram for Catch::Generators::RandomFloatingGenerator< Float >:
Collaboration graph

Public Types

using type = Float
 

Public Member Functions

 RandomFloatingGenerator (Float a, Float b)
 
Float const & get () const override
 
bool next () override
 

Private Attributes

Catch::SimplePcg32m_rng
 
std::uniform_real_distribution< Float > m_dist
 
Float m_current_number
 

Detailed Description

template<typename Float>
class Catch::Generators::RandomFloatingGenerator< Float >

Definition at line 4603 of file catch.hpp.

Member Typedef Documentation

◆ type

using Catch::Generators::IGenerator< Float >::type = Float
inherited

Definition at line 3949 of file catch.hpp.

Constructor & Destructor Documentation

◆ RandomFloatingGenerator()

template<typename Float >
Catch::Generators::RandomFloatingGenerator< Float >::RandomFloatingGenerator ( Float  a,
Float  b 
)
inline

Definition at line 4609 of file catch.hpp.

Member Function Documentation

◆ get()

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

Implements Catch::Generators::IGenerator< Float >.

Definition at line 4615 of file catch.hpp.

◆ next()

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

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 4618 of file catch.hpp.

Member Data Documentation

◆ m_current_number

template<typename Float >
Float Catch::Generators::RandomFloatingGenerator< Float >::m_current_number
private

Definition at line 4606 of file catch.hpp.

◆ m_dist

template<typename Float >
std::uniform_real_distribution<Float> Catch::Generators::RandomFloatingGenerator< Float >::m_dist
private

Definition at line 4605 of file catch.hpp.

◆ m_rng

template<typename Float >
Catch::SimplePcg32& Catch::Generators::RandomFloatingGenerator< Float >::m_rng
private

Definition at line 4604 of file catch.hpp.


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