C++ Library Extensions 2022.12.09
To help learn modern C++ programming
cpg::chrono_random::random_t< Type, DistributionType, EngineType > Class Template Reference

#include <cpg_chrono_random.hpp>

Public Types

using engine_type = EngineType
 
using distribution_type = DistributionType
 

Public Member Functions

 random_t (Type range_start=Type{}, Type range_end=Type{100}, unsigned int seed=0)
 
 random_t (const random_t &)=default
 
random_toperator= (const random_t &)=default
 
Type operator() () const
 
template<typename SizeType >
auto clone (SizeType size) const
 
template<typename SizeType >
auto clone_pair (SizeType size) const
 

Detailed Description

template<typename Type, typename DistributionType, typename EngineType>
class cpg::chrono_random::random_t< Type, DistributionType, EngineType >

Definition at line 222 of file cpg_chrono_random.hpp.

Member Typedef Documentation

◆ distribution_type

template<typename Type , typename DistributionType , typename EngineType >
using cpg::chrono_random::random_t< Type, DistributionType, EngineType >::distribution_type = DistributionType

Definition at line 226 of file cpg_chrono_random.hpp.

◆ engine_type

template<typename Type , typename DistributionType , typename EngineType >
using cpg::chrono_random::random_t< Type, DistributionType, EngineType >::engine_type = EngineType

Definition at line 225 of file cpg_chrono_random.hpp.

Constructor & Destructor Documentation

◆ random_t() [1/2]

template<typename Type , typename DistributionType , typename EngineType >
cpg::chrono_random::random_t< Type, DistributionType, EngineType >::random_t ( Type  range_start = Type{},
Type  range_end = Type{100},
unsigned int  seed = 0 
)
inline

Definition at line 234 of file cpg_chrono_random.hpp.

◆ random_t() [2/2]

template<typename Type , typename DistributionType , typename EngineType >
cpg::chrono_random::random_t< Type, DistributionType, EngineType >::random_t ( const random_t< Type, DistributionType, EngineType > &  )
default

Member Function Documentation

◆ clone()

template<typename Type , typename DistributionType , typename EngineType >
template<typename SizeType >
auto cpg::chrono_random::random_t< Type, DistributionType, EngineType >::clone ( SizeType  size) const

Definition at line 287 of file cpg_chrono_random.hpp.

Here is the call graph for this function:

◆ clone_pair()

template<typename Type , typename DistributionType , typename EngineType >
template<typename SizeType >
auto cpg::chrono_random::random_t< Type, DistributionType, EngineType >::clone_pair ( SizeType  size) const

Definition at line 315 of file cpg_chrono_random.hpp.

Here is the call graph for this function:

◆ operator()()

template<typename Type , typename DistributionType , typename EngineType >
Type cpg::chrono_random::random_t< Type, DistributionType, EngineType >::operator() ( ) const
inline

Definition at line 245 of file cpg_chrono_random.hpp.

◆ operator=()

template<typename Type , typename DistributionType , typename EngineType >
random_t & cpg::chrono_random::random_t< Type, DistributionType, EngineType >::operator= ( const random_t< Type, DistributionType, EngineType > &  )
default

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