Agora  1.2.0
Agora project
Catch::Generators::RandomIntegerGenerator< Integer > Class Template Referencefinal

#include <catch.hpp>

Inheritance diagram for Catch::Generators::RandomIntegerGenerator< Integer >:
Collaboration diagram for Catch::Generators::RandomIntegerGenerator< Integer >:

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
 
virtual Integer const & get () const=0
 
- Public Member Functions inherited from Catch::Generators::GeneratorUntypedBase
 GeneratorUntypedBase ()=default
 
virtual ~GeneratorUntypedBase ()
 

Private Attributes

Catch::SimplePcg32m_rng
 
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

◆ RandomIntegerGenerator()

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

Member Function Documentation

◆ get()

template<typename Integer >
Integer const& Catch::Generators::RandomIntegerGenerator< Integer >::get ( ) const
inlineoverride

◆ next()

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

Member Data Documentation

◆ m_current_number

template<typename Integer >
Integer Catch::Generators::RandomIntegerGenerator< Integer >::m_current_number
private

◆ m_dist

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

◆ m_rng

template<typename Integer >
Catch::SimplePcg32& Catch::Generators::RandomIntegerGenerator< Integer >::m_rng
private

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