#include <fraction.h>
◆ Fraction() [1/2]
constexpr Ms::Fraction::Fraction |
( |
| ) |
|
|
inline |
◆ Fraction() [2/2]
constexpr Ms::Fraction::Fraction |
( |
int |
z, |
|
|
int |
n |
|
) |
| |
|
inline |
◆ absValue()
Fraction Ms::Fraction::absValue |
( |
| ) |
const |
|
inline |
◆ denominator()
int Ms::Fraction::denominator |
( |
| ) |
const |
|
inline |
◆ eps()
A very small fraction, corresponds to 1 MIDI tick.
◆ fromString()
static Fraction Ms::Fraction::fromString |
( |
const QString & |
str | ) |
|
|
inlinestatic |
◆ fromTicks()
static Fraction Ms::Fraction::fromTicks |
( |
int |
ticks | ) |
|
|
inlinestatic |
◆ identical()
bool Ms::Fraction::identical |
( |
const Fraction & |
v | ) |
const |
|
inline |
◆ isNotZero()
bool Ms::Fraction::isNotZero |
( |
| ) |
const |
|
inline |
◆ isValid()
bool Ms::Fraction::isValid |
( |
| ) |
const |
|
inline |
◆ isZero()
bool Ms::Fraction::isZero |
( |
| ) |
const |
|
inline |
◆ numerator()
int Ms::Fraction::numerator |
( |
| ) |
const |
|
inline |
◆ operator QVariant()
Ms::Fraction::operator QVariant |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool Ms::Fraction::operator!= |
( |
const Fraction & |
val | ) |
const |
|
inline |
◆ operator*()
◆ operator*=() [1/2]
◆ operator*=() [2/2]
Fraction& Ms::Fraction::operator*= |
( |
int |
val | ) |
|
|
inline |
◆ operator+()
◆ operator+=()
◆ operator-() [1/2]
◆ operator-() [2/2]
Fraction Ms::Fraction::operator- |
( |
| ) |
const |
|
inline |
◆ operator-=()
◆ operator/()
◆ operator/=()
◆ operator<()
bool Ms::Fraction::operator< |
( |
const Fraction & |
val | ) |
const |
|
inline |
◆ operator<=()
bool Ms::Fraction::operator<= |
( |
const Fraction & |
val | ) |
const |
|
inline |
◆ operator==()
bool Ms::Fraction::operator== |
( |
const Fraction & |
val | ) |
const |
|
inline |
◆ operator>()
bool Ms::Fraction::operator> |
( |
const Fraction & |
val | ) |
const |
|
inline |
◆ operator>=()
bool Ms::Fraction::operator>= |
( |
const Fraction & |
val | ) |
const |
|
inline |
◆ print()
QString Ms::Fraction::print |
( |
| ) |
const |
|
inline |
◆ rdenominator()
int_least64_t& Ms::Fraction::rdenominator |
( |
| ) |
|
|
inline |
◆ reduce()
void Ms::Fraction::reduce |
( |
| ) |
|
|
inline |
◆ reduced()
Fraction Ms::Fraction::reduced |
( |
| ) |
const |
|
inline |
◆ rnumerator()
int_least64_t& Ms::Fraction::rnumerator |
( |
| ) |
|
|
inline |
◆ set()
void Ms::Fraction::set |
( |
int |
z, |
|
|
int |
n |
|
) |
| |
|
inline |
◆ setDenominator()
void Ms::Fraction::setDenominator |
( |
int |
v | ) |
|
|
inline |
◆ setNumerator()
void Ms::Fraction::setNumerator |
( |
int |
v | ) |
|
|
inline |
◆ ticks()
int Ms::Fraction::ticks |
( |
| ) |
const |
|
inline |
◆ toString()
QString Ms::Fraction::toString |
( |
| ) |
const |
|
inline |
◆ _denominator
int_least64_t Ms::Fraction::_denominator { 1 } |
|
private |
◆ _numerator
int_least64_t Ms::Fraction::_numerator { 0 } |
|
private |
The documentation for this class was generated from the following file: