Vcsn  2.8
Be Rational
vcsn::detail::b_impl Class Reference

#include <b.hh>

Collaboration diagram for vcsn::detail::b_impl:

Public Types

using self_t = b
 
using value_t = bool
 

Public Member Functions

value_t lgcd (const value_t l, const value_t r) const
 
value_t rgcd (const value_t l, const value_t r) const
 
value_t rdivide (const value_t l, const value_t r) const
 
value_t ldivide (const value_t l, const value_t r) const
 
value_t conv (std::istream &is, bool=true) const
 
std::ostream & print_set (std::ostream &o, format fmt={}) const
 

Static Public Member Functions

static symbol sname ()
 
static b make (std::istream &is)
 Build from the description in is. More...
 
static value_t zero ()
 
static value_t one ()
 
static value_t min ()
 
static value_t max ()
 
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 star (const value_t)
 
static bool equal (const value_t l, const value_t r)
 Whether l == r. More...
 
static int compare (const value_t l, const value_t r)
 Three-way comparison between l and r. More...
 
static bool less (const value_t lhs, const value_t rhs)
 Whether lhs < rhs. More...
 
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 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 transpose (const value_t v)
 
static size_t hash (const value_t v)
 
static value_t conv (self_t, const value_t v)
 
static std::ostream & print (const value_t v, std::ostream &o=std::cout, format fmt={})
 

Detailed Description

Definition at line 21 of file b.hh.

Member Typedef Documentation

◆ self_t

Definition at line 24 of file b.hh.

◆ value_t

Definition at line 25 of file b.hh.

Member Function Documentation

◆ add()

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

Definition at line 65 of file b.hh.

◆ compare()

static int vcsn::detail::b_impl::compare ( const value_t  l,
const value_t  r 
)
inlinestatic

Three-way comparison between l and r.

Definition at line 125 of file b.hh.

◆ conv() [1/2]

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

Definition at line 175 of file b.hh.

References vcsn::detail::v.

◆ conv() [2/2]

value_t vcsn::detail::b_impl::conv ( std::istream &  is,
bool  = true 
) const
inline

Definition at line 181 of file b.hh.

References vcsn::raise_invalid_value().

Here is the call graph for this function:

◆ equal()

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

Whether l == r.

Definition at line 119 of file b.hh.

◆ has_lightening_weights()

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

Definition at line 155 of file b.hh.

◆ hash()

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

Definition at line 169 of file b.hh.

References vcsn::detail::hash_value().

Here is the call graph for this function:

◆ is_commutative()

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

Definition at line 153 of file b.hh.

◆ is_idempotent()

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

Definition at line 154 of file b.hh.

◆ is_one()

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

Definition at line 148 of file b.hh.

References vcsn::detail::v.

◆ is_special()

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

Definition at line 136 of file b.hh.

◆ is_zero()

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

Definition at line 142 of file b.hh.

References vcsn::detail::v.

Referenced by lgcd(), and rdivide().

◆ ldivide()

value_t vcsn::detail::b_impl::ldivide ( const value_t  l,
const value_t  r 
) const
inline

Definition at line 106 of file b.hh.

References rdivide().

Here is the call graph for this function:

◆ less()

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

Whether lhs < rhs.

Definition at line 131 of file b.hh.

◆ lgcd()

value_t vcsn::detail::b_impl::lgcd ( const value_t  l,
const value_t  r 
) const
inline

Definition at line 85 of file b.hh.

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

Referenced by rgcd().

Here is the call graph for this function:

◆ make()

static b vcsn::detail::b_impl::make ( std::istream &  is)
inlinestatic

Build from the description in is.

Definition at line 34 of file b.hh.

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

Here is the call graph for this function:

◆ max()

static value_t vcsn::detail::b_impl::max ( )
inlinestatic

Definition at line 59 of file b.hh.

◆ min()

static value_t vcsn::detail::b_impl::min ( )
inlinestatic

Definition at line 53 of file b.hh.

◆ mul()

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

Definition at line 79 of file b.hh.

◆ one()

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

Definition at line 47 of file b.hh.

Referenced by lgcd(), and star().

◆ print()

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

Definition at line 195 of file b.hh.

References vcsn::format::latex.

◆ print_set()

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

Definition at line 206 of file b.hh.

References vcsn::format::latex, vcsn::format::raw, vcsn::format::sname, sname(), vcsn::format::text, and vcsn::format::utf8.

Here is the call graph for this function:

◆ rdivide()

value_t vcsn::detail::b_impl::rdivide ( const value_t  l,
const value_t  r 
) const
inline

Definition at line 99 of file b.hh.

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

Referenced by ldivide().

Here is the call graph for this function:

◆ rgcd()

value_t vcsn::detail::b_impl::rgcd ( const value_t  l,
const value_t  r 
) const
inline

Definition at line 93 of file b.hh.

References lgcd().

Here is the call graph for this function:

◆ show_one()

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

Definition at line 157 of file b.hh.

◆ sname()

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

Definition at line 27 of file b.hh.

References vcsn::res.

Referenced by make(), and print_set().

◆ star()

static value_t vcsn::detail::b_impl::star ( const value_t  )
inlinestatic

Definition at line 112 of file b.hh.

References one().

Here is the call graph for this function:

◆ star_status()

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

Definition at line 158 of file b.hh.

References vcsn::STARRABLE.

◆ sub()

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

Definition at line 73 of file b.hh.

◆ transpose()

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

Definition at line 164 of file b.hh.

References vcsn::detail::v.

◆ zero()

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

Definition at line 41 of file b.hh.


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