Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
absl::BitGenRef Class Reference

#include <bit_gen_ref.h>

Classes

struct  detector
 
struct  detector< Trait, absl::void_t< Trait< Args... > >, Args... >
 

Public Types

using result_type = uint64_t
 
using result_type = uint64_t
 

Public Member Functions

 BitGenRef (BitGenRef &&)=default
 
 BitGenRef (BitGenRef &&)=default
 
 BitGenRef (const BitGenRef &)=default
 
 BitGenRef (const BitGenRef &)=default
 
template<typename URBG , typename absl::enable_if_t<(!std::is_same< URBG, BitGenRef >::value &&random_internal::is_urbg< URBG >::value &&!HasInvokeMock< URBG >::value)> * = nullptr>
 BitGenRef (URBG &gen)
 
template<typename URBG , typename absl::enable_if_t<(!std::is_same< URBG, BitGenRef >::value &&random_internal::is_urbg< URBG >::value &&!HasInvokeMock< URBG >::value)> * = nullptr>
 BitGenRef (URBG &gen)
 
template<typename URBG , typename absl::enable_if_t<(!std::is_same< URBG, BitGenRef >::value &&random_internal::is_urbg< URBG >::value &&HasInvokeMock< URBG >::value)> * = nullptr>
 BitGenRef (URBG &gen)
 
template<typename URBG , typename absl::enable_if_t<(!std::is_same< URBG, BitGenRef >::value &&random_internal::is_urbg< URBG >::value &&HasInvokeMock< URBG >::value)> * = nullptr>
 BitGenRef (URBG &gen)
 
result_type operator() ()
 
result_type operator() ()
 
BitGenRefoperator= (BitGenRef &&)=default
 
BitGenRefoperator= (BitGenRef &&)=default
 
BitGenRefoperator= (const BitGenRef &)=default
 
BitGenRefoperator= (const BitGenRef &)=default
 

Static Public Member Functions

static constexpr result_type() max ()
 
static constexpr result_type() max ()
 
static constexpr result_type() min ()
 
static constexpr result_type() min ()
 

Private Types

template<typename T >
using HasInvokeMock = typename detector< invoke_mock_t, void, T >::type
 
template<typename T >
using HasInvokeMock = typename detector< invoke_mock_t, void, T >::type
 
using impl_fn = result_type(*)(uintptr_t)
 
using impl_fn = result_type(*)(uintptr_t)
 
template<class T >
using invoke_mock_t = decltype(std::declval< T * >() ->InvokeMock(std::declval< base_internal::FastTypeIdType >(), std::declval< void * >(), std::declval< void * >()))
 
template<class T >
using invoke_mock_t = decltype(std::declval< T * >() ->InvokeMock(std::declval< base_internal::FastTypeIdType >(), std::declval< void * >(), std::declval< void * >()))
 
using mock_call_fn = bool(*)(uintptr_t, base_internal::FastTypeIdType, void *, void *)
 
using mock_call_fn = bool(*)(uintptr_t, base_internal::FastTypeIdType, void *, void *)
 

Private Member Functions

bool InvokeMock (base_internal::FastTypeIdType type, void *args_tuple, void *result)
 
bool InvokeMock (base_internal::FastTypeIdType type, void *args_tuple, void *result)
 

Static Private Member Functions

template<typename URBG >
static result_type ImplFn (uintptr_t ptr)
 
template<typename URBG >
static result_type ImplFn (uintptr_t ptr)
 
template<typename URBG >
static bool MockCall (uintptr_t gen_ptr, base_internal::FastTypeIdType type, void *result, void *arg_tuple)
 
template<typename URBG >
static bool MockCall (uintptr_t gen_ptr, base_internal::FastTypeIdType type, void *result, void *arg_tuple)
 
static bool NotAMock (uintptr_t, base_internal::FastTypeIdType, void *, void *)
 
static bool NotAMock (uintptr_t, base_internal::FastTypeIdType, void *, void *)
 

Private Attributes

impl_fn generate_impl_fn_
 
mock_call_fn mock_call_
 
uintptr_t t_erased_gen_ptr_
 

Friends

template<typename >
struct ::absl::random_internal::DistributionCaller
 
class ::absl::random_internal::MockHelpers
 

Detailed Description

Definition at line 87 of file abseil-cpp/absl/random/bit_gen_ref.h.

Member Typedef Documentation

◆ HasInvokeMock [1/2]

template<typename T >
using absl::BitGenRef::HasInvokeMock = typename detector<invoke_mock_t, void, T>::type
private

◆ HasInvokeMock [2/2]

template<typename T >
using absl::BitGenRef::HasInvokeMock = typename detector<invoke_mock_t, void, T>::type
private

Definition at line 105 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ impl_fn [1/2]

◆ impl_fn [2/2]

Definition at line 144 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ invoke_mock_t [1/2]

template<class T >
using absl::BitGenRef::invoke_mock_t = decltype(std::declval<T*>()->InvokeMock( std::declval<base_internal::FastTypeIdType>(), std::declval<void*>(), std::declval<void*>()))
private

◆ invoke_mock_t [2/2]

template<class T >
using absl::BitGenRef::invoke_mock_t = decltype(std::declval<T*>()->InvokeMock( std::declval<base_internal::FastTypeIdType>(), std::declval<void*>(), std::declval<void*>()))
private

Definition at line 102 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ mock_call_fn [1/2]

◆ mock_call_fn [2/2]

Definition at line 146 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ result_type [1/2]

◆ result_type [2/2]

Definition at line 131 of file abseil-cpp/absl/random/bit_gen_ref.h.

Constructor & Destructor Documentation

◆ BitGenRef() [1/8]

