spdlog
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
Catch::Generators::RandomFloatingGenerator< Float > Class Template Referencefinal

Detailed Description

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

Definition at line 4268 of file catch.hpp.

#include <catch.hpp>

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

Public Types

using type = Float
 

Public Member Functions

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

Private Attributes

std::minstd_rand m_rand
 
std::uniform_real_distribution< Float > m_dist
 
Float m_current_number
 

Member Typedef Documentation

◆ type

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

Definition at line 3747 of file catch.hpp.

Constructor & Destructor Documentation

◆ RandomFloatingGenerator()

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

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

◆ next()

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

Implements Catch::Generators::GeneratorUntypedBase.

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

◆ m_dist

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

Definition at line 4271 of file catch.hpp.

◆ m_rand

template<typename Float >
std::minstd_rand Catch::Generators::RandomFloatingGenerator< Float >::m_rand
private

Definition at line 4270 of file catch.hpp.


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