Agora  1.2.0
Agora project
Catch::Generators::RandomFloatingGenerator< Float > Class Template Referencefinal

#include <catch.hpp>

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

Public Member Functions

 RandomFloatingGenerator (Float a, Float b)
 
Float const & get () const override
 
bool next () override
 
- Public Member Functions inherited from Catch::Generators::IGenerator< Float >
virtual ~IGenerator ()=default
 
virtual Float const & get () const=0
 
- Public Member Functions inherited from Catch::Generators::GeneratorUntypedBase
 GeneratorUntypedBase ()=default
 
virtual ~GeneratorUntypedBase ()
 

Private Attributes

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

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ RandomFloatingGenerator()

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

Member Function Documentation

◆ get()

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

◆ next()

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

Member Data Documentation

◆ m_current_number

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

◆ m_dist

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

◆ m_rng

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

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