ad_physics
|
DataType DurationSquared. More...
#include <ad/physics/DurationSquared.hpp>
Public Member Functions | |
DurationSquared () | |
default constructor More... | |
_AD_PHYSICS_DURATIONSQUARED_EXPLICIT_CONVERSION_ | DurationSquared (double const iDurationSquared) |
standard constructor More... | |
DurationSquared (const DurationSquared &other)=default | |
standard copy constructor | |
DurationSquared (DurationSquared &&other)=default | |
standard move constructor | |
DurationSquared & | operator= (const DurationSquared &other)=default |
standard assignment operator More... | |
DurationSquared & | operator= (DurationSquared &&other)=default |
standard move operator More... | |
bool | operator== (const DurationSquared &other) const |
standard comparison operator More... | |
bool | operator!= (const DurationSquared &other) const |
standard comparison operator More... | |
bool | operator> (const DurationSquared &other) const |
standard comparison operator More... | |
bool | operator< (const DurationSquared &other) const |
standard comparison operator More... | |
bool | operator>= (const DurationSquared &other) const |
standard comparison operator More... | |
bool | operator<= (const DurationSquared &other) const |
standard comparison operator More... | |
DurationSquared | operator+ (const DurationSquared &other) const |
standard arithmetic operator More... | |
DurationSquared & | operator+= (const DurationSquared &other) |
standard arithmetic operator More... | |
DurationSquared | operator- (const DurationSquared &other) const |
standard arithmetic operator More... | |
DurationSquared | operator-= (const DurationSquared &other) |
standard arithmetic operator More... | |
DurationSquared | operator* (const double &scalar) const |
standard arithmetic operator More... | |
DurationSquared | operator/ (const double &scalar) const |
standard arithmetic operator More... | |
double | operator/ (const DurationSquared &other) const |
standard arithmetic operator More... | |
DurationSquared | operator- () const |
standard arithmetic operator More... | |
_AD_PHYSICS_DURATIONSQUARED_EXPLICIT_CONVERSION_ | operator double () const |
conversion to base type: double More... | |
bool | isValid () const |
void | ensureValid () const |
ensure that the DurationSquared is valid More... | |
void | ensureValidNonZero () const |
ensure that the DurationSquared is valid and non zero More... | |
Static Public Member Functions | |
static DurationSquared | getMin () |
get minimum valid DurationSquared (i.e. cMinValue) | |
static DurationSquared | getMax () |
get maximum valid DurationSquared (i.e. cMaxValue) | |
static DurationSquared | getPrecision () |
get assumed accuracy of DurationSquared (i.e. cPrecisionValue) | |
Static Public Attributes | |
static const double | cMinValue |
constant defining the minimum valid DurationSquared value (used in isValid()) | |
static const double | cMaxValue |
constant defining the maximum valid DurationSquared value (used in isValid()) | |
static const double | cPrecisionValue |
constant defining the assumed DurationSquared value accuracy (used in comparison operator==(), operator!=()) | |
DataType DurationSquared.
DurationSquared represents a squared Duration The unit is: SecondSquared
|
inline |
default constructor
The default value of DurationSquared is: std::numeric_limits<double>::quiet_NaN()
|
inline |
standard constructor
|
inline |
ensure that the DurationSquared is valid
Throws an std::out_of_range() exception if the DurationSquared in not valid (i.e. isValid() returns false)
|
inline |
ensure that the DurationSquared is valid and non zero
Throws an std::out_of_range() exception if the DurationSquared in not valid or zero (i.e. isValid() returns false)
|
inline |
true
if the DurationSquared in a valid rangeAn DurationSquared value is defined to be valid if:
|
inline |
conversion to base type: double
|
inline |
standard comparison operator
[in] | other | Other DurationSquared. |
true
if one of the DurationSquared is not valid or they can be taken as numerically different
|
inline |
standard arithmetic operator
[in] | scalar | Scalar double value |
value
or the result of the operation is not valid
|
inline |
standard arithmetic operator
[in] | other | Other DurationSquared |
|
inline |
standard arithmetic operator
[in] | other | Other DurationSquared |
|
inline |
standard arithmetic operator
|
inline |
standard arithmetic operator
[in] | other | Other DurationSquared |
|
inline |
standard arithmetic operator
[in] | other | Other DurationSquared |
|
inline |
standard arithmetic operator
[in] | scalar | Scalar double value |
|
inline |
standard arithmetic operator
[in] | other | Other DurationSquared |
|
inline |
standard comparison operator
[in] | other | Other DurationSquared. |
true
if both DurationSquared are valid and this DurationSquared is strictly numerically smaller than other.
|
inline |
standard comparison operator
[in] | other | Other DurationSquared |
true
if both DurationSquared are valid and this DurationSquared is numerically smaller than other.
|
default |
standard assignment operator
[in] | other | Other DurationSquared |
|
default |
standard move operator
[in] | other | Other DurationSquared |
|
inline |
standard comparison operator
[in] | other | Other DurationSquared |
true
if both DurationSquared are valid and can be taken as numerically equal
|
inline |
standard comparison operator
[in] | other | Other DurationSquared. |
true
if both DurationSquared are valid and this DurationSquared is strictly numerically greater than other.
|
inline |
standard comparison operator
[in] | other | Other DurationSquared. |
true
if both DurationSquared are valid and this DurationSquared is numerically greater than other.