C++ Library Extensions 2022.12.09
To help learn modern C++ programming
tpf::chrono_random::fair_dice< Type, typename > Class Template Reference

#include <tpf_chrono_random.hpp>

Public Member Functions

 fair_dice (Type start, Type end, Type instance=1)
 
std::vector< Type >::iterator begin ()
 
std::vector< Type >::iterator end ()
 
std::vector< Type >::iterator next ()
 
size_t size ()
 
void shuffle ()
 
Type operator() ()
 
const std::vector< Type > & array ()
 

Detailed Description

template<typename Type, typename = std::enable_if_t<tpf::types::is_integral_v<Type>>>
class tpf::chrono_random::fair_dice< Type, typename >

Definition at line 171 of file tpf_chrono_random.hpp.

Constructor & Destructor Documentation

◆ fair_dice()

template<typename Type , typename = std::enable_if_t<tpf::types::is_integral_v<Type>>>
tpf::chrono_random::fair_dice< Type, typename >::fair_dice ( Type  start,
Type  end,
Type  instance = 1 
)
inline

Definition at line 182 of file tpf_chrono_random.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ array()

template<typename Type , typename = std::enable_if_t<tpf::types::is_integral_v<Type>>>
const std::vector< Type > & tpf::chrono_random::fair_dice< Type, typename >::array ( )
inline

Definition at line 215 of file tpf_chrono_random.hpp.

◆ begin()

template<typename Type , typename = std::enable_if_t<tpf::types::is_integral_v<Type>>>
std::vector< Type >::iterator tpf::chrono_random::fair_dice< Type, typename >::begin ( )
inline

Definition at line 193 of file tpf_chrono_random.hpp.

◆ end()

template<typename Type , typename = std::enable_if_t<tpf::types::is_integral_v<Type>>>
std::vector< Type >::iterator tpf::chrono_random::fair_dice< Type, typename >::end ( )
inline

Definition at line 194 of file tpf_chrono_random.hpp.

Here is the caller graph for this function:

◆ next()

template<typename Type , typename = std::enable_if_t<tpf::types::is_integral_v<Type>>>
std::vector< Type >::iterator tpf::chrono_random::fair_dice< Type, typename >::next ( )
inline

Definition at line 195 of file tpf_chrono_random.hpp.

◆ operator()()

template<typename Type , typename = std::enable_if_t<tpf::types::is_integral_v<Type>>>
Type tpf::chrono_random::fair_dice< Type, typename >::operator() ( )
inline

Definition at line 205 of file tpf_chrono_random.hpp.

Here is the call graph for this function:

◆ shuffle()

template<typename Type , typename = std::enable_if_t<tpf::types::is_integral_v<Type>>>
void tpf::chrono_random::fair_dice< Type, typename >::shuffle ( )
inline

Definition at line 199 of file tpf_chrono_random.hpp.

Here is the caller graph for this function:

◆ size()

template<typename Type , typename = std::enable_if_t<tpf::types::is_integral_v<Type>>>
size_t tpf::chrono_random::fair_dice< Type, typename >::size ( )
inline

Definition at line 197 of file tpf_chrono_random.hpp.


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