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

Detailed Description

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

Definition at line 4291 of file catch.hpp.

#include <catch.hpp>

Inheritance diagram for Catch::Generators::RandomIntegerGenerator< Integer >:
[legend]

Public Types

using type = Integer
 

Public Member Functions

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

Private Attributes

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

Member Typedef Documentation

◆ type

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

Definition at line 3747 of file catch.hpp.

Constructor & Destructor Documentation

◆ RandomIntegerGenerator()

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

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

◆ next()

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

Implements Catch::Generators::GeneratorUntypedBase.

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

◆ m_dist

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

Definition at line 4293 of file catch.hpp.

◆ m_rand

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

Definition at line 4292 of file catch.hpp.


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