Awali
Another Weighted Automata library
|
The semiring of natural numbers bounded by K
.
More...
#include <nn.hh>
Public Types | |
using | finite_t = bool |
using | self_type = nn< K > |
using | value_t = unsigned int |
Public Member Functions | |
nn () | |
std::ostream & | print_set (std::ostream &o, const std::string &format="text") const |
template<unsigned version = version::fsm_json> | |
json::node_t * | to_json () const |
template<unsigned version = version::fsm_json> | |
json::node_t * | value_to_json (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 (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 nn< K > | 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 value_t | parse (const std::string &s, size_t &p) |
static std::ostream & | print (value_t v, std::ostream &o, const std::string &="text") |
static value_t | rdiv (const value_t, const value_t) |
static constexpr bool | show_one () |
static std::string | sname () |
static value_t | star (const value_t v) |
static constexpr star_status_t | star_status () |
static value_t | transpose (const value_t v) |
template<unsigned version = version::fsm_json> | |
static value_t | value_from_json (json::node_t const *p) |
static value_t | zero () |
Static Public Attributes | |
static const finite_t | finite =true |
The semiring of natural numbers bounded by K
.
The semiring has K+1 elements. The type of values is unsigned int
K | a positive integer: the bound on the semiring |
using awali::sttc::nn< K >::finite_t = bool |
using awali::sttc::nn< K >::self_type = nn<K> |
using awali::sttc::nn< K >::value_t = unsigned int |
awali::sttc::nn< K >::nn | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticconstexpr |
|
static |
|
staticconstexpr |
|
static |
|
static |
|
static |
Whether lhs < rhs.
|
static |
Build from the description in is.
|
static |
|
static |
|
static |
|
static |
std::ostream& awali::sttc::nn< K >::print_set | ( | std::ostream & | o, |
const std::string & | format = "text" |
||
) | const |
|
static |
|
staticconstexpr |
|
static |
|
static |
|
staticconstexpr |
json::node_t* awali::sttc::nn< K >::to_json | ( | ) | const |
|
static |
|
static |
json::node_t* awali::sttc::nn< K >::value_to_json | ( | value_t | v | ) | const |
std::string awali::sttc::nn< K >::vname | ( | bool | = true | ) | const |
|
static |
|
static |