Generated on Sat Aug 25 2012 03:33:03 for Gecode by doxygen 1.8.1.2
Gecode::ArchivedRandomGenerator Class Reference

Random generator with archiving (to be used in branchers) More...

#include <brancher-view.hpp>

Public Member Functions

 ArchivedRandomGenerator (void)
 Default constructor.
 ArchivedRandomGenerator (unsigned int seed)
 Constructor.
 ArchivedRandomGenerator (const Support::RandomGenerator &r)
 Copy constructor.
void archive (Archive &e) const
 Archive.
- Public Member Functions inherited from Gecode::Support::LinearCongruentialGenerator< m, a, q, r >
void seed (unsigned int _s)
 Set the current seed.
 LinearCongruentialGenerator (unsigned int _s=1)
 Construct the generator instance.
unsigned int seed (void) const
 Return current seed.
unsigned int operator() (unsigned int n)
 Returns a random integer from the interval [0..n)
size_t size (void) const
 Report size occupied.

Detailed Description

Random generator with archiving (to be used in branchers)

Definition at line 174 of file brancher-view.hpp.

Constructor & Destructor Documentation

Gecode::ArchivedRandomGenerator::ArchivedRandomGenerator ( void  )
inline

Default constructor.

Definition at line 398 of file brancher-view.hpp.

Gecode::ArchivedRandomGenerator::ArchivedRandomGenerator ( unsigned int  seed)
inline

Constructor.

Definition at line 400 of file brancher-view.hpp.

Gecode::ArchivedRandomGenerator::ArchivedRandomGenerator ( const Support::RandomGenerator r)
inline

Copy constructor.

Definition at line 404 of file brancher-view.hpp.

Member Function Documentation

void Gecode::ArchivedRandomGenerator::archive ( Archive e) const
inline

Archive.

Definition at line 406 of file brancher-view.hpp.


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