The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
random_new::set_random_determinstic Class Reference

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

#include <random_new_deterministic.hpp>

Public Member Functions

 set_random_determinstic (rand_rng::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 42 of file random_new_deterministic.hpp.

Constructor & Destructor Documentation

random_new::set_random_determinstic::set_random_determinstic ( rand_rng::mt_rng rng)

Definition at line 37 of file random_new_deterministic.cpp.

References random_new::generator, and new_rng_.

random_new::set_random_determinstic::~set_random_determinstic ( )

Definition at line 43 of file random_new_deterministic.cpp.

References random_new::generator, and old_rng_.

Member Data Documentation

rng_deterministic random_new::set_random_determinstic::new_rng_
private

Definition at line 49 of file random_new_deterministic.hpp.

Referenced by set_random_determinstic().

rng* random_new::set_random_determinstic::old_rng_
private

Definition at line 48 of file random_new_deterministic.hpp.

Referenced by ~set_random_determinstic().


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