OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Types | Public Member Functions | Private Attributes | List of all members
RNGLattice< T > Class Template Reference

#include <IpplTypeComputations.h>

Public Types

typedef T Return_t
 

Public Member Functions

 RNGLattice (T minval, T maxval, unsigned long numpoints, bool includeEndpoints=true)
 
 RNGLattice (const RNGLattice< T > &rng)
 
 ~RNGLattice (void)
 
void AdvanceSeed (unsigned long n=0)
 
void SetSeed (unsigned long n=0)
 
unsigned long GetSeed (void) const
 
Return_t GetRandom (void) const
 
Return_t operator() (void) const
 
 operator Return_t () const
 
unsigned long GetRandMax (void) const
 

Private Attributes

T MinVal
 
T MaxVal
 
T Spacing
 
unsigned long CurrPoint
 
unsigned long NumPoints
 
bool IncludeEndpoints
 

Detailed Description

template<class T>
class RNGLattice< T >

Definition at line 42 of file IpplTypeComputations.h.

Member Typedef Documentation

template<class T>
typedef T RNGLattice< T >::Return_t

Definition at line 39 of file RNGLattice.h.

Constructor & Destructor Documentation

template<class T>
RNGLattice< T >::RNGLattice ( T  minval,
T  maxval,
unsigned long  numpoints,
bool  includeEndpoints = true 
)
inline
template<class T>
RNGLattice< T >::RNGLattice ( const RNGLattice< T > &  rng)
inline

Definition at line 66 of file RNGLattice.h.

template<class T>
RNGLattice< T >::~RNGLattice ( void  )
inline

Definition at line 72 of file RNGLattice.h.

Member Function Documentation

template<class T>
void RNGLattice< T >::AdvanceSeed ( unsigned long  n = 0)
inline
template<class T>
unsigned long RNGLattice< T >::GetRandMax ( void  ) const
inline

Definition at line 107 of file RNGLattice.h.

References RNGLattice< T >::NumPoints.

template<class T>
Return_t RNGLattice< T >::GetRandom ( void  ) const
inline
template<class T>
unsigned long RNGLattice< T >::GetSeed ( void  ) const
inline

Definition at line 86 of file RNGLattice.h.

References RNGLattice< T >::CurrPoint.

template<class T>
RNGLattice< T >::operator Return_t ( ) const
inline

Definition at line 104 of file RNGLattice.h.

References RNGLattice< T >::GetRandom().

Here is the call graph for this function:

template<class T>
Return_t RNGLattice< T >::operator() ( void  ) const
inline

Definition at line 101 of file RNGLattice.h.

References RNGLattice< T >::GetRandom().

Here is the call graph for this function:

template<class T>
void RNGLattice< T >::SetSeed ( unsigned long  n = 0)
inline

Member Data Documentation

template<class T>
unsigned long RNGLattice< T >::CurrPoint
mutableprivate
template<class T>
bool RNGLattice< T >::IncludeEndpoints
private

Definition at line 113 of file RNGLattice.h.

Referenced by RNGLattice< T >::GetRandom(), and RNGLattice< T >::RNGLattice().

template<class T>
T RNGLattice< T >::MaxVal
private

Definition at line 110 of file RNGLattice.h.

Referenced by RNGLattice< T >::RNGLattice().

template<class T>
T RNGLattice< T >::MinVal
private

Definition at line 110 of file RNGLattice.h.

Referenced by RNGLattice< T >::GetRandom(), and RNGLattice< T >::RNGLattice().

template<class T>
unsigned long RNGLattice< T >::NumPoints
private
template<class T>
T RNGLattice< T >::Spacing
private

Definition at line 110 of file RNGLattice.h.

Referenced by RNGLattice< T >::GetRandom(), and RNGLattice< T >::RNGLattice().


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