Savarese Software Research Corporation
utility::random_engine< int_type > Class Template Reference

#include <Random.h>

Inheritance diagram for utility::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 utility::random_engine< int_type >

Definition at line 65 of file Random.h.


Member Typedef Documentation

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

Definition at line 69 of file Random.h.


Constructor & Destructor Documentation

template<typename int_type>
utility::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 utility::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 utility::random_engine< int_type >::BOOST_PREVENT_MACRO_SUBSTITUTION ( ) const [inline]

Definition at line 85 of file Random.h.

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

Definition at line 89 of file Random.h.

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

Definition at line 93 of file Random.h.


Member Data Documentation

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

Definition at line 70 of file Random.h.

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

Definition at line 73 of file Random.h.

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

Definition at line 71 of file Random.h.


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.