oasys::PermutationArray Class Reference

#include <Random.h>

List of all members.


Detailed Description

Generates a random permuation of length n stored in an array XXX/bowei - add seed.

Definition at line 90 of file Random.h.


Public Member Functions

 PermutationArray (size_t size)
unsigned int map (unsigned int i)

Private Attributes

std::vector
< unsigned int > 
array_
size_t size_

Constructor & Destructor Documentation

oasys::PermutationArray::PermutationArray ( size_t  size  ) 

Definition at line 47 of file Random.cc.

References array_, oasys::Random::rand(), and size_.


Member Function Documentation

unsigned int oasys::PermutationArray::map ( unsigned int  i  ) 

Definition at line 66 of file Random.cc.

References array_, ASSERT, and size_.


Member Data Documentation

std::vector<unsigned int> oasys::PermutationArray::array_ [private]

Definition at line 97 of file Random.h.

Referenced by map(), and PermutationArray().

size_t oasys::PermutationArray::size_ [private]

Definition at line 98 of file Random.h.

Referenced by map(), and PermutationArray().


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 08:43:56 2007 for DTN Reference Implementation by  doxygen 1.5.3