Lattice Builder Manual Software Package for Constructing Rank-1 Lattices

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
LatBuilder::Traversal::Random< RAND > Class Template Reference

Random traversal type. More...

`#include <Traversal.h>`

Inherited by LatBuilder::Traversal::Policy< SEQ, Random< RAND > >.

## Public Types
typedef size_t | size_type
| Size type.
typedef RAND | RandomGenerator
| Type of the pseudo-random number generator.

## Public Member Functions
| Random (size_type size=std::numeric_limits< size_type >::max(), RandomGenerator rand=RandomGenerator())
| Constructor. More...
size_t | size () const
| Returns the traversal size.
void | resize (size_type size)
| Changes the traversal size to `size`.
const RandomGenerator & | randomGenerator () const
| Returns the random generator.
RandomGenerator & | randomGenerator ()
| Returns the random generator.

## Static Public Member Functions
static std::string | name ()

## Protected Attributes
RandomGenerator | m_rand
size_type | m_size

## Detailed Description

### template<typename RAND>
class LatBuilder::Traversal::Random< RAND >

Random traversal type.

Examples:
  tutorial/GenSeqRandom.cc.

## Constructor & Destructor Documentation

template<typename RAND>

LatBuilder::Traversal::Random< RAND >::Random | ( | size_type | size = `std::numeric_limits<size_type>::max()`,
|  | RandomGenerator | rand = `RandomGenerator()`
| ) |  |
| inline

Constructor.

Parameters

  rand | Random number generator.
  size | Traversal size: number of sequence values to be randomly visited.

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

- latbuilder/include/latbuilder/Traversal.h