Vcsn  2.2a
Be Rational
vcsn::detail::q_impl::value_t Struct Reference

#include <q.hh>

Collaboration diagram for vcsn::detail::q_impl::value_t:

Public Member Functions

 value_t (int n=0, unsigned d=1)
value_treduce ()
 Put it in normal form. More...

Public Attributes

int num
unsigned int den

Detailed Description

Definition at line 41 of file q.hh.

Constructor & Destructor Documentation

vcsn::detail::q_impl::value_t::value_t ( int  n = 0,
unsigned  d = 1 

Definition at line 43 of file q.hh.

Member Function Documentation

value_t& vcsn::detail::q_impl::value_t::reduce ( )

Put it in normal form.

Definition at line 49 of file q.hh.

References vcsn::detail::q_impl::abs(), den, vcsn::detail::gcd(), and num.

Referenced by vcsn::detail::q_impl::conv().

Here is the call graph for this function:

Member Data Documentation

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