Vcsn  2.2a
Be Rational
vcsn::detail::r_impl Class Reference

#include <r.hh>

Collaboration diagram for vcsn::detail::r_impl:

Public Types

using self_t = r
 
using value_t = double
 

Public Member Functions

value_t star (const value_t v) const
 
std::ostream & print_set (std::ostream &o, format fmt={}) const
 

Static Public Member Functions

static symbol sname ()
 
static r make (std::istream &is)
 Build from the description in is. More...
 
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 lgcd (const value_t l, const value_t r)
 
static value_t rgcd (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 constexpr bool is_special (const value_t)
 
static bool is_zero (const value_t v)
 
static bool is_one (const value_t v)
 
static bool equal (const value_t l, const value_t r)
 
static bool less (const value_t lhs, const value_t rhs)
 Whether lhs < rhs. More...
 
static constexpr bool is_commutative ()
 
static constexpr bool is_idempotent ()
 
static constexpr bool has_lightening_weights ()
 
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 (const value_t v)
 
static value_t conv (self_t, const value_t v)
 
static value_t conv (q, const q::value_t v)
 
static value_t conv (z, const z::value_t v)
 
static value_t conv (b, const b::value_t v)
 
static value_t conv (std::istream &i, bool=true)
 
static std::ostream & print (const value_t v, std::ostream &o, format={})
 

Detailed Description

Definition at line 23 of file r.hh.

Member Typedef Documentation

Definition at line 26 of file r.hh.

Definition at line 41 of file r.hh.

Member Function Documentation

static value_t vcsn::detail::r_impl::abs ( const value_t  v)
inlinestatic

Definition at line 146 of file r.hh.

References vcsn::detail::v.

static value_t vcsn::detail::r_impl::add ( const value_t  l,
const value_t  r 
)
inlinestatic

Definition at line 56 of file r.hh.

static value_t vcsn::detail::r_impl::conv ( self_t  ,
const value_t  v 
)
inlinestatic

Definition at line 163 of file r.hh.

References vcsn::detail::v.

static value_t vcsn::detail::r_impl::conv ( q  ,
const q::value_t  v 
)
inlinestatic

Definition at line 169 of file r.hh.

static value_t vcsn::detail::r_impl::conv ( z  ,
const z::value_t  v 
)
inlinestatic

Definition at line 175 of file r.hh.

References vcsn::detail::v.

static value_t vcsn::detail::r_impl::conv ( b  ,
const b::value_t  v 
)
inlinestatic

Definition at line 181 of file r.hh.

References vcsn::detail::v.

static value_t vcsn::detail::r_impl::conv ( std::istream &  i,
bool  = true 
)
inlinestatic

Definition at line 187 of file r.hh.

References sname().

Here is the call graph for this function:

static bool vcsn::detail::r_impl::equal ( const value_t  l,
const value_t  r 
)
inlinestatic

Definition at line 127 of file r.hh.

static constexpr bool vcsn::detail::r_impl::has_lightening_weights ( )
inlinestatic

Definition at line 140 of file r.hh.

static size_t vcsn::detail::r_impl::hash ( const value_t  v)
inlinestatic

Definition at line 157 of file r.hh.

References vcsn::detail::hash_value().

Here is the call graph for this function:

static constexpr bool vcsn::detail::r_impl::is_commutative ( )
inlinestatic

Definition at line 138 of file r.hh.

static constexpr bool vcsn::detail::r_impl::is_idempotent ( )
inlinestatic

Definition at line 139 of file r.hh.

static bool vcsn::detail::r_impl::is_one ( const value_t  v)
inlinestatic

Definition at line 121 of file r.hh.

static constexpr bool vcsn::detail::r_impl::is_special ( const value_t  )
inlinestatic

Definition at line 109 of file r.hh.

static bool vcsn::detail::r_impl::is_zero ( const value_t  v)
inlinestatic

Definition at line 115 of file r.hh.

Referenced by lgcd(), and rdiv().

static value_t vcsn::detail::r_impl::ldiv ( const value_t  l,
const value_t  r 
)
inlinestatic

Definition at line 95 of file r.hh.

References rdiv().

Here is the call graph for this function:

static bool vcsn::detail::r_impl::less ( const value_t  lhs,
const value_t  rhs 
)
inlinestatic

Whether lhs < rhs.

Definition at line 133 of file r.hh.

static value_t vcsn::detail::r_impl::lgcd ( const value_t  l,
const value_t  r 
)
inlinestatic

Definition at line 74 of file r.hh.

References is_zero(), vcsn::require(), and sname().

Referenced by rgcd().

Here is the call graph for this function:

static r vcsn::detail::r_impl::make ( std::istream &  is)
inlinestatic

Build from the description in is.

Definition at line 35 of file r.hh.

References vcsn::eat(), and sname().

Here is the call graph for this function:

static value_t vcsn::detail::r_impl::mul ( const value_t  l,
const value_t  r 
)
inlinestatic

Definition at line 68 of file r.hh.

static value_t vcsn::detail::r_impl::one ( )
inlinestatic

Definition at line 50 of file r.hh.

static std::ostream& vcsn::detail::r_impl::print ( const value_t  v,
std::ostream &  o,
format  = {} 
)
inlinestatic

Definition at line 197 of file r.hh.

std::ostream& vcsn::detail::r_impl::print_set ( std::ostream &  o,
format  fmt = {} 
) const
inline

Definition at line 204 of file r.hh.

static value_t vcsn::detail::r_impl::rdiv ( const value_t  l,
const value_t  r 
)
inlinestatic

Definition at line 88 of file r.hh.

References is_zero(), and vcsn::require().

Referenced by ldiv().

Here is the call graph for this function:

static value_t vcsn::detail::r_impl::rgcd ( const value_t  l,
const value_t  r 
)
inlinestatic

Definition at line 82 of file r.hh.

References lgcd().

Here is the call graph for this function:

static constexpr bool vcsn::detail::r_impl::show_one ( )
inlinestatic

Definition at line 142 of file r.hh.

static symbol vcsn::detail::r_impl::sname ( )
inlinestatic

Definition at line 28 of file r.hh.

Referenced by conv(), lgcd(), make(), and star().

value_t vcsn::detail::r_impl::star ( const value_t  v) const
inline

Definition at line 101 of file r.hh.

References sname(), and vcsn::detail::v.

Here is the call graph for this function:

static constexpr star_status_t vcsn::detail::r_impl::star_status ( )
inlinestatic

Definition at line 143 of file r.hh.

References vcsn::ABSVAL.

static value_t vcsn::detail::r_impl::sub ( const value_t  l,
const value_t  r 
)
inlinestatic

Definition at line 62 of file r.hh.

static value_t vcsn::detail::r_impl::transpose ( const value_t  v)
inlinestatic

Definition at line 152 of file r.hh.

References vcsn::detail::v.

static value_t vcsn::detail::r_impl::zero ( )
inlinestatic

Definition at line 44 of file r.hh.


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