LibreOffice Module tools (master) 1
Classes | Functions
fract.hxx File Reference
#include <sal/types.h>
#include <tools/toolsdllapi.h>
#include <tools/long.hxx>
#include <ostream>
#include <type_traits>
Include dependency graph for fract.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Fraction
 

Functions

TOOLS_DLLPUBLIC Fraction operator+ (const Fraction &rVal1, const Fraction &rVal2)
 
TOOLS_DLLPUBLIC Fraction operator- (const Fraction &rVal1, const Fraction &rVal2)
 
TOOLS_DLLPUBLIC Fraction operator* (const Fraction &rVal1, const Fraction &rVal2)
 
TOOLS_DLLPUBLIC Fraction operator/ (const Fraction &rVal1, const Fraction &rVal2)
 
TOOLS_DLLPUBLIC bool operator!= (const Fraction &rVal1, const Fraction &rVal2)
 
TOOLS_DLLPUBLIC bool operator<= (const Fraction &rVal1, const Fraction &rVal2)
 
TOOLS_DLLPUBLIC bool operator>= (const Fraction &rVal1, const Fraction &rVal2)
 
Fraction operator+ (double v1, const Fraction &rVal2)
 
Fraction operator- (double v1, const Fraction &rVal2)
 
Fraction operator* (double v1, const Fraction &rVal2)
 
Fraction operator/ (double v1, const Fraction &rVal2)
 
Fraction operator+ (const Fraction &rVal1, double v2)
 
Fraction operator- (const Fraction &rVal1, double v2)
 
Fraction operator* (const Fraction &rVal1, double v2)
 
Fraction operator/ (const Fraction &rVal1, double v2)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &rStream, const Fraction &rFraction)
 

Function Documentation

◆ operator!=()

TOOLS_DLLPUBLIC bool operator!= ( const Fraction rVal1,
const Fraction rVal2 
)

Definition at line 87 of file fract.cxx.

References SAL_WARN.

◆ operator*() [1/3]

TOOLS_DLLPUBLIC Fraction operator* ( const Fraction rVal1,
const Fraction rVal2 
)

Definition at line 83 of file fract.cxx.

◆ operator*() [2/3]

Fraction operator* ( const Fraction rVal1,
double  v2 
)
inline

Definition at line 109 of file fract.hxx.

◆ operator*() [3/3]

Fraction operator* ( double  v1,
const Fraction rVal2 
)
inline

Definition at line 104 of file fract.hxx.

◆ operator+() [1/3]

TOOLS_DLLPUBLIC Fraction operator+ ( const Fraction rVal1,
const Fraction rVal2 
)

Definition at line 81 of file fract.cxx.

References SAL_WARN.

◆ operator+() [2/3]

Fraction operator+ ( const Fraction rVal1,
double  v2 
)
inline

Definition at line 107 of file fract.hxx.

◆ operator+() [3/3]

Fraction operator+ ( double  v1,
const Fraction rVal2 
)
inline

Definition at line 102 of file fract.hxx.

◆ operator-() [1/3]

TOOLS_DLLPUBLIC Fraction operator- ( const Fraction rVal1,
const Fraction rVal2 
)

Definition at line 82 of file fract.cxx.

◆ operator-() [2/3]

Fraction operator- ( const Fraction rVal1,
double  v2 
)
inline

Definition at line 108 of file fract.hxx.

◆ operator-() [3/3]

Fraction operator- ( double  v1,
const Fraction rVal2 
)
inline

Definition at line 103 of file fract.hxx.

◆ operator/() [1/3]

TOOLS_DLLPUBLIC Fraction operator/ ( const Fraction rVal1,
const Fraction rVal2 
)

Definition at line 84 of file fract.cxx.

◆ operator/() [2/3]

Fraction operator/ ( const Fraction rVal1,
double  v2 
)
inline

Definition at line 110 of file fract.hxx.

◆ operator/() [3/3]

Fraction operator/ ( double  v1,
const Fraction rVal2 
)
inline

Definition at line 105 of file fract.hxx.

◆ operator<<()

template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< ( std::basic_ostream< charT, traits > &  rStream,
const Fraction rFraction 
)
inline

Definition at line 110 of file fract.hxx.

◆ operator<=()

TOOLS_DLLPUBLIC bool operator<= ( const Fraction rVal1,
const Fraction rVal2 
)

Definition at line 90 of file fract.cxx.

◆ operator>=()

TOOLS_DLLPUBLIC bool operator>= ( const Fraction rVal1,
const Fraction rVal2 
)

Definition at line 91 of file fract.cxx.