Vcsn  2.4
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 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 
)
inline

Definition at line 43 of file q.hh.

Member Function Documentation

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

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(), and vcsn::detail::q_impl::value().

Here is the call graph for this function:

Member Data Documentation


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