OSSIA
Open Scenario System for Interactive Application
ossia::time_value Struct Reference

The time_value class. More...

Detailed Description

The time_value class.

Represents an amount of time. The unit is context-dependent.

Public Member Functions

constexpr time_valueoperator= (bool d) noexcept=delete
 
constexpr time_valueoperator= (double d) noexcept=delete
 
constexpr time_valueoperator= (float d) noexcept=delete
 
constexpr time_valueoperator= (uint64_t d) noexcept=delete
 
constexpr time_valueoperator= (int64_t d) noexcept
 
constexpr time_valueoperator+= (double d) noexcept=delete
 self addition operator
 
constexpr time_valueoperator+= (float d) noexcept=delete
 
constexpr time_valueoperator+= (int64_t d) noexcept
 
constexpr time_valueoperator+= (ossia::time_value t) noexcept
 
constexpr time_valueoperator-= (double d) noexcept=delete
 self substraction operator
 
constexpr time_valueoperator-= (int64_t d) noexcept
 
constexpr time_valueoperator-= (ossia::time_value t) noexcept
 
constexpr time_valueoperator- () 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
 

Member Function Documentation

◆ infinite()

constexpr bool ossia::time_value::infinite ( ) const
inlineconstexprnoexcept

is the time value infinite ?

Returns
bool infinite