Molassembler  3.0.0
Molecule graph and conformer library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Scine::Molassembler::Random::Engine Class Reference

Drives a PRNG. More...

#include <Prng.h>

Public Types

using result_type = uint32_t
 The type this engine generates.
 

Public Member Functions

 Engine (int seedArg)
 
 Engine (Engine &&other) noexcept
 
Engineoperator= (Engine &&other) noexcept
 
 Engine (const Engine &other)
 
Engineoperator= (const Engine &other)
 
void seed (int x)
 Seed the underlying state with an integer value.
 
void seed (const std::vector< int > &signedSeeds)
 Seed the underlying state with multiple integer values.
 
result_type operator() () const
 Advances the state and returns a value. More...
 
bool operator== (const Engine &other) const
 Compare this engine's state with that of another engine.
 

Static Public Member Functions

static constexpr result_type min ()
 Minimum value of result_type.
 
static constexpr result_type max ()
 Maximum value of result_type.
 

Private Attributes

std::unique_ptr< Impl > pImpl_
 

Detailed Description

Drives a PRNG.

Member Function Documentation

result_type Scine::Molassembler::Random::Engine::operator() ( ) const

Advances the state and returns a value.

Complexity \(\Theta(1)\)


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