Ardour  8.7-14-g57a6773833
Temporal::_ratio_t< T > Class Template Reference

#include <types.h>

Public Member Functions

 _ratio_t (T n, T d)
 
 _ratio_t (T n)
 
numerator () const
 
denominator () const
 
bool is_unity () const
 
bool is_zero () const
 
double to_double () const
 
bool operator== (_ratio_t< T > const &other) const
 
bool operator!= (_ratio_t< T > const &other) const
 

Private Attributes

_numerator
 
_denominator
 

Detailed Description

template<class T>
class Temporal::_ratio_t< T >

Definition at line 68 of file temporal/temporal/types.h.

Constructor & Destructor Documentation

◆ _ratio_t() [1/2]

template<class T >
Temporal::_ratio_t< T >::_ratio_t ( n,
d 
)
inline

Definition at line 72 of file temporal/temporal/types.h.

◆ _ratio_t() [2/2]

template<class T >
Temporal::_ratio_t< T >::_ratio_t ( n)
inline

Definition at line 73 of file temporal/temporal/types.h.

Member Function Documentation

◆ denominator()

template<class T >
T Temporal::_ratio_t< T >::denominator ( ) const
inline

Definition at line 76 of file temporal/temporal/types.h.

◆ is_unity()

template<class T >
bool Temporal::_ratio_t< T >::is_unity ( ) const
inline

Definition at line 78 of file temporal/temporal/types.h.

◆ is_zero()

template<class T >
bool Temporal::_ratio_t< T >::is_zero ( ) const
inline

Definition at line 79 of file temporal/temporal/types.h.

◆ numerator()

template<class T >
T Temporal::_ratio_t< T >::numerator ( ) const
inline

Definition at line 75 of file temporal/temporal/types.h.

◆ operator!=()

template<class T >
bool Temporal::_ratio_t< T >::operator!= ( _ratio_t< T > const &  other) const
inline

Definition at line 87 of file temporal/temporal/types.h.

◆ operator==()

template<class T >
bool Temporal::_ratio_t< T >::operator== ( _ratio_t< T > const &  other) const
inline

Definition at line 83 of file temporal/temporal/types.h.

◆ to_double()

template<class T >
double Temporal::_ratio_t< T >::to_double ( ) const
inline

Definition at line 81 of file temporal/temporal/types.h.

Member Data Documentation

◆ _denominator

template<class T >
T Temporal::_ratio_t< T >::_denominator
private

Definition at line 93 of file temporal/temporal/types.h.

◆ _numerator

template<class T >
T Temporal::_ratio_t< T >::_numerator
private

Definition at line 92 of file temporal/temporal/types.h.


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