OSSIA
Open Scenario System for Interactive Application
|
The time_value class. More...
The time_value class.
Represents an amount of time. The unit is context-dependent.
Public Member Functions | |
constexpr time_value & | operator= (bool d) noexcept=delete |
constexpr time_value & | operator= (double d) noexcept=delete |
constexpr time_value & | operator= (float d) noexcept=delete |
constexpr time_value & | operator= (uint64_t d) noexcept=delete |
constexpr time_value & | operator= (int64_t d) noexcept |
constexpr time_value & | operator+= (double d) noexcept=delete |
self addition operator | |
constexpr time_value & | operator+= (float d) noexcept=delete |
constexpr time_value & | operator+= (int64_t d) noexcept |
constexpr time_value & | operator+= (ossia::time_value t) noexcept |
constexpr time_value & | operator-= (double d) noexcept=delete |
self substraction operator | |
constexpr time_value & | operator-= (int64_t d) noexcept |
constexpr time_value & | operator-= (ossia::time_value t) noexcept |
constexpr time_value & | operator- () noexcept |
time_value | operator+ (double d) const noexcept |
addition operator | |
constexpr time_value | operator+ (int64_t d) const noexcept |
constexpr time_value | operator+ (uint64_t d) const noexcept |
constexpr time_value | operator- (int64_t d) const noexcept |
constexpr time_value | operator- (uint64_t d) const noexcept |
constexpr time_value | operator+ (ossia::time_value t) const noexcept |
time_value | operator- (double d) const noexcept |
substraction operator | |
constexpr time_value | operator- (ossia::time_value t) const noexcept |
constexpr time_value | operator* (float d) const noexcept |
multiplication operator | |
constexpr time_value | operator* (double d) const noexcept |
constexpr time_value | operator* (int32_t d) const noexcept |
constexpr time_value | operator* (int64_t d) const noexcept |
constexpr time_value | operator* (uint32_t d) const noexcept |
constexpr time_value | operator* (uint64_t d) const noexcept |
constexpr bool | infinite () const noexcept |
is the time value infinite ? More... | |
constexpr time_value | operator% (time_value d) const noexcept |
constexpr bool | operator== (ossia::time_value rhs) const noexcept |
constexpr bool | operator!= (ossia::time_value rhs) const noexcept |
constexpr bool | operator< (ossia::time_value rhs) const noexcept |
constexpr bool | operator> (ossia::time_value rhs) const noexcept |
constexpr bool | operator<= (ossia::time_value rhs) const noexcept |
constexpr bool | operator>= (ossia::time_value rhs) const noexcept |
Static Public Member Functions | |
static constexpr bool | add_is_infinite (const ossia::time_value &lhs, const ossia::time_value &rhs) noexcept |
static constexpr bool | sub_is_infinite (const ossia::time_value &lhs, const ossia::time_value &rhs) noexcept |
Public Attributes | |
int64_t | impl |
Static Public Attributes | |
static constexpr const int64_t | infinite_min = std::numeric_limits<int64_t>::max() / 8 |
static constexpr const int64_t | infinity = std::numeric_limits<int64_t>::max() / 2 |
|
inlineconstexprnoexcept |
is the time value infinite ?