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

#include <nmin.hh>

Inheritance diagram for vcsn::detail::nmin_impl:
Collaboration diagram for vcsn::detail::nmin_impl:

Public Types

using super_t = min_plus_impl< nmin_impl, unsigned int >
 
using self_t = nmin
 
using value_t = typename super_t::value_t
 
- Public Types inherited from vcsn::detail::min_plus_impl< nmin_impl, unsigned int >
using self_t = nmin_impl
 
using value_t = unsigned int
 

Public Member Functions

value_t conv (std::istream &is, bool=true) const
 
std::ostream & print_set (std::ostream &o, format fmt={}) const
 
- Public Member Functions inherited from vcsn::detail::min_plus_impl< nmin_impl, unsigned int >
const self_tself () 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 star (const value_t v) const
 
value_t conv (std::istream &is, bool=true) const
 

Static Public Member Functions

static symbol sname ()
 
static nmin make (std::istream &is)
 Build from the description in is. More...
 
static value_t conv (self_t, value_t v)
 
static constexpr bool has_lightening_weights ()
 
- Static Public Member Functions inherited from vcsn::detail::min_plus_impl< nmin_impl, unsigned int >
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 one ()
 
static value_t zero ()
 
static value_t min ()
 
static value_t max ()
 
static int compare (const value_t l, const value_t r)
 Three-way comparison between l and r. More...
 
static bool equal (const value_t l, const value_t r)
 Whether l == r. More...
 
static bool less (value_t l, value_t r)
 Whether l < r. 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 (b, b::value_t v)
 
static std::ostream & print (const value_t v, std::ostream &o=std::cout, format fmt={})
 

Detailed Description

Definition at line 14 of file nmin.hh.

Member Typedef Documentation

◆ self_t

Definition at line 19 of file nmin.hh.

◆ super_t

Definition at line 18 of file nmin.hh.

◆ value_t

Definition at line 20 of file nmin.hh.

Member Function Documentation

◆ conv() [1/2]

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

Definition at line 37 of file nmin.hh.

References vcsn::detail::v.

◆ conv() [2/2]

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

Definition at line 43 of file nmin.hh.

References vcsn::detail::min_plus_impl< nmin_impl, unsigned int >::conv(), and vcsn::raise_invalid_value().

Here is the call graph for this function:

◆ has_lightening_weights()

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

Definition at line 51 of file nmin.hh.

◆ make()

static nmin vcsn::detail::nmin_impl::make ( std::istream &  is)
inlinestatic

Build from the description in is.

Definition at line 29 of file nmin.hh.

References vcsn::detail::min_plus_impl< nmin_impl, unsigned int >::conv(), vcsn::eat(), and sname().

Here is the call graph for this function:

◆ print_set()

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

Definition at line 54 of file nmin.hh.

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

Here is the call graph for this function:

◆ sname()

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

Definition at line 22 of file nmin.hh.

References vcsn::res.

Referenced by make(), and print_set().


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