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

#include <b.hh>

Collaboration diagram for vcsn::detail::b_impl:

Public Types

using self_type = b
 
using value_t = bool
 

Public Member Functions

std::string vname (bool=true) const
 
std::ostream & print_set (std::ostream &o, symbol format=symbol{"text"}) const
 

Static Public Member Functions

static std::string 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 add (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 value_t star (const value_t)
 
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_special (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 show_one ()
 
static constexpr star_status_t star_status ()
 
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 (std::istream &is)
 
static std::ostream & print (const value_t v, std::ostream &o, symbol format=symbol{"text"})
 

Detailed Description

Definition at line 21 of file b.hh.

Member Typedef Documentation

Definition at line 24 of file b.hh.

Definition at line 43 of file b.hh.

Member Function Documentation

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

Definition at line 58 of file b.hh.

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

Definition at line 138 of file b.hh.

static value_t vcsn::detail::b_impl::conv ( std::istream &  is)
inlinestatic

Definition at line 144 of file b.hh.

References vcsn::fail_reading(), sname(), and vcsn::rat::to_string().

Here is the call graph for this function:

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

Definition at line 89 of file b.hh.

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

Definition at line 132 of file b.hh.

References vcsn::hash_value().

Here is the call graph for this function:

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

Definition at line 117 of file b.hh.

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

Definition at line 118 of file b.hh.

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

Definition at line 112 of file b.hh.

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

Definition at line 100 of file b.hh.

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

Definition at line 106 of file b.hh.

Referenced by rdiv().

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

Definition at line 77 of file b.hh.

References rdiv().

Here is the call graph for this function:

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

Whether lhs < rhs.

Definition at line 95 of file b.hh.

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

Build from the description in is.

Definition at line 37 of file b.hh.

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

Here is the call graph for this function:

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

Definition at line 64 of file b.hh.

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

Definition at line 52 of file b.hh.

Referenced by star().

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

Definition at line 160 of file b.hh.

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

Definition at line 171 of file b.hh.

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

Definition at line 70 of file b.hh.

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

Referenced by ldiv().

Here is the call graph for this function:

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

Definition at line 120 of file b.hh.

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

Definition at line 26 of file b.hh.

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

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

Definition at line 83 of file b.hh.

References one().

Here is the call graph for this function:

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

Definition at line 121 of file b.hh.

References vcsn::STARRABLE.

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

Definition at line 127 of file b.hh.

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

Definition at line 31 of file b.hh.

References sname().

Here is the call graph for this function:

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

Definition at line 46 of file b.hh.


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