FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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)
 
Float const & get () const override
 
bool next () override
 
- Public Member Functions inherited from Catch::Generators::IGenerator< Float >
virtual ~IGenerator ()=default
 
- Public Member Functions inherited from Catch::Generators::GeneratorUntypedBase
 GeneratorUntypedBase ()=default
 
virtual ~GeneratorUntypedBase ()
 

Private Attributes

std::minstd_rand m_rand
 
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

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

Member Function Documentation

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

Field Documentation

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