The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Private Attributes | List of all members
randomness::set_random_determinstic Class Reference

RAII class to use rng_deterministic in the current scope. More...

#include <random_deterministic.hpp>

Public Member Functions

 set_random_determinstic (mt_rng &rng)
 
 ~set_random_determinstic ()
 

Private Attributes

rngold_rng_
 
rng_deterministic new_rng_
 

Detailed Description

RAII class to use rng_deterministic in the current scope.

Definition at line 66 of file random_deterministic.hpp.

Constructor & Destructor Documentation

◆ set_random_determinstic()

randomness::set_random_determinstic::set_random_determinstic ( mt_rng rng)

Definition at line 39 of file random_deterministic.cpp.

References randomness::generator, and new_rng_.

◆ ~set_random_determinstic()

randomness::set_random_determinstic::~set_random_determinstic ( )

Definition at line 45 of file random_deterministic.cpp.

References randomness::generator, and old_rng_.

Member Data Documentation

◆ new_rng_

rng_deterministic randomness::set_random_determinstic::new_rng_
private

Definition at line 73 of file random_deterministic.hpp.

Referenced by set_random_determinstic().

◆ old_rng_

rng* randomness::set_random_determinstic::old_rng_
private

Definition at line 72 of file random_deterministic.hpp.

Referenced by ~set_random_determinstic().


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