faif
Public Member Functions | Static Public Member Functions | List of all members
faif::RandomSingleton Class Reference

the singleton, synchronized proxy to boost::Random More...

#include <Random.hpp>

Collaboration diagram for faif::RandomSingleton:
Collaboration graph

Public Member Functions

boost::mutex & getAccess ()
 
boost::mt19937 & getRng ()
 

Static Public Member Functions

static RandomSingletongetInstance ()
 

Detailed Description

the singleton, synchronized proxy to boost::Random

macros defined in stdandard library, but here are defined again, because of Visual Studio incompatibility with standard library. VC defines macro min and max in windows.h

Member Function Documentation

static RandomSingleton& faif::RandomSingleton::getInstance ( )
inlinestatic

the sileton getInstance method. Not using double-check pattern, because it is assumed, that random generator is initialized in single thread


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