Another Weighted Automata library
Public Member Functions | Data Fields
awali::q_fraction_t Struct Reference

#include <qfraction.hh>

Public Member Functions

 q_fraction_t (int n, int d)
 q_fraction_t (int n=0, unsigned d=1)
bool operator< (const q_fraction_t &w) const
bool operator== (const q_fraction_t &w) const
q_fraction_treduce ()

Data Fields

unsigned int den
int num

Constructor & Destructor Documentation

◆ q_fraction_t() [1/2]

awali::q_fraction_t::q_fraction_t ( int  n = 0,
unsigned  d = 1 

◆ q_fraction_t() [2/2]

awali::q_fraction_t::q_fraction_t ( int  n,
int  d 

Member Function Documentation

◆ 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 ( )

Field Documentation

◆ den

unsigned int awali::q_fraction_t::den

◆ num

int awali::q_fraction_t::num

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