Ardour  9.0-pre0-582-g084a23a80d
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 69 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 73 of file temporal/temporal/types.h.

◆ _ratio_t() [2/2]

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

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

Member Function Documentation

◆ denominator()

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

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

◆ is_unity()

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

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

◆ is_zero()

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

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

◆ numerator()

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

Definition at line 76 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 88 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 84 of file temporal/temporal/types.h.

◆ to_double()

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

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

Member Data Documentation

◆ _denominator

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

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

◆ _numerator

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

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


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