Template Class GSLrng_t

Class Documentation

template<typename T>
class fwdpp::GSLrng_t

A wrapper around gsl_rng * objects.

The template instantiation type must be a model of fwdpp::gsl::GSL_RNG_TYPE_TAG, which specifies the gsl_rng type. This type holds an object of type fwdpp::gsl::gsl_rng_ptr_t, which is a smart pointer that manages freeing the gsl_rng * upon destruction.

Public Types

using rngtype = T

Typedef for RNG type, if needed.

Public Functions

GSLrng_t(const unsigned long seed) noexcept

Construct with a seed.

~GSLrng_t() = default
GSLrng_t(const GSLrng_t &rng) = delete
GSLrng_t(GSLrng_t&&) = default

Move constructor.

GSLrng_t &operator=(GSLrng_t&) = delete
GSLrng_t &operator=(GSLrng_t&&) = default

Move assignment.

const gsl_rng *get() const

Return underlying pointer.