Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 44 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 46 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 52 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: