Vcsn
2.0
Be Rational
|
#include <q.hh>
Classes | |
struct | value_t |
Public Types | |
using | self_type = q |
Public Member Functions | |
std::string | vname (bool=true) const |
value_t | star (const value_t v) const |
std::ostream & | print_set (std::ostream &o, symbol format=symbol{"text"}) const |
Static Public Member Functions | |
static std::string | sname () |
static q | make (std::istream &is) |
Build from the description in is. More... | |
static unsigned int | abs (int a) |
static value_t | zero () |
static value_t | one () |
static value_t | add (const value_t l, const value_t r) |
static value_t | sub (const value_t l, const value_t r) |
static value_t | mul (const value_t l, const value_t r) |
static value_t | rdiv (const value_t l, const value_t r) |
static value_t | ldiv (const value_t l, const value_t r) |
static bool | is_special (const value_t) |
static bool | is_zero (const value_t v) |
static bool | is_one (const value_t v) |
static bool | equals (const value_t l, const value_t r) |
static bool | less_than (value_t lhs, value_t rhs) |
Whether lhs < rhs. More... | |
static constexpr bool | is_commutative () |
static constexpr bool | show_one () |
static constexpr star_status_t | star_status () |
static value_t | abs (const value_t v) |
static value_t | transpose (const value_t v) |
static size_t | hash (value_t v) |
static value_t | conv (self_type, value_t v) |
static value_t | conv (z, z::value_t v) |
static value_t | conv (b, b::value_t v) |
static value_t | conv (std::istream &i) |
static std::ostream & | print (const value_t v, std::ostream &o, symbol format=symbol{"text"}) |
using vcsn::detail::q_impl::self_type = q |
|
inlinestatic |
Definition at line 157 of file q.hh.
References vcsn::detail::q_impl::value_t::den, and vcsn::detail::q_impl::value_t::num.
Definition at line 79 of file q.hh.
References abs(), vcsn::detail::q_impl::value_t::den, vcsn::detail::lcm(), and vcsn::detail::q_impl::value_t::num.
|
inlinestatic |
Definition at line 195 of file q.hh.
References vcsn::eat(), vcsn::fail_reading(), vcsn::detail::q_impl::value_t::reduce(), vcsn::require(), and sname().
Definition at line 140 of file q.hh.
References vcsn::detail::q_impl::value_t::den, and vcsn::detail::q_impl::value_t::num.
|
inlinestatic |
Definition at line 168 of file q.hh.
References vcsn::detail::q_impl::value_t::den, vcsn::hash_value(), and vcsn::detail::q_impl::value_t::num.
|
inlinestatic |
|
inlinestatic |
Definition at line 134 of file q.hh.
References vcsn::detail::q_impl::value_t::den, and vcsn::detail::q_impl::value_t::num.
|
inlinestatic |
|
inlinestatic |
Definition at line 129 of file q.hh.
References vcsn::detail::q_impl::value_t::num.
Referenced by rdiv().
Whether lhs < rhs.
Definition at line 146 of file q.hh.
References vcsn::detail::q_impl::value_t::den, and vcsn::detail::q_impl::value_t::num.
|
inlinestatic |
Build from the description in is.
Definition at line 38 of file q.hh.
References vcsn::eat(), and sname().
Definition at line 93 of file q.hh.
References vcsn::detail::q_impl::value_t::den, and vcsn::detail::q_impl::value_t::num.
Definition at line 99 of file q.hh.
References vcsn::detail::q_impl::value_t::den, is_zero(), vcsn::detail::q_impl::value_t::num, and vcsn::require().
Referenced by ldiv().
|
inlinestatic |
|
inlinestatic |
Definition at line 114 of file q.hh.
References abs(), vcsn::detail::q_impl::value_t::den, vcsn::detail::q_impl::value_t::num, sname(), and vcsn::to_string().
|
inlinestatic |
Definition at line 154 of file q.hh.
References vcsn::ABSVAL.
Definition at line 86 of file q.hh.
References abs(), vcsn::detail::q_impl::value_t::den, vcsn::detail::lcm(), and vcsn::detail::q_impl::value_t::num.
|
inline |