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

#include <z.hh>

Collaboration diagram for vcsn::detail::z_impl:

Public Types

using self_type = z
 
using value_t = int
 

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 z 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 constexpr bool is_special (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 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 (b, b::value_t v)
 
static value_t conv (std::istream &stream)
 
static std::ostream & print (const value_t v, std::ostream &o, const std::string &="text")
 

Detailed Description

Definition at line 18 of file z.hh.

Member Typedef Documentation

Definition at line 21 of file z.hh.

Definition at line 40 of file z.hh.

Member Function Documentation

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

Definition at line 55 of file z.hh.

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

Definition at line 143 of file z.hh.

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

Definition at line 149 of file z.hh.

static value_t vcsn::detail::z_impl::conv ( std::istream &  stream)
inlinestatic

Definition at line 156 of file z.hh.

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

Here is the call graph for this function:

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

Definition at line 114 of file z.hh.

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

Definition at line 137 of file z.hh.

References vcsn::hash_value().

Here is the call graph for this function:

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

Definition at line 125 of file z.hh.

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

Definition at line 126 of file z.hh.

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

Definition at line 108 of file z.hh.

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

Definition at line 96 of file z.hh.

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

Definition at line 102 of file z.hh.

Referenced by rdiv(), and star().

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

Definition at line 82 of file z.hh.

References rdiv().

Here is the call graph for this function:

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

Whether lhs < rhs.

Definition at line 120 of file z.hh.

static z vcsn::detail::z_impl::make ( std::istream &  is)
inlinestatic

Build from the description in is.

Definition at line 34 of file z.hh.

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

Here is the call graph for this function:

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

Definition at line 67 of file z.hh.

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

Definition at line 49 of file z.hh.

Referenced by star().

static std::ostream& vcsn::detail::z_impl::print ( const value_t  v,
std::ostream &  o,
const std::string &  = "text" 
)
inlinestatic

Definition at line 166 of file z.hh.

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

Definition at line 173 of file z.hh.

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

Definition at line 73 of file z.hh.

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

Referenced by ldiv().

Here is the call graph for this function:

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

Definition at line 128 of file z.hh.

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

Definition at line 23 of file z.hh.

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

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

Definition at line 88 of file z.hh.

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

Here is the call graph for this function:

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

Definition at line 129 of file z.hh.

References vcsn::NON_STARRABLE.

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

Definition at line 61 of file z.hh.

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

Definition at line 132 of file z.hh.

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

Definition at line 28 of file z.hh.

References sname().

Here is the call graph for this function:

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

Definition at line 43 of file z.hh.


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