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

#include <cpg_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<std::integral Type>
class cpg::chrono_random::fair_dice< Type >

Definition at line 170 of file cpg_chrono_random.hpp.

Constructor & Destructor Documentation

◆ fair_dice()

template<std::integral Type>
cpg::chrono_random::fair_dice< Type >::fair_dice ( Type  start,
Type  end,
Type  instance = 1 
)
inline

Definition at line 181 of file cpg_chrono_random.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ array()

template<std::integral Type>
const std::vector< Type > & cpg::chrono_random::fair_dice< Type >::array ( )
inline

Definition at line 214 of file cpg_chrono_random.hpp.

◆ begin()

template<std::integral Type>
std::vector< Type >::iterator cpg::chrono_random::fair_dice< Type >::begin ( )
inline

Definition at line 192 of file cpg_chrono_random.hpp.

◆ end()

template<std::integral Type>
std::vector< Type >::iterator cpg::chrono_random::fair_dice< Type >::end ( )
inline

Definition at line 193 of file cpg_chrono_random.hpp.

Here is the caller graph for this function:

◆ next()

template<std::integral Type>
std::vector< Type >::iterator cpg::chrono_random::fair_dice< Type >::next ( )
inline

Definition at line 194 of file cpg_chrono_random.hpp.

◆ operator()()

template<std::integral Type>
Type cpg::chrono_random::fair_dice< Type >::operator() ( )
inline

Definition at line 204 of file cpg_chrono_random.hpp.

Here is the call graph for this function:

◆ shuffle()

template<std::integral Type>
void cpg::chrono_random::fair_dice< Type >::shuffle ( )
inline

Definition at line 198 of file cpg_chrono_random.hpp.

Here is the caller graph for this function:

◆ size()

template<std::integral Type>
size_t cpg::chrono_random::fair_dice< Type >::size ( )
inline

Definition at line 196 of file cpg_chrono_random.hpp.


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