Public Member Functions | Private Attributes | Friends
BFL::Probability Class Reference

Class representing a probability (a double between 0 and 1) More...

#include <bfl_constants.h>

List of all members.

Public Member Functions

double getValue () const
double & getValue ()
 operator double ()
Probability operator* (Probability p)
Probability operator/ (Probability p)
 Probability ()
 Probability (double p)
virtual ~Probability ()

Private Attributes

double _prob


ostream & operator<< (ostream &stream, Probability &prob)
istream & operator>> (istream &stream, Probability &prob)

Detailed Description

Class representing a probability (a double between 0 and 1)

Definition at line 39 of file bfl_constants.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

double BFL::Probability::getValue ( ) const [inline]

Definition at line 71 of file bfl_constants.h.

double& BFL::Probability::getValue ( ) [inline]

Definition at line 72 of file bfl_constants.h.

BFL::Probability::operator double ( ) [inline]

Definition at line 74 of file bfl_constants.h.

Probability BFL::Probability::operator* ( Probability  p) [inline]

Definition at line 75 of file bfl_constants.h.

Probability BFL::Probability::operator/ ( Probability  p) [inline]

Definition at line 77 of file bfl_constants.h.

Friends And Related Function Documentation

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.

Member Data Documentation

double BFL::Probability::_prob [private]

Definition at line 78 of file bfl_constants.h.

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

Author(s): Klaas Gadeyne, Wim Meeussen, Tinne Delaet and many others. See web page for a full contributor list. ROS package maintained by Wim Meeussen.
autogenerated on Mon Feb 11 2019 03:45:12