random-var.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  rv

Classes

class  random_var

Typedefs

typedef int(* weight_func )(int val)

Functions

random_var constant (int n)
random_var operator+ (const random_var &x, const random_var &y)
random_var negate (const random_var &x)
random_var operator- (const random_var &x, const random_var &y)
const random_varoperator+= (random_var &x, const random_var &y)
const random_varoperator-= (random_var &x, const random_var &y)
random_var operator/ (const random_var &x, int d)
random_var rv::max (const random_var &x, const random_var &y)
random_var rv::min (const random_var &x, const random_var &y)
random_var rv::roll_dice (int d, int n)
random_var rv::random2 (int n)


Typedef Documentation

typedef int(* weight_func)(int val)


Function Documentation

random_var constant ( int  n  ) 

Here is the call graph for this function:

random_var negate ( const random_var x  ) 

Here is the call graph for this function:

random_var operator+ ( const random_var x,
const random_var y 
)

Here is the call graph for this function:

const random_var& operator+= ( random_var x,
const random_var y 
)

random_var operator- ( const random_var x,
const random_var y 
)

Here is the call graph for this function:

const random_var& operator-= ( random_var x,
const random_var y 
)

random_var operator/ ( const random_var x,
int  d 
)

Here is the call graph for this function:


Generated on Thu Jan 13 13:20:24 2011 by  doxygen 1.5.6