API
Catch::Generators::RandomIntegerGenerator< Integer > Class Template Referencefinal

#include <catch.hpp>

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

Public Types

using type = Integer
 

Public Member Functions

 RandomIntegerGenerator (Integer a, Integer b)
 
Integer const & get () const override
 
bool next () override
 

Private Attributes

Catch::SimplePcg32m_rng
 
std::uniform_int_distribution< Integer > m_dist
 
Integer m_current_number
 

Detailed Description

template<typename Integer>
class Catch::Generators::RandomIntegerGenerator< Integer >

Definition at line 4625 of file catch.hpp.

Member Typedef Documentation

◆ type

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

Definition at line 3949 of file catch.hpp.

Constructor & Destructor Documentation

◆ RandomIntegerGenerator()

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

Definition at line 4631 of file catch.hpp.

Member Function Documentation

◆ get()

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

Implements Catch::Generators::IGenerator< Integer >.

Definition at line 4637 of file catch.hpp.

◆ next()

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

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 4640 of file catch.hpp.

Member Data Documentation

◆ m_current_number

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

Definition at line 4628 of file catch.hpp.

◆ m_dist

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

Definition at line 4627 of file catch.hpp.

◆ m_rng

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

Definition at line 4626 of file catch.hpp.


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