Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

SelectedRandom Class Reference

#include <newran.h>

Inheritance diagram for SelectedRandom:

Inheritance graph
[legend]
Collaboration diagram for SelectedRandom:

Collaboration graph
[legend]

Public Member Functions

void load (int *, Real *, Random **)
Real Next ()

Private Member Functions

 SelectedRandom (Random &rvx, Real px)
void tDelete ()

Private Attributes

Randomrv
Real p

Friends

class Random

Constructor & Destructor Documentation

SelectedRandom::SelectedRandom Random rvx,
Real  px
[inline, private]
 

Definition at line 580 of file newran.h.

00580 : rv(&rvx), p(px) {}


Member Function Documentation

void SelectedRandom::load int *  ,
Real ,
Random ** 
[virtual]
 

Reimplemented from Random.

Definition at line 797 of file newran.cpp.

References p, and rv.

00798 {
00799    probs[*i]=p; rvx[*i]=rv; (*i)++;
00800    delete this;
00801 }

Real SelectedRandom::Next  )  [virtual]
 

Reimplemented from Random.

Definition at line 803 of file newran.cpp.

References Real.

00804    { Throw(Logic_error("Newran: Next not defined")); return 0.0; }

void SelectedRandom::tDelete  )  [inline, private, virtual]
 

Reimplemented from Random.

Definition at line 581 of file newran.h.

References tron.

00582    { 
00583    #ifdef MONITOR
00584       tron << "destructing SelectedRandom\n";
00585    #endif
00586            rv->tDelete(); delete this; 
00587    }


Friends And Related Function Documentation

friend class Random [friend]
 

Definition at line 578 of file newran.h.


Field Documentation

Real SelectedRandom::p [private]
 

Definition at line 579 of file newran.h.

Referenced by load().

Random* SelectedRandom::rv [private]
 

Definition at line 579 of file newran.h.

Referenced by load().


The documentation for this class was generated from the following files:
Generated on Fri Dec 5 04:06:36 2003 for Borqueror by doxygen 1.3.3