NEURON
RandomInteger Class Reference

#include <RndInt.h>

Public Member Functions

 RandomInteger (long low, long high, RNG *gen)
 
 RandomInteger (long high, RNG *gen)
 
 RandomInteger (RNG *gen)
 
long low () const
 
long high () const
 
RNGgenerator () const
 
long low (long x)
 
long high (long x)
 
RNGgenerator (RNG *gen)
 
long asLong ()
 
long operator() ()
 
int asInt ()
 
long asLong (long high)
 
long asLong (long low, long high)
 
long operator() (long high)
 
long operator() (long low, long high)
 

Protected Member Functions

long _asLong (long, long)
 

Protected Attributes

RNGpGenerator
 
long pLow
 
long pHigh
 

Detailed Description

Definition at line 49 of file RndInt.h.

Constructor & Destructor Documentation

◆ RandomInteger() [1/3]

RandomInteger::RandomInteger ( long  low,
long  high,
RNG gen 
)
inline

Definition at line 93 of file RndInt.h.

◆ RandomInteger() [2/3]

RandomInteger::RandomInteger ( long  high,
RNG gen 
)
inline

Definition at line 99 of file RndInt.h.

◆ RandomInteger() [3/3]

RandomInteger::RandomInteger ( RNG gen)
inline

Definition at line 106 of file RndInt.h.

Member Function Documentation

◆ _asLong()

long RandomInteger::_asLong ( long  low,
long  high 
)
inlineprotected

Definition at line 131 of file RndInt.h.

◆ asInt()

int RandomInteger::asInt ( )
inline

Definition at line 170 of file RndInt.h.

◆ asLong() [1/3]

long RandomInteger::asLong ( )
inline

Definition at line 137 of file RndInt.h.

◆ asLong() [2/3]

long RandomInteger::asLong ( long  high)
inline

Definition at line 142 of file RndInt.h.

◆ asLong() [3/3]

long RandomInteger::asLong ( long  low,
long  high 
)
inline

Definition at line 147 of file RndInt.h.

◆ generator() [1/2]

RNG * RandomInteger::generator ( ) const
inline

Definition at line 112 of file RndInt.h.

◆ generator() [2/2]

RNG * RandomInteger::generator ( RNG gen)
inline

Definition at line 116 of file RndInt.h.

◆ high() [1/2]

long RandomInteger::high ( ) const
inline

Definition at line 114 of file RndInt.h.

◆ high() [2/2]

long RandomInteger::high ( long  x)
inline

Definition at line 126 of file RndInt.h.

◆ low() [1/2]

long RandomInteger::low ( ) const
inline

Definition at line 113 of file RndInt.h.

◆ low() [2/2]

long RandomInteger::low ( long  x)
inline

Definition at line 121 of file RndInt.h.

◆ operator()() [1/3]

long RandomInteger::operator() ( )
inline

Definition at line 152 of file RndInt.h.

◆ operator()() [2/3]

long RandomInteger::operator() ( long  high)
inline

Definition at line 157 of file RndInt.h.

◆ operator()() [3/3]

long RandomInteger::operator() ( long  low,
long  high 
)
inline

Definition at line 162 of file RndInt.h.

Member Data Documentation

◆ pGenerator

RNG* RandomInteger::pGenerator
protected

Definition at line 52 of file RndInt.h.

◆ pHigh

long RandomInteger::pHigh
protected

Definition at line 54 of file RndInt.h.

◆ pLow

long RandomInteger::pLow
protected

Definition at line 53 of file RndInt.h.


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