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

#include <discrete_distribution.h>

Classes

class  param_type
 

Public Types

using result_type = IntType
 
using result_type = IntType
 

Public Member Functions

 discrete_distribution ()
 
 discrete_distribution ()
 
 discrete_distribution (const param_type &p)
 
 discrete_distribution (const param_type &p)
 
template<typename InputIterator >
 discrete_distribution (InputIterator begin, InputIterator end)
 
template<typename InputIterator >
 discrete_distribution (InputIterator begin, InputIterator end)
 
template<class UnaryOperation >
 discrete_distribution (size_t nw, double xmin, double xmax, UnaryOperation fw)
 
template<class UnaryOperation >
 discrete_distribution (size_t nw, double xmin, double xmax, UnaryOperation fw)
 
 discrete_distribution (std::initializer_list< double > weights)
 
 discrete_distribution (std::initializer_list< double > weights)
 
result_type() max () const
 
result_type() max () const
 
result_type() min () const
 
result_type() min () const
 
template<typename URBG >
result_type operator() (URBG &g)
 
template<typename URBG >
result_type operator() (URBG &g)
 
template<typename URBG >
result_type operator() (URBG &g, const param_type &p)
 
template<typename URBG >
result_type operator() (URBG &g, const param_type &p)
 
const param_typeparam () const
 
const param_typeparam () const
 
void param (const param_type &p)
 
void param (const param_type &p)
 
const std::vector< double > & probabilities () const
 
const std::vector< double > & probabilities () const
 
void reset ()
 
void reset ()
 

Private Attributes

param_type param_
 

Friends

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

Detailed Description

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

Definition at line 52 of file abseil-cpp/absl/random/discrete_distribution.h.

Member Typedef Documentation

◆ result_type [1/2]

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

◆ result_type [2/2]

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

Constructor & Destructor Documentation

◆ discrete_distribution() [1/10]

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

◆ discrete_distribution() [2/10]

template<typename IntType = int>
absl::discrete_distribution< IntType >::discrete_distribution ( const param_type p)
inlineexplicit

◆ discrete_distribution() [3/10]

template<typename IntType = int>
template<typename InputIterator >
absl::discrete_distribution< IntType >::discrete_distribution ( InputIterator  begin,
InputIterator  end 
)
inlineexplicit

◆ discrete_distribution() [4/10]

template<typename IntType = int>
absl::discrete_distribution< IntType >::discrete_distribution ( std::initializer_list< double >  weights)
inlineexplicit

◆ discrete_distribution() [5/10]

template<typename IntType = int>
template<class UnaryOperation >
absl::discrete_distribution< IntType >::discrete_distribution ( size_t  nw,
double  xmin,
double  xmax,
UnaryOperation  fw 
)
inlineexplicit

◆ discrete_distribution() [6/10]

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

◆ discrete_distribution() [7/10]

template<typename IntType = int>
absl::discrete_distribution< IntType >::discrete_distribution ( const param_type p)
inlineexplicit

◆ discrete_distribution() [8/10]

template<typename IntType = int>
template<typename InputIterator >
absl::discrete_distribution< IntType >::discrete_distribution ( InputIterator  begin,
InputIterator  end 
)
inlineexplicit

◆ discrete_distribution() [9/10]

template<typename IntType = int>
absl::discrete_distribution< IntType >::discrete_distribution ( std::initializer_list< double >  weights)
inlineexplicit

◆ discrete_distribution() [10/10]

template<typename IntType = int>
template<class UnaryOperation >
absl::discrete_distribution< IntType >::discrete_distribution ( size_t  nw,
double  xmin,
double  xmax,
UnaryOperation  fw 
)
inlineexplicit

Member Function Documentation

◆ max() [1/2]

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

◆ max() [2/2]

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

◆ min() [1/2]

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

◆ min() [2/2]

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

◆ operator()() [1/4]

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

◆ operator()() [2/4]

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

◆ operator()() [3/4]

template<typename IntType = int>
template<typename URBG >
result_type absl::discrete_distribution< IntType >::operator() ( URBG &  g,
const param_type p 
)

◆ operator()() [4/4]

template<typename IntType >
template<typename URBG >
discrete_distribution< IntType >::result_type absl::discrete_distribution< IntType >::operator() ( URBG &  g,
const param_type p 
)

◆ param() [1/4]

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

◆ param() [2/4]

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

◆ param() [3/4]

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

◆ param() [4/4]

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

◆ probabilities() [1/2]

template<typename IntType = int>
const std::vector<double>& absl::discrete_distribution< IntType >::probabilities ( ) const
inline

◆ probabilities() [2/2]

template<typename IntType = int>
const std::vector<double>& absl::discrete_distribution< IntType >::probabilities ( ) const
inline

◆ reset() [1/2]

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

◆ reset() [2/2]

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

Friends And Related Function Documentation

◆ operator!= [1/2]

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

◆ operator!= [2/2]

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

◆ operator== [1/2]

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

◆ operator== [2/2]

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

Member Data Documentation

◆ param_

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

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


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