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

#include <timeCode.h>

Classes

class  Hash
 

Public Member Functions

Constructors
constexpr SdfTimeCode (double time=0.0) noexcept
 
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
 Explicit conversion to double. More...
 
constexpr bool operator!= (const SdfTimeCode &rhs) const noexcept
 Explicit conversion to double. More...
 
constexpr bool operator< (const SdfTimeCode &rhs) const noexcept
 Explicit conversion to double. More...
 
constexpr bool operator> (const SdfTimeCode &rhs) const noexcept
 Explicit conversion to double. More...
 
constexpr bool operator<= (const SdfTimeCode &rhs) const noexcept
 Explicit conversion to double. More...
 
constexpr bool operator>= (const SdfTimeCode &rhs) const noexcept
 Explicit conversion to double. More...
 
constexpr SdfTimeCode operator* (const SdfTimeCode &rhs) const noexcept
 Explicit conversion to double. More...
 
constexpr SdfTimeCode operator/ (const SdfTimeCode &rhs) const noexcept
 Explicit conversion to double. More...
 
constexpr SdfTimeCode operator+ (const SdfTimeCode &rhs) const noexcept
 Explicit conversion to double. More...
 
constexpr SdfTimeCode operator- (const SdfTimeCode &rhs) const noexcept
 Explicit conversion to double. More...
 
constexpr operator double () const noexcept
 Explicit conversion to double. More...
 
size_t GetHash () const
 Hash function. More...
 
size_t hash_value (const SdfTimeCode &ap)
 Explicit conversion to double. More...
 

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::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 SdfTimeCode::GetHash ( ) const
inline

Hash function.

Definition at line 87 of file timeCode.h.

constexpr double SdfTimeCode::GetValue ( ) const
inlinenoexcept

Return the time value.

Definition at line 107 of file timeCode.h.

constexpr SdfTimeCode::operator double ( ) const
inlineexplicitnoexcept

Explicit conversion to double.

Definition at line 84 of file timeCode.h.

constexpr bool SdfTimeCode::operator!= ( const SdfTimeCode rhs) const
inlinenoexcept

Explicit conversion to double.

Definition at line 63 of file timeCode.h.

constexpr SdfTimeCode SdfTimeCode::operator* ( const SdfTimeCode rhs) const
inlinenoexcept

Explicit conversion to double.

Definition at line 74 of file timeCode.h.

constexpr SdfTimeCode SdfTimeCode::operator+ ( const SdfTimeCode rhs) const
inlinenoexcept

Explicit conversion to double.

Definition at line 78 of file timeCode.h.

constexpr SdfTimeCode SdfTimeCode::operator- ( const SdfTimeCode rhs) const
inlinenoexcept

Explicit conversion to double.

Definition at line 80 of file timeCode.h.

constexpr SdfTimeCode SdfTimeCode::operator/ ( const SdfTimeCode rhs) const
inlinenoexcept

Explicit conversion to double.

Definition at line 76 of file timeCode.h.

constexpr bool SdfTimeCode::operator< ( const SdfTimeCode rhs) const
inlinenoexcept

Explicit conversion to double.

Definition at line 65 of file timeCode.h.

constexpr bool SdfTimeCode::operator<= ( const SdfTimeCode rhs) const
inlinenoexcept

Explicit conversion to double.

Definition at line 69 of file timeCode.h.

constexpr bool SdfTimeCode::operator== ( const SdfTimeCode rhs) const
inlinenoexcept

Explicit conversion to double.

Definition at line 61 of file timeCode.h.

constexpr bool SdfTimeCode::operator> ( const SdfTimeCode rhs) const
inlinenoexcept

Explicit conversion to double.

Definition at line 67 of file timeCode.h.

constexpr bool SdfTimeCode::operator>= ( const SdfTimeCode rhs) const
inlinenoexcept

Explicit conversion to double.

Definition at line 71 of file timeCode.h.

Friends And Related Function Documentation

size_t hash_value ( const SdfTimeCode ap)
friend

Explicit conversion to double.

Definition at line 99 of file timeCode.h.

void swap ( SdfTimeCode lhs,
SdfTimeCode rhs 
)
friend

Definition at line 114 of file timeCode.h.


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