FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Catch::Generators::RandomIntegerGenerator< Integer > Class Template Referencefinal
Inheritance diagram for Catch::Generators::RandomIntegerGenerator< Integer >:
Catch::Generators::IGenerator< Integer > Catch::Generators::GeneratorUntypedBase

Public Member Functions

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

Private Attributes

std::minstd_rand m_rand
 
std::uniform_int_distribution
< Integer > 
m_dist
 
Integer m_current_number
 

Additional Inherited Members

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

Constructor & Destructor Documentation

template<typename Integer >
Catch::Generators::RandomIntegerGenerator< Integer >::RandomIntegerGenerator ( Integer  a,
Integer  b 
)
inline

Member Function Documentation

template<typename Integer >
Integer const& Catch::Generators::RandomIntegerGenerator< Integer >::get ( ) const
inlineoverridevirtual
template<typename Integer >
bool Catch::Generators::RandomIntegerGenerator< Integer >::next ( )
inlineoverridevirtual

Field Documentation

template<typename Integer >
Integer Catch::Generators::RandomIntegerGenerator< Integer >::m_current_number
private
template<typename Integer >
std::uniform_int_distribution<Integer> Catch::Generators::RandomIntegerGenerator< Integer >::m_dist
private
template<typename Integer >
std::minstd_rand Catch::Generators::RandomIntegerGenerator< Integer >::m_rand
private