Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
testing::internal::Random Class Reference

#include <gtest-internal.h>

Public Member Functions

 Random (uint32_t seed)
 
void Reseed (uint32_t seed)
 
uint32_t Generate (uint32_t range)
 

Static Public Attributes

static const uint32_t kMaxRange = 1u << 31
 

Private Member Functions

 Random (const Random &)=delete
 
Randomoperator= (const Random &)=delete
 

Private Attributes

uint32_t state_
 

Detailed Description

Definition at line 849 of file gtest-internal.h.

Constructor & Destructor Documentation

testing::internal::Random::Random ( uint32_t  seed)
inlineexplicit

Definition at line 853 of file gtest-internal.h.

testing::internal::Random::Random ( const Random )
privatedelete

Member Function Documentation

void testing::internal::Random::Reseed ( uint32_t  seed)
inline

Definition at line 855 of file gtest-internal.h.

uint32_t testing::internal::Random::Generate ( uint32_t  range)

Definition at line 405 of file gtest.cc.

Random& testing::internal::Random::operator= ( const Random )
privatedelete

Member Data Documentation

const uint32_t testing::internal::Random::kMaxRange = 1u << 31
static

Definition at line 851 of file gtest-internal.h.

uint32_t testing::internal::Random::state_
private

Definition at line 862 of file gtest-internal.h.


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