Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vcsn::detail::qmp_impl Class Reference

#include <qmp.hh>

Collaboration diagram for vcsn::detail::qmp_impl:

Public Types

using self_type = qmp
 
using value_t = mpq_class
 

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 qmp 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 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 l, value_t r)
 Whether < r. 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"})
 

Detailed Description

Definition at line 25 of file qmp.hh.

Member Typedef Documentation

Definition at line 28 of file qmp.hh.

Definition at line 47 of file qmp.hh.

Member Function Documentation

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

Definition at line 131 of file qmp.hh.

Referenced by star().

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

Definition at line 61 of file qmp.hh.

static value_t vcsn::detail::qmp_impl::conv ( self_type  ,
value_t  v 
)
inlinestatic

Definition at line 149 of file qmp.hh.

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

Definition at line 155 of file qmp.hh.

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

Definition at line 161 of file qmp.hh.

static value_t vcsn::detail::qmp_impl::conv ( std::istream &  i)
inlinestatic

Definition at line 167 of file qmp.hh.

static bool vcsn::detail::qmp_impl::equals ( const value_t  l,
const value_t  r 
)
inlinestatic

Definition at line 114 of file qmp.hh.

static size_t vcsn::detail::qmp_impl::hash ( value_t  v)
inlinestatic

Definition at line 142 of file qmp.hh.

References vcsn::hash_value(), and vcsn::to_string().

Here is the call graph for this function:

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

Definition at line 125 of file qmp.hh.

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

Definition at line 108 of file qmp.hh.

static bool vcsn::detail::qmp_impl::is_special ( const value_t  )
inlinestatic

Definition at line 98 of file qmp.hh.

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

Definition at line 103 of file qmp.hh.

Referenced by rdiv().

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

Definition at line 84 of file qmp.hh.

References rdiv().

Here is the call graph for this function:

static bool vcsn::detail::qmp_impl::less_than ( value_t  l,
value_t  r 
)
inlinestatic

Whether < r.

Definition at line 120 of file qmp.hh.

static qmp vcsn::detail::qmp_impl::make ( std::istream &  is)
inlinestatic

Build from the description in is.

Definition at line 41 of file qmp.hh.

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

Here is the call graph for this function:

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

Definition at line 71 of file qmp.hh.

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

Definition at line 56 of file qmp.hh.

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

Definition at line 175 of file qmp.hh.

std::ostream& vcsn::detail::qmp_impl::print_set ( std::ostream &  o,
symbol  format = symbol{"text"} 
) const
inline

Definition at line 191 of file qmp.hh.

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

Definition at line 77 of file qmp.hh.

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

Referenced by ldiv().

Here is the call graph for this function:

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

Definition at line 127 of file qmp.hh.

static std::string vcsn::detail::qmp_impl::sname ( )
inlinestatic

Definition at line 30 of file qmp.hh.

Referenced by make(), star(), and vname().

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

Definition at line 89 of file qmp.hh.

References abs(), sname(), and vcsn::to_string().

Here is the call graph for this function:

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

Definition at line 128 of file qmp.hh.

References vcsn::ABSVAL.

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

Definition at line 66 of file qmp.hh.

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

Definition at line 137 of file qmp.hh.

std::string vcsn::detail::qmp_impl::vname ( bool  = true) const
inline

Definition at line 35 of file qmp.hh.

References sname().

Here is the call graph for this function:

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

Definition at line 49 of file qmp.hh.


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