SourcePro® API Reference Guide

 
List of all members | Public Member Functions | Related Functions
RWRandGenBasicMLC Class Referenceabstract

Abstract base class for classes that generate random numbers uniformly distributed over the interval [0,1]. More...

#include <rw/randmlcg.h>

Inheritance diagram for RWRandGenBasicMLC:
RWRandGenMCG31M1 RWRandGenMCG59

Public Member Functions

void printOn (std::ostream &s) const
 
void restoreFrom (RWFile &file)
 
void restoreFrom (RWvistream &s)
 
void saveOn (RWFile &file) const
 
void saveOn (RWvostream &s) const
 
void scanFrom (std::istream &s)
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &s, const RWRandGenBasicMLC &gen)
 
std::istream & operator>> (std::istream &s, RWRandGenBasicMLC &gen)
 

Detailed Description

Abstract base class for classes that generate random numbers uniformly distributed over the interval [0, 1].

Member Function Documentation

void RWRandGenBasicMLC::printOn ( std::ostream &  s) const

Outputs a summary of self's internal state on ostream s.

void RWRandGenBasicMLC::restoreFrom ( RWFile file)

Restores internal state of self from a RWFile.

void RWRandGenBasicMLC::restoreFrom ( RWvistream s)

Restores internal state of self from a virtual stream.

void RWRandGenBasicMLC::saveOn ( RWFile file) const

Stores internal state of self a binary format to an RWFile.

void RWRandGenBasicMLC::saveOn ( RWvostream s) const

Stores internal state of self to a virtual stream.

void RWRandGenBasicMLC::scanFrom ( std::istream &  s)

Inputs an internal state from istream s to self.

Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  s,
const RWRandGenBasicMLC gen 
)
related

Outputs a summary of the internal state of gen on ostream s.

std::istream & operator>> ( std::istream &  s,
RWRandGenBasicMLC gen 
)
related

Inputs an internal state from istream s to gen.

Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.