Class representing a probability (a double between 0 and 1) More...
#include <bfl_constants.h>
Public Member Functions | |
double | getValue () const |
operator double () | |
Probability | operator* (Probability p) |
Probability | operator/ (Probability p) |
Probability () | |
Probability (double p) | |
virtual | ~Probability () |
Private Attributes | |
double | _prob |
Friends | |
ostream & | operator<< (ostream &stream, Probability &prob) |
istream & | operator>> (istream &stream, Probability &prob) |
Class representing a probability (a double between 0 and 1)
Definition at line 39 of file bfl_constants.h.
BFL::Probability::Probability | ( | ) | [inline] |
Definition at line 42 of file bfl_constants.h.
BFL::Probability::Probability | ( | double | p | ) | [inline] |
Definition at line 43 of file bfl_constants.h.
virtual BFL::Probability::~Probability | ( | ) | [inline, virtual] |
Definition at line 51 of file bfl_constants.h.
double BFL::Probability::getValue | ( | ) | const [inline] |
Definition at line 71 of file bfl_constants.h.
BFL::Probability::operator double | ( | ) | [inline] |
Definition at line 73 of file bfl_constants.h.
Probability BFL::Probability::operator* | ( | Probability | p | ) | [inline] |
Definition at line 74 of file bfl_constants.h.
Probability BFL::Probability::operator/ | ( | Probability | p | ) | [inline] |
Definition at line 76 of file bfl_constants.h.
ostream& operator<< | ( | ostream & | stream, |
Probability & | prob | ||
) | [friend] |
Definition at line 62 of file bfl_toolkit.cpp.
istream& operator>> | ( | istream & | stream, |
Probability & | prob | ||
) | [friend] |
Definition at line 68 of file bfl_toolkit.cpp.
double BFL::Probability::_prob [private] |
Definition at line 77 of file bfl_constants.h.