neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::random_traits< T, Gen > Class Template Reference

#include <random.hpp>

Public Types

typedef T value_type
 
typedef Gen generator_type
 
typedef generator_type::result_type generator_result_type
 
typedef distribution_selector_type::distribution_type distribution_type
 
typedef distribution_selector_type::interval_value_type interval_value_type
 

Static Public Member Functions

static std::pair< interval_value_type, interval_value_typeinterval (value_type aLower, value_type aUpper)
 

Static Public Attributes

static const std::size_t state_size = generator_type::state_size
 

Detailed Description

template<typename T = uint32_t, typename Gen = std::mt19937>
class neolib::random_traits< T, Gen >

Definition at line 45 of file random.hpp.

Member Typedef Documentation

◆ distribution_type

template<typename T = uint32_t, typename Gen = std::mt19937>
typedef distribution_selector_type::distribution_type neolib::random_traits< T, Gen >::distribution_type

Definition at line 77 of file random.hpp.

◆ generator_result_type

template<typename T = uint32_t, typename Gen = std::mt19937>
typedef generator_type::result_type neolib::random_traits< T, Gen >::generator_result_type

Definition at line 50 of file random.hpp.

◆ generator_type

template<typename T = uint32_t, typename Gen = std::mt19937>
typedef Gen neolib::random_traits< T, Gen >::generator_type

Definition at line 49 of file random.hpp.

◆ interval_value_type

template<typename T = uint32_t, typename Gen = std::mt19937>
typedef distribution_selector_type::interval_value_type neolib::random_traits< T, Gen >::interval_value_type

Definition at line 78 of file random.hpp.

◆ value_type

template<typename T = uint32_t, typename Gen = std::mt19937>
typedef T neolib::random_traits< T, Gen >::value_type

Definition at line 48 of file random.hpp.

Member Function Documentation

◆ interval()

template<typename T = uint32_t, typename Gen = std::mt19937>
static std::pair< interval_value_type, interval_value_type > neolib::random_traits< T, Gen >::interval ( value_type  aLower,
value_type  aUpper 
)
inlinestatic

Definition at line 80 of file random.hpp.

Member Data Documentation

◆ state_size

template<typename T = uint32_t, typename Gen = std::mt19937>
const std::size_t neolib::random_traits< T, Gen >::state_size = generator_type::state_size
static

Definition at line 51 of file random.hpp.


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