DiscreteUniform< BZ_TEMPLATE_DEFAULT > Class Template Reference

#include <rand-dunif.h>

Inheritance diagram for DiscreteUniform< BZ_TEMPLATE_DEFAULT >:

Inheritance graph
[legend]
Collaboration diagram for DiscreteUniform< BZ_TEMPLATE_DEFAULT >:

Collaboration graph
[legend]
List of all members.

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
class DiscreteUniform< BZ_TEMPLATE_DEFAULT >


Public Types

typedef int T_numtype
typedef P_uniform T_uniform
typedef T T_numtype

Public Member Functions

 DiscreteUniform (int low, int high, double=0)
void randomize ()
int random ()
 DiscreteUniform (T n)
random ()

Private Attributes

int low_
int range_
T_uniform uniform_
n_

Member Typedef Documentation

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
typedef int DiscreteUniform< BZ_TEMPLATE_DEFAULT >::T_numtype

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
typedef P_uniform DiscreteUniform< BZ_TEMPLATE_DEFAULT >::T_uniform

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
typedef T DiscreteUniform< BZ_TEMPLATE_DEFAULT >::T_numtype


Constructor & Destructor Documentation

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
DiscreteUniform< BZ_TEMPLATE_DEFAULT >::DiscreteUniform ( int  low,
int  high,
double  = 0 
) [inline]

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
DiscreteUniform< BZ_TEMPLATE_DEFAULT >::DiscreteUniform ( n  )  [inline]


Member Function Documentation

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
void DiscreteUniform< BZ_TEMPLATE_DEFAULT >::randomize (  )  [inline]

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
int DiscreteUniform< BZ_TEMPLATE_DEFAULT >::random (  )  [inline]

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
T DiscreteUniform< BZ_TEMPLATE_DEFAULT >::random ( void   )  [inline]


Member Data Documentation

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
int DiscreteUniform< BZ_TEMPLATE_DEFAULT >::low_ [private]

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
int DiscreteUniform< BZ_TEMPLATE_DEFAULT >::range_ [private]

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
T_uniform DiscreteUniform< BZ_TEMPLATE_DEFAULT >::uniform_ [private]

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
T DiscreteUniform< BZ_TEMPLATE_DEFAULT >::n_ [private]


The documentation for this class was generated from the following files:
Generated on Wed Oct 17 16:28:01 2007 for blitz by  doxygen 1.5.2