Savarese Software Research Corporation
random_engine< int_type > Class Template Reference

#include <Random.h>

Inheritance diagram for random_engine< int_type >:

List of all members.

Public Types

typedef int_type result_type

Public Member Functions

 random_engine (const std::string &device_file="/dev/urandom") SSRC_DECL_THROW(std
result_type min BOOST_PREVENT_MACRO_SUBSTITUTION () const
result_type max BOOST_PREVENT_MACRO_SUBSTITUTION () const
double entropy () const
result_type operator() () const SSRC_DECL_THROW(std

Static Public Attributes

static const bool has_fixed_range = true
static const result_type min_value
static const result_type max_value

Detailed Description

template<typename int_type>
class random_engine< int_type >

Definition at line 65 of file Random.h.


Member Typedef Documentation

template<typename int_type>
typedef int_type random_engine< int_type >::result_type

Definition at line 69 of file Random.h.


Constructor & Destructor Documentation

template<typename int_type>
random_engine< int_type >::random_engine ( const std::string device_file = "/dev/urandom") [inline, explicit]

Definition at line 76 of file Random.h.


Member Function Documentation

template<typename int_type>
result_type min random_engine< int_type >::BOOST_PREVENT_MACRO_SUBSTITUTION ( ) const [inline]

Definition at line 81 of file Random.h.

template<typename int_type>
result_type max random_engine< int_type >::BOOST_PREVENT_MACRO_SUBSTITUTION ( ) const [inline]

Definition at line 85 of file Random.h.

template<typename int_type>
double random_engine< int_type >::entropy ( ) const [inline]

Definition at line 89 of file Random.h.

template<typename int_type>
result_type random_engine< int_type >::operator() ( ) const [inline]

Definition at line 93 of file Random.h.


Member Data Documentation

template<typename int_type>
const bool random_engine< int_type >::has_fixed_range = true [static]

Definition at line 70 of file Random.h.

template<typename int_type>
const result_type random_engine< int_type >::max_value [static]
Initial value:
    boost::integer_traits<result_type>::const_max

Definition at line 73 of file Random.h.

Referenced by random_engine< IntType >::BOOST_PREVENT_MACRO_SUBSTITUTION().

template<typename int_type>
const result_type random_engine< int_type >::min_value [static]
Initial value:
    boost::integer_traits<result_type>::const_min

Definition at line 71 of file Random.h.

Referenced by random_engine< IntType >::BOOST_PREVENT_MACRO_SUBSTITUTION().


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

Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.