CVB++ 15.0
Rational Class Referencefinal

A pair of rational numbers. More...

#include <cvb/codec_bridge/codec_bridge.hpp>

Public Member Functions

bool operator== (const Rational &other) const noexcept
 Compares to an other rational. More...
 
bool operator!= (const Rational &other) const noexcept
 Compares to an other rational. More...
 

Detailed Description

A pair of rational numbers.

A rational may be interpreted as fraction. Therefore the Denominator defaults to 1.

Member Function Documentation

◆ operator!=()

bool operator!= ( const Rational other) const
inlinenoexcept

Compares to an other rational.

Parameters
[in]otherOther rational.
Returns
True if not equal, otherwise false.
Exceptions
Doesnot throw any exception.

◆ operator==()

bool operator== ( const Rational other) const
inlinenoexcept

Compares to an other rational.

Parameters
[in]otherOther rational.
Returns
True if equal, otherwise false.
Exceptions
Doesnot throw any exception.