|
ad_physics
|
#include <ad/physics/Duration.hpp>
Public Member Functions | |
| Duration () | |
| default constructor More... | |
| _AD_PHYSICS_DURATION_EXPLICIT_CONVERSION_ | Duration (double const iDuration) |
| standard constructor More... | |
| Duration (const Duration &other)=default | |
| standard copy constructor | |
| Duration (Duration &&other)=default | |
| standard move constructor | |
| Duration & | operator= (const Duration &other)=default |
| standard assignment operator More... | |
| Duration & | operator= (Duration &&other)=default |
| standard move operator More... | |
| bool | operator== (const Duration &other) const |
| standard comparison operator More... | |
| bool | operator!= (const Duration &other) const |
| standard comparison operator More... | |
| bool | operator> (const Duration &other) const |
| standard comparison operator More... | |
| bool | operator< (const Duration &other) const |
| standard comparison operator More... | |
| bool | operator>= (const Duration &other) const |
| standard comparison operator More... | |
| bool | operator<= (const Duration &other) const |
| standard comparison operator More... | |
| Duration | operator+ (const Duration &other) const |
| standard arithmetic operator More... | |
| Duration & | operator+= (const Duration &other) |
| standard arithmetic operator More... | |
| Duration | operator- (const Duration &other) const |
| standard arithmetic operator More... | |
| Duration | operator-= (const Duration &other) |
| standard arithmetic operator More... | |
| DurationSquared | operator* (const Duration &other) const |
| standard arithmetic operator More... | |
| Duration | operator* (const double &scalar) const |
| standard arithmetic operator More... | |
| Duration | operator/ (const double &scalar) const |
| standard arithmetic operator More... | |
| double | operator/ (const Duration &other) const |
| standard arithmetic operator More... | |
| Duration | operator- () const |
| standard arithmetic operator More... | |
| _AD_PHYSICS_DURATION_EXPLICIT_CONVERSION_ | operator double () const |
| conversion to base type: double More... | |
| bool | isValid () const |
| void | ensureValid () const |
| ensure that the Duration is valid More... | |
| void | ensureValidNonZero () const |
| ensure that the Duration is valid and non zero More... | |
Static Public Member Functions | |
| static Duration | getMin () |
| get minimum valid Duration (i.e. cMinValue) | |
| static Duration | getMax () |
| get maximum valid Duration (i.e. cMaxValue) | |
| static Duration | getPrecision () |
| get assumed accuracy of Duration (i.e. cPrecisionValue) | |
Static Public Attributes | |
| static const double | cMinValue |
| constant defining the minimum valid Duration value (used in isValid()) | |
| static const double | cMaxValue |
| constant defining the maximum valid Duration value (used in isValid()) | |
| static const double | cPrecisionValue |
| constant defining the assumed Duration value accuracy (used in comparison operator==(), operator!=()) | |
DataType Duration.
A duration represents a time interval. The unit is: Second
|
inline |
default constructor
The default value of Duration is: std::numeric_limits<double>::quiet_NaN()
|
inline |
standard constructor
|
inline |
|
inline |
|
inline |
|
inline |
conversion to base type: double
|
inline |
|
inline |
standard arithmetic operator
| [in] | scalar | Scalar double value |
value or the result of the operation is not valid | DurationSquared ad::physics::Duration::operator* | ( | const Duration & | other | ) | const |
standard arithmetic operator
| [in] | other | Other Duration |
standard arithmetic operator
| [in] | other | Other Duration |
standard arithmetic operator
| [in] | other | Other Duration |
|
inline |
standard arithmetic operator
standard arithmetic operator
| [in] | other | Other Duration |
standard arithmetic operator
| [in] | other | Other Duration |
|
inline |
standard arithmetic operator
| [in] | scalar | Scalar double value |
|
inline |
standard arithmetic operator
| [in] | other | Other Duration |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
1.8.17