Public Member Functions | Private Attributes | Friends | List of all members
BFL::Probability Class Reference

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

#include <bfl_constants.h>

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
 

Friends

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

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 ( )
inlinevirtual

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:


bfl
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 Jun 10 2019 12:48:01