All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SdfTimeCode Class Reference

Value type that represents a time code. More...

Public Member Functions

Constructors
constexpr SdfTimeCode (double time=0.0) noexcept
 Construct a time code with the given time. More...
 
Accessors
constexpr double GetValue () const noexcept
 Return the time value. More...
 

Friends

void swap (SdfTimeCode &lhs, SdfTimeCode &rhs)
 

Operators

constexpr bool operator== (const SdfTimeCode &rhs) const noexcept
 
constexpr bool operator!= (const SdfTimeCode &rhs) const noexcept
 
constexpr bool operator< (const SdfTimeCode &rhs) const noexcept
 
constexpr bool operator> (const SdfTimeCode &rhs) const noexcept
 
constexpr bool operator<= (const SdfTimeCode &rhs) const noexcept
 
constexpr bool operator>= (const SdfTimeCode &rhs) const noexcept
 
constexpr SdfTimeCode operator* (const SdfTimeCode &rhs) const noexcept
 
constexpr SdfTimeCode operator/ (const SdfTimeCode &rhs) const noexcept
 
constexpr SdfTimeCode operator+ (const SdfTimeCode &rhs) const noexcept
 
constexpr SdfTimeCode operator- (const SdfTimeCode &rhs) const noexcept
 
constexpr operator double () const noexcept
 Explicit conversion to double. More...
 
size_t GetHash () const
 Hash function. More...
 
size_t hash_value (const SdfTimeCode &ap)
 

Detailed Description

Value type that represents a time code.

It's equivalent to a double type value but is used to indicate that this value should be resolved by any time based value resolution.

Definition at line 44 of file timeCode.h.

Constructor & Destructor Documentation

constexpr SdfTimeCode ( double  time = 0.0)
inlinenoexcept

Construct a time code with the given time.

A default constructed SdfTimeCode has a time of 0.0. A double value can implicitly cast to SdfTimeCode.

Definition at line 54 of file timeCode.h.

Member Function Documentation

size_t GetHash ( ) const
inline

Hash function.

Definition at line 87 of file timeCode.h.

constexpr double GetValue ( ) const
inlinenoexcept

Return the time value.

Definition at line 107 of file timeCode.h.

constexpr operator double ( ) const
inlineexplicitnoexcept

Explicit conversion to double.

Definition at line 84 of file timeCode.h.


The documentation for this class was generated from the following file: