Public Member Functions | Private Attributes | List of all members
Catch::Generators::RandomFloatingGenerator< Float > Class Template Referencefinal

#include <catch.hpp>

Inheritance diagram for Catch::Generators::RandomFloatingGenerator< Float >:
Inheritance graph
[legend]

Public Member Functions

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

Private Attributes

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

Additional Inherited Members

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

Detailed Description

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

Definition at line 4596 of file catch.hpp.

Constructor & Destructor Documentation

◆ RandomFloatingGenerator()

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

Definition at line 4602 of file catch.hpp.

Member Function Documentation

◆ get()

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

Definition at line 4608 of file catch.hpp.

◆ next()

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

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 4611 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 4599 of file catch.hpp.

◆ m_dist

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

Definition at line 4598 of file catch.hpp.

◆ m_rng

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

Definition at line 4597 of file catch.hpp.


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


magic_enum
Author(s):
autogenerated on Fri Feb 21 2025 03:20:19