Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
fcl::detail::Seed Class Reference

#include <seed.h>

Static Public Member Functions

static std::uint_fast32_t getFirstSeed ()
 
static std::uint_fast32_t getNextSeed ()
 
static std::uint_fast32_t getUserSetSeed ()
 
static bool isFirstSeedGenerated ()
 
static void setUserSetSeed (std::uint_fast32_t seed)
 

Protected Member Functions

 Seed ()
 

Static Protected Member Functions

static SeedgetInstance ()
 

Protected Attributes

bool firstSeedGenerated
 Flag indicating whether the first seed has already been generated or not. More...
 
std::uint_fast32_t firstSeedValue
 The value of the first seed. More...
 
std::uint_fast32_t userSetSeed
 The seed the user asked for (cannot be 0) More...
 

Detailed Description

Definition at line 49 of file seed.h.

Constructor & Destructor Documentation

◆ Seed()

fcl::detail::Seed::Seed ( )
protected

Definition at line 107 of file seed.cpp.

Member Function Documentation

◆ getFirstSeed()

uint_fast32_t fcl::detail::Seed::getFirstSeed ( )
static

Definition at line 68 of file seed.cpp.

◆ getInstance()

Seed & fcl::detail::Seed::getInstance ( )
staticprotected

Definition at line 113 of file seed.cpp.

◆ getNextSeed()

uint_fast32_t fcl::detail::Seed::getNextSeed ( )
static

We use a different random number generator for the seeds of the Other random generators. The root seed is from the number of nano-seconds in the current time.

Definition at line 96 of file seed.cpp.

◆ getUserSetSeed()

uint_fast32_t fcl::detail::Seed::getUserSetSeed ( )
static

Definition at line 56 of file seed.cpp.

◆ isFirstSeedGenerated()

bool fcl::detail::Seed::isFirstSeedGenerated ( )
static

Definition at line 50 of file seed.cpp.

◆ setUserSetSeed()

void fcl::detail::Seed::setUserSetSeed ( std::uint_fast32_t  seed)
static

Definition at line 62 of file seed.cpp.

Member Data Documentation

◆ firstSeedGenerated

bool fcl::detail::Seed::firstSeedGenerated
protected

Flag indicating whether the first seed has already been generated or not.

Definition at line 76 of file seed.h.

◆ firstSeedValue

std::uint_fast32_t fcl::detail::Seed::firstSeedValue
protected

The value of the first seed.

Definition at line 79 of file seed.h.

◆ userSetSeed

std::uint_fast32_t fcl::detail::Seed::userSetSeed
protected

The seed the user asked for (cannot be 0)

Definition at line 73 of file seed.h.


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


fcl
Author(s):
autogenerated on Fri Apr 2 2021 02:38:03