Awali
Another Weighted Automata library
Public Types | Public Member Functions | Static Public Member Functions
awali::sttc::internal::z_impl Class Reference

#include <z_old.hh>

Public Types

using self_type = z
 
using value_t = int
 

Public Member Functions

value_t js_parse (std::istream &i) const
 
std::ostream & js_print (std::ostream &o) const
 
value_t parse (const std::string &s, size_t &p) const
 
std::ostream & print_set (std::ostream &o, const std::string &format="text") const
 
value_t star (const value_t v) const
 
std::string vname (bool=true) const
 

Static Public Member Functions

static value_t add (const value_t l, const value_t r)
 
static value_t conv (b, b::value_t v)
 
static value_t conv (self_type, value_t v)
 
static value_t conv (std::istream &stream)
 
static bool equals (const value_t l, const value_t r)
 
static size_t hash (value_t v)
 
static constexpr bool is_commutative_semiring ()
 
static bool is_one (const value_t v)
 
constexpr static bool is_special (value_t)
 
static bool is_zero (const value_t v)
 
static value_t ldiv (const value_t l, const value_t r)
 
static bool less_than (value_t lhs, value_t rhs)
 Whether lhs < rhs. More...
 
static z make (std::istream &is)
 Build from the description in is. More...
 
static value_t mul (const value_t l, const value_t r)
 
static value_t one ()
 
static std::ostream & print (const value_t v, std::ostream &o, const std::string &fmt="text")
 
static value_t rdiv (const value_t l, const value_t r)
 
static constexpr bool show_one ()
 
static std::string sname ()
 
static constexpr star_status_t star_status ()
 
static value_t sub (const value_t l, const value_t r)
 
static value_t transpose (const value_t v)
 
static value_t zero ()
 

Member Typedef Documentation

◆ self_type

◆ value_t

Member Function Documentation

◆ add()

static value_t awali::sttc::internal::z_impl::add ( const value_t  l,
const value_t  r 
)
static

◆ conv() [1/3]

static value_t awali::sttc::internal::z_impl::conv ( b  ,
b::value_t  v 
)
static

◆ conv() [2/3]

static value_t awali::sttc::internal::z_impl::conv ( self_type  ,
value_t  v 
)
static

◆ conv() [3/3]

static value_t awali::sttc::internal::z_impl::conv ( std::istream &  stream)
static

◆ equals()

static bool awali::sttc::internal::z_impl::equals ( const value_t  l,
const value_t  r 
)
static

◆ hash()

static size_t awali::sttc::internal::z_impl::hash ( value_t  v)
static

◆ is_commutative_semiring()

static constexpr bool awali::sttc::internal::z_impl::is_commutative_semiring ( )
staticconstexpr

◆ is_one()

static bool awali::sttc::internal::z_impl::is_one ( const value_t  v)
static

◆ is_special()

constexpr static bool awali::sttc::internal::z_impl::is_special ( value_t  )
staticconstexpr

◆ is_zero()

static bool awali::sttc::internal::z_impl::is_zero ( const value_t  v)
static

◆ js_parse()

value_t awali::sttc::internal::z_impl::js_parse ( std::istream &  i) const

◆ js_print()

std::ostream& awali::sttc::internal::z_impl::js_print ( std::ostream &  o) const

◆ ldiv()

static value_t awali::sttc::internal::z_impl::ldiv ( const value_t  l,
const value_t  r 
)
static

◆ less_than()

static bool awali::sttc::internal::z_impl::less_than ( value_t  lhs,
value_t  rhs 
)
static

Whether lhs < rhs.

◆ make()

static z awali::sttc::internal::z_impl::make ( std::istream &  is)
static

Build from the description in is.

◆ mul()

static value_t awali::sttc::internal::z_impl::mul ( const value_t  l,
const value_t  r 
)
static

◆ one()

static value_t awali::sttc::internal::z_impl::one ( )
static

◆ parse()

value_t awali::sttc::internal::z_impl::parse ( const std::string &  s,
size_t &  p 
) const

◆ print()

static std::ostream& awali::sttc::internal::z_impl::print ( const value_t  v,
std::ostream &  o,
const std::string &  fmt = "text" 
)
static

◆ print_set()

std::ostream& awali::sttc::internal::z_impl::print_set ( std::ostream &  o,
const std::string &  format = "text" 
) const

◆ rdiv()

static value_t awali::sttc::internal::z_impl::rdiv ( const value_t  l,
const value_t  r 
)
static

◆ show_one()

static constexpr bool awali::sttc::internal::z_impl::show_one ( )
staticconstexpr

◆ sname()

static std::string awali::sttc::internal::z_impl::sname ( )
static

◆ star()

value_t awali::sttc::internal::z_impl::star ( const value_t  v) const

◆ star_status()

static constexpr star_status_t awali::sttc::internal::z_impl::star_status ( )
staticconstexpr

◆ sub()

static value_t awali::sttc::internal::z_impl::sub ( const value_t  l,
const value_t  r 
)
static

◆ transpose()

static value_t awali::sttc::internal::z_impl::transpose ( const value_t  v)
static

◆ vname()

std::string awali::sttc::internal::z_impl::vname ( bool  = true) const

◆ zero()

static value_t awali::sttc::internal::z_impl::zero ( )
static

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