World Ocean Simulation System (WOSS) library
|
Provides the interface for the woss::PDouble class. More...
Go to the source code of this file.
Classes | |
class | woss::PDouble |
Custom precision long double class. More... | |
Functions | |
const PDouble | woss::operator+ (const PDouble &left, const PDouble &right) |
const PDouble | woss::operator- (const PDouble &left, const PDouble &right) |
const PDouble | woss::operator/ (const PDouble &left, const PDouble &right) |
const PDouble | woss::operator* (const PDouble &left, const PDouble &right) |
const PDouble | woss::operator% (const PDouble &left, const PDouble &right) |
PDouble & | woss::operator+= (PDouble &left, const PDouble &right) |
PDouble & | woss::operator-= (PDouble &left, const PDouble &right) |
PDouble & | woss::operator/= (PDouble &left, const PDouble &right) |
PDouble & | woss::operator*= (PDouble &left, const PDouble &right) |
PDouble & | woss::operator%= (PDouble &left, const PDouble &right) |
bool | woss::operator== (const PDouble &left, const PDouble &right) |
bool | woss::operator!= (const PDouble &left, const PDouble &right) |
bool | woss::operator> (const PDouble &left, const PDouble &right) |
bool | woss::operator< (const PDouble &left, const PDouble &right) |
bool | woss::operator>= (const PDouble &left, const PDouble &right) |
bool | woss::operator<= (const PDouble &left, const PDouble &right) |
inline ::std::ostream & | woss::operator<< (::std::ostream &os, const PDouble &instance) |
inline ::std::istream & | woss::operator>> (::std::istream &is, PDouble &instance) |
Provides the interface for the woss::PDouble class.
Provides the interface for the PDouble class. PDouble stands for PrecisionDouble: the value and the precision provided are used for arithmetic computations and comparisons. This class is not intented for inheritance: all containers used in WOSS are based on PDouble objects, not pointers to objects. Therefore, inheritance requires modification in other classes, to prevent object slicing when inserting in containers PDouble-derived objects instead of PDouble objects. Moreover, due to intensive use of PDouble objects, using heap-based pointers adds another layer of indirection, therefore adding an efficiency penalty.
Inequality operator
left | left operand const reference |
right | right operand const reference |
Modulo operator
left | left operand const reference |
right | right operand const reference |
Compound assignment modulo operator
left | left operand reference |
right | right operand const reference |
Multiplication operator
left | left operand const reference |
right | right operand const reference |
Compound assignment multiplication operator
left | left operand reference |
right | right operand const reference |
Sum operator
left | left operand const reference |
right | right operand const reference |
Compound assignment sum operator
left | left operand reference |
right | right operand const reference |
Subtraction operator
left | left operand const reference |
right | right operand const reference |
Compound assignment subtraction operator
left | left operand reference |
right | right operand const reference |
Division operator
left | left operand const reference |
right | right operand const reference |
Compound assignment division operator
left | left operand reference |
right | right operand const reference |
Less than operator
left | left operand const reference |
right | right operand const reference |
Less than or equal to operator
left | left operand const reference |
right | right operand const reference |
Equality operator
left | left operand const reference |
right | right operand const reference |
Greater than operator
left | left operand const reference |
right | right operand const reference |