OpenVPN 3 Core Library
Loading...
Searching...
No Matches
FakeRNG< T > Class Template Reference

Public Types

using result_type = T
 

Public Member Functions

 FakeRNG (std::vector< T > values)
 
result_type operator() ()
 
size_t call_count () const
 

Static Public Member Functions

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

Private Attributes

std::vector< T > values_
 
size_t call_count_ = 0
 

Detailed Description

template<typename T>
class FakeRNG< T >

Definition at line 14 of file test_randbytestore.cpp.

Member Typedef Documentation

◆ result_type

template<typename T >
using FakeRNG< T >::result_type = T

Definition at line 17 of file test_randbytestore.cpp.

Constructor & Destructor Documentation

◆ FakeRNG()

template<typename T >
FakeRNG< T >::FakeRNG ( std::vector< T >  values)
inlineexplicit

Definition at line 19 of file test_randbytestore.cpp.

Member Function Documentation

◆ call_count()

template<typename T >
size_t FakeRNG< T >::call_count ( ) const
inline

Definition at line 40 of file test_randbytestore.cpp.

◆ max()

template<typename T >
static constexpr result_type FakeRNG< T >::max ( )
inlinestaticconstexpr

Definition at line 29 of file test_randbytestore.cpp.

◆ min()

template<typename T >
static constexpr result_type FakeRNG< T >::min ( )
inlinestaticconstexpr

Definition at line 24 of file test_randbytestore.cpp.

◆ operator()()

template<typename T >
result_type FakeRNG< T >::operator() ( )
inline

Definition at line 34 of file test_randbytestore.cpp.

Member Data Documentation

◆ call_count_

template<typename T >
size_t FakeRNG< T >::call_count_ = 0
private

Definition at line 47 of file test_randbytestore.cpp.

◆ values_

template<typename T >
std::vector<T> FakeRNG< T >::values_
private

Definition at line 46 of file test_randbytestore.cpp.


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