Classes | Namespaces | Functions

rng.hpp File Reference

#include <cstddef>
#include "random.hpp"
#include "simple_rng.hpp"
#include <boost/function.hpp>
Include dependency graph for rng.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  rand_rng::rng

Namespaces

namespace  rand_rng

Functions

void rand_rng::set_seed (int seed)
 Set the random seed for the current random number generator, sets the seed as valid nd calls the new seed callback if set.
void rand_rng::invalidate_seed ()
 Mark the RNG seed as invalid.
bool rand_rng::has_valid_seed ()
 Function to check whether the RNG has been updated with a new seed since the las invalidate_seed() call.
int rand_rng::get_last_seed ()
 Get the last seed the RNG was seeded with in set_seed.
void rand_rng::set_new_seed_callback (boost::function< void(int)> f)
 Set the callback for a function that will be called on subsequent set_seed calls.
bool rand_rng::has_new_seed_callback ()
void rand_rng::clear_new_seed_callback ()
 Clear the new seed callback.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:09:11 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs