Empirical
Public Types | Public Member Functions | Public Attributes | List of all members
emp::RandomStdAdaptor Struct Reference

This is an adaptor to make Random behave like a proper STL random number generator. More...

#include <ce_random.h>

Public Types

typedef int argument_type
 
typedef int result_type
 
typedef int argument_type
 
typedef int result_type
 

Public Member Functions

 RandomStdAdaptor (Random &rng)
 
int operator() (int n)
 
 RandomStdAdaptor (Random &rng)
 
int operator() (int n)
 

Public Attributes

Random_rng
 

Detailed Description

This is an adaptor to make Random behave like a proper STL random number generator.

This is an adaptor to make Random behave like a proper STL random number generator.

Member Typedef Documentation

Constructor & Destructor Documentation

emp::RandomStdAdaptor::RandomStdAdaptor ( Random rng)
inline
emp::RandomStdAdaptor::RandomStdAdaptor ( Random rng)
inline

Member Function Documentation

int emp::RandomStdAdaptor::operator() ( int  n)
inline
int emp::RandomStdAdaptor::operator() ( int  n)
inline

Member Data Documentation

Random & emp::RandomStdAdaptor::_rng

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