Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
absl::uniform_int_distribution< IntType > Class Template Reference

#include <uniform_helper.h>

Classes

class  param_type
 

Public Types

using result_type = IntType
 
using result_type = IntType
 

Public Member Functions

result_type a () const
 
result_type a () const
 
result_type b () const
 
result_type b () const
 
template<typename URBG >
random_internal::make_unsigned_bits< IntType >::type Generate (URBG &g, typename random_internal::make_unsigned_bits< IntType >::type R)
 
result_type() max () const
 
result_type() max () const
 
result_type() min () const
 
result_type() min () const
 
template<typename URBG >
result_type operator() (URBG &gen)
 
template<typename URBG >
result_type operator() (URBG &gen)
 
template<typename URBG >
result_type operator() (URBG &gen, const param_type &param)
 
template<typename URBG >
result_type operator() (URBG &gen, const param_type &param)
 
param_type param () const
 
param_type param () const
 
void param (const param_type &params)
 
void param (const param_type &params)
 
void reset ()
 
void reset ()
 
 uniform_int_distribution ()
 
 uniform_int_distribution ()
 
 uniform_int_distribution (const param_type &param)
 
 uniform_int_distribution (const param_type &param)
 
 uniform_int_distribution (result_type lo, result_type hi=(std::numeric_limits< result_type >::max)())
 
 uniform_int_distribution (result_type lo, result_type hi=(std::numeric_limits< result_type >::max)())
 

Private Types

using unsigned_type = typename random_internal::make_unsigned_bits< IntType >::type
 
using unsigned_type = typename random_internal::make_unsigned_bits< IntType >::type
 

Private Member Functions

template<typename URBG >
unsigned_type Generate (URBG &g, unsigned_type R)
 
template<typename URBG >
unsigned_type Generate (URBG &g, unsigned_type R)
 

Private Attributes

param_type param_
 

Friends

bool operator!= (const uniform_int_distribution &a, const uniform_int_distribution &b)
 
bool operator!= (const uniform_int_distribution &a, const uniform_int_distribution &b)
 
bool operator== (const uniform_int_distribution &a, const uniform_int_distribution &b)
 
bool operator== (const uniform_int_distribution &a, const uniform_int_distribution &b)
 

Detailed Description

template<typename IntType = int>
class absl::uniform_int_distribution< IntType >

Definition at line 30 of file abseil-cpp/absl/random/internal/uniform_helper.h.

Member Typedef Documentation

◆ result_type [1/2]

template<typename IntType = int>
using absl::uniform_int_distribution< IntType >::result_type = IntType

◆ result_type [2/2]

template<typename IntType = int>
using absl::uniform_int_distribution< IntType >::result_type = IntType

◆ unsigned_type [1/2]

template<typename IntType = int>
using absl::uniform_int_distribution< IntType >::unsigned_type = typename random_internal::make_unsigned_bits<IntType>::type
private

◆ unsigned_type [2/2]

template<typename IntType = int>
using absl::uniform_int_distribution< IntType >::unsigned_type = typename random_internal::make_unsigned_bits<IntType>::type
private

Constructor & Destructor Documentation

◆ uniform_int_distribution() [1/6]

template<typename IntType = int>
absl::uniform_int_distribution< IntType >::uniform_int_distribution ( )
inline

◆ uniform_int_distribution() [2/6]

template<typename IntType = int>
absl::uniform_int_distribution< IntType >::uniform_int_distribution ( result_type  lo,
result_type  hi = (std::numeric_limits<result_type>::max)() 
)
inlineexplicit

◆ uniform_int_distribution() [3/6]

template<typename IntType = int>
absl::uniform_int_distribution< IntType >::uniform_int_distribution ( const param_type param)
inlineexplicit

◆ uniform_int_distribution() [4/6]

template<typename IntType = int>
absl::uniform_int_distribution< IntType >::uniform_int_distribution ( )
inline

◆ uniform_int_distribution() [5/6]

template<typename IntType = int>
absl::uniform_int_distribution< IntType >::uniform_int_distribution ( result_type  lo,
result_type  hi = (std::numeric_limits<result_type>::max)() 
)
inlineexplicit

◆ uniform_int_distribution() [6/6]

template<typename IntType = int>
absl::uniform_int_distribution< IntType >::uniform_int_distribution ( const param_type param)
inlineexplicit

Member Function Documentation

◆ a() [1/2]

template<typename IntType = int>
result_type absl::uniform_int_distribution< IntType >::a ( ) const
inline

◆ a() [2/2]

template<typename IntType = int>
result_type absl::uniform_int_distribution< IntType >::a ( ) const
inline

◆ b() [1/2]

template<typename IntType = int>
result_type absl::uniform_int_distribution< IntType >::b ( ) const
inline

◆ b() [2/2]

template<typename IntType = int>
result_type absl::uniform_int_distribution< IntType >::b ( ) const
inline

◆ Generate() [1/3]

template<typename IntType >
template<typename URBG >
random_internal::make_unsigned_bits< IntType >::type absl::uniform_int_distribution< IntType >::Generate ( URBG &  g,
typename random_internal::make_unsigned_bits< IntType >::type  R 
)

◆ Generate() [2/3]

template<typename IntType = int>
template<typename URBG >
unsigned_type absl::uniform_int_distribution< IntType >::Generate ( URBG &  g,
unsigned_type  R 
)
private

◆ Generate() [3/3]

template<typename IntType = int>
template<typename URBG >
unsigned_type absl::uniform_int_distribution< IntType >::Generate ( URBG &  g,
unsigned_type  R 
)
private

◆ max() [1/2]

template<typename IntType = int>
result_type() absl::uniform_int_distribution< IntType >::max ( ) const
inline

◆ max() [2/2]

template<typename IntType = int>
result_type() absl::uniform_int_distribution< IntType >::max ( ) const
inline

◆ min() [1/2]

template<typename IntType = int>
result_type() absl::uniform_int_distribution< IntType >::min ( ) const
inline

◆ min() [2/2]

template<typename IntType = int>
result_type() absl::uniform_int_distribution< IntType >::min ( ) const
inline

◆ operator()() [1/4]

template<typename IntType = int>
template<typename URBG >
result_type absl::uniform_int_distribution< IntType >::operator() ( URBG &  gen)
inline

◆ operator()() [2/4]

template<typename IntType = int>
template<typename URBG >
result_type absl::uniform_int_distribution< IntType >::operator() ( URBG &  gen)
inline

◆ operator()() [3/4]

template<typename IntType = int>
template<typename URBG >
result_type absl::uniform_int_distribution< IntType >::operator() ( URBG &  gen,
const param_type param 
)
inline

◆ operator()() [4/4]

template<typename IntType = int>
template<typename URBG >
result_type absl::uniform_int_distribution< IntType >::operator() ( URBG &  gen,
const param_type param 
)
inline

◆ param() [1/4]

template<typename IntType = int>
param_type absl::uniform_int_distribution< IntType >::param ( ) const
inline

◆ param() [2/4]

template<typename IntType = int>
param_type absl::uniform_int_distribution< IntType >::param ( ) const
inline

◆ param() [3/4]

template<typename IntType = int>
void absl::uniform_int_distribution< IntType >::param ( const param_type params)
inline

◆ param() [4/4]

template<typename IntType = int>
void absl::uniform_int_distribution< IntType >::param ( const param_type params)
inline

◆ reset() [1/2]

template<typename IntType = int>
void absl::uniform_int_distribution< IntType >::reset ( )
inline

◆ reset() [2/2]

template<typename IntType = int>
void absl::uniform_int_distribution< IntType >::reset ( )
inline

Friends And Related Function Documentation

◆ operator!= [1/2]

template<typename IntType = int>
bool operator!= ( const uniform_int_distribution< IntType > &  a,
const uniform_int_distribution< IntType > &  b 
)
friend

◆ operator!= [2/2]

template<typename IntType = int>
bool operator!= ( const uniform_int_distribution< IntType > &  a,
const uniform_int_distribution< IntType > &  b 
)
friend

◆ operator== [1/2]

template<typename IntType = int>
bool operator== ( const uniform_int_distribution< IntType > &  a,
const uniform_int_distribution< IntType > &  b 
)
friend

◆ operator== [2/2]

template<typename IntType = int>
bool operator== ( const uniform_int_distribution< IntType > &  a,
const uniform_int_distribution< IntType > &  b 
)
friend

Member Data Documentation

◆ param_

template<typename IntType = int>
param_type absl::uniform_int_distribution< IntType >::param_
private

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:26