absl::BitGenRef::BitGenRef ( const BitGenRef )
default

◆ BitGenRef() [2/8]

absl::BitGenRef::BitGenRef ( BitGenRef &&  )
default

◆ BitGenRef() [3/8]

template<typename URBG , typename absl::enable_if_t<(!std::is_same< URBG, BitGenRef >::value &&random_internal::is_urbg< URBG >::value &&!HasInvokeMock< URBG >::value)> * = nullptr>
absl::BitGenRef::BitGenRef ( URBG &  gen)
inline

Definition at line 117 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ BitGenRef() [4/8]

template<typename URBG , typename absl::enable_if_t<(!std::is_same< URBG, BitGenRef >::value &&random_internal::is_urbg< URBG >::value &&HasInvokeMock< URBG >::value)> * = nullptr>
absl::BitGenRef::BitGenRef ( URBG &  gen)
inline

Definition at line 126 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ BitGenRef() [5/8]

absl::BitGenRef::BitGenRef ( const BitGenRef )
default

◆ BitGenRef() [6/8]

absl::BitGenRef::BitGenRef ( BitGenRef &&  )
default

◆ BitGenRef() [7/8]

template<typename URBG , typename absl::enable_if_t<(!std::is_same< URBG, BitGenRef >::value &&random_internal::is_urbg< URBG >::value &&!HasInvokeMock< URBG >::value)> * = nullptr>
absl::BitGenRef::BitGenRef ( URBG &  gen)
inline

◆ BitGenRef() [8/8]

template<typename URBG , typename absl::enable_if_t<(!std::is_same< URBG, BitGenRef >::value &&random_internal::is_urbg< URBG >::value &&HasInvokeMock< URBG >::value)> * = nullptr>
absl::BitGenRef::BitGenRef ( URBG &  gen)
inline

Member Function Documentation

◆ ImplFn() [1/2]

template<typename URBG >
static result_type absl::BitGenRef::ImplFn ( uintptr_t  ptr)
inlinestaticprivate

◆ ImplFn() [2/2]

template<typename URBG >
static result_type absl::BitGenRef::ImplFn ( uintptr_t  ptr)
inlinestaticprivate

Definition at line 149 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ InvokeMock() [1/2]

bool absl::BitGenRef::InvokeMock ( base_internal::FastTypeIdType  type,
void *  args_tuple,
void *  result 
)
inlineprivate

◆ InvokeMock() [2/2]

bool absl::BitGenRef::InvokeMock ( base_internal::FastTypeIdType  type,
void *  args_tuple,
void *  result 
)
inlineprivate

Definition at line 167 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ max() [1/2]

static constexpr result_type() absl::BitGenRef::max ( )
inlinestaticconstexpr

◆ max() [2/2]

static constexpr result_type() absl::BitGenRef::max ( )
inlinestaticconstexpr

Definition at line 137 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ min() [1/2]

static constexpr result_type() absl::BitGenRef::min ( )
inlinestaticconstexpr

◆ min() [2/2]

static constexpr result_type() absl::BitGenRef::min ( )
inlinestaticconstexpr

Definition at line 133 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ MockCall() [1/2]

template<typename URBG >
static bool absl::BitGenRef::MockCall ( uintptr_t  gen_ptr,
base_internal::FastTypeIdType  type,
void *  result,
void *  arg_tuple 
)
inlinestaticprivate

◆ MockCall() [2/2]

template<typename URBG >
static bool absl::BitGenRef::MockCall ( uintptr_t  gen_ptr,
base_internal::FastTypeIdType  type,
void *  result,
void *  arg_tuple 
)
inlinestaticprivate

Definition at line 158 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ NotAMock() [1/2]

static bool absl::BitGenRef::NotAMock ( uintptr_t  ,
base_internal::FastTypeIdType  ,
void *  ,
void *   
)
inlinestaticprivate

◆ NotAMock() [2/2]

static bool absl::BitGenRef::NotAMock ( uintptr_t  ,
base_internal::FastTypeIdType  ,
void *  ,
void *   
)
inlinestaticprivate

Definition at line 163 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ operator()() [1/2]

result_type absl::BitGenRef::operator() ( )
inline

◆ operator()() [2/2]

result_type absl::BitGenRef::operator() ( )
inline

Definition at line 141 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ operator=() [1/4]

BitGenRef& absl::BitGenRef::operator= ( BitGenRef &&  )
default

◆ operator=() [2/4]

BitGenRef& absl::BitGenRef::operator= ( BitGenRef &&  )
default

◆ operator=() [3/4]

BitGenRef& absl::BitGenRef::operator= ( const BitGenRef )
default

◆ operator=() [4/4]

BitGenRef& absl::BitGenRef::operator= ( const BitGenRef )
default

Friends And Related Function Documentation

◆ ::absl::random_internal::DistributionCaller

template<typename >
friend struct ::absl::random_internal::DistributionCaller
friend

Definition at line 178 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ ::absl::random_internal::MockHelpers

friend class ::absl::random_internal::MockHelpers
friend

Definition at line 179 of file abseil-cpp/absl/random/bit_gen_ref.h.

Member Data Documentation

◆ generate_impl_fn_

impl_fn absl::BitGenRef::generate_impl_fn_
private

Definition at line 175 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ mock_call_

mock_call_fn absl::BitGenRef::mock_call_
private

Definition at line 174 of file abseil-cpp/absl/random/bit_gen_ref.h.

◆ t_erased_gen_ptr_

uintptr_t absl::BitGenRef::t_erased_gen_ptr_
private

Definition at line 173 of file abseil-cpp/absl/random/bit_gen_ref.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:51