Awali Another Weighted Automata library
awali::q_fraction_t Class Reference

`#include <qfraction.hh>`

## Public Types

using den_t = unsigned int

using num_t = int

## Public Member Functions

q_fraction_t ()

q_fraction_t (long n, long d)

q_fraction_t (num_t n, den_t d=1u)

bool operator!= (const q_fraction_t &w) const

q_fraction_t operator* (q_fraction_t const &) const

q_fraction_t operator+ (q_fraction_t const &) const

q_fraction_t operator- (q_fraction_t const &) const

q_fraction_t operator/ (q_fraction_t const &) const

bool operator< (const q_fraction_t &w) const

bool operator== (const q_fraction_t &w) const

q_fraction_treduce ()

den_t den

num_t num

## ◆ den_t

 using awali::q_fraction_t::den_t = unsigned int

## ◆ num_t

 using awali::q_fraction_t::num_t = int

## ◆ q_fraction_t() [1/3]

 awali::q_fraction_t::q_fraction_t ( )

## ◆ q_fraction_t() [2/3]

 awali::q_fraction_t::q_fraction_t ( num_t n, den_t d = `1u` )

## ◆ q_fraction_t() [3/3]

 awali::q_fraction_t::q_fraction_t ( long n, long d )

## ◆ operator!=()

 bool awali::q_fraction_t::operator!= ( const q_fraction_t & w ) const

## ◆ operator*()

 q_fraction_t awali::q_fraction_t::operator* ( q_fraction_t const & ) const

## ◆ operator+()

 q_fraction_t awali::q_fraction_t::operator+ ( q_fraction_t const & ) const

## ◆ operator-()

 q_fraction_t awali::q_fraction_t::operator- ( q_fraction_t const & ) const

## ◆ operator/()

 q_fraction_t awali::q_fraction_t::operator/ ( q_fraction_t const & ) const

## ◆ operator<()

 bool awali::q_fraction_t::operator< ( const q_fraction_t & w ) const

## ◆ operator==()

 bool awali::q_fraction_t::operator== ( const q_fraction_t & w ) const

## ◆ reduce()

 q_fraction_t& awali::q_fraction_t::reduce ( )

## ◆ den

 den_t awali::q_fraction_t::den

## ◆ num

 num_t awali::q_fraction_t::num

The documentation for this class was generated from the following file:
• /home/marsault/git-client/telecom/awali.git/awali/common/qfraction.hh