Faker C++
Loading...
Searching...
No Matches
faker::RandomGenerator< T > Class Template Reference

#include <random_generator.h>

Public Member Functions

 RandomGenerator ()
 
 ~RandomGenerator ()=default
 
 RandomGenerator (const RandomGenerator &)=default
 
 RandomGenerator (RandomGenerator &&)=default
 
RandomGeneratoroperator= (const RandomGenerator &)=default
 
RandomGeneratoroperator= (RandomGenerator &&)=default
 
template<typename Dist >
requires std::is_invocable_r_v<int, Dist&, T&>
int operator() (Dist &&dist)
 

Private Attributes

generator_
 

Constructor & Destructor Documentation

◆ RandomGenerator() [1/3]

template<typename T >
faker::RandomGenerator< T >::RandomGenerator ( )
inline

◆ ~RandomGenerator()

template<typename T >
faker::RandomGenerator< T >::~RandomGenerator ( )
default

◆ RandomGenerator() [2/3]

template<typename T >
faker::RandomGenerator< T >::RandomGenerator ( const RandomGenerator< T > & )
default

◆ RandomGenerator() [3/3]

template<typename T >
faker::RandomGenerator< T >::RandomGenerator ( RandomGenerator< T > && )
default

Member Function Documentation

◆ operator()()

template<typename T >
template<typename Dist >
requires std::is_invocable_r_v<int, Dist&, T&>
int faker::RandomGenerator< T >::operator() ( Dist && dist)
inline

◆ operator=() [1/2]

template<typename T >
RandomGenerator & faker::RandomGenerator< T >::operator= ( const RandomGenerator< T > & )
default

◆ operator=() [2/2]

template<typename T >
RandomGenerator & faker::RandomGenerator< T >::operator= ( RandomGenerator< T > && )
default

Member Data Documentation

◆ generator_

template<typename T >
T faker::RandomGenerator< T >::generator_
private

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