1 #ifndef VCSN_WEIGHTSET_R_HH
2 # define VCSN_WEIGHTSET_R_HH
32 std::string
vname(
bool =
true)
const
136 return v < 0 ? -v : v;
186 const std::string& =
"text")
194 if (format ==
"latex")
196 else if (format ==
"text")
199 raise(
"invalid format: ", format);
213 #endif // !VCSN_WEIGHTSET_R_HH
static bool less_than(value_t lhs, value_t rhs)
Whether lhs < rhs.
static value_t rdiv(const value_t l, const value_t r)
static bool is_zero(const value_t v)
static value_t sub(const value_t l, const value_t r)
value_t star(const value_t v) const
static std::string sname()
static constexpr bool is_idempotent()
static value_t conv(b, b::value_t v)
variadic_mul_mixin< detail::qmp_impl > qmp
std::string vname(bool=true) const
std::ostream & print_set(std::ostream &o, symbol format=symbol{"text"}) const
boost::flyweight< std::string, boost::flyweights::no_tracking > symbol
An internalized string.
variadic_mul_mixin< detail::b_impl > b
variadic_mul_mixin< detail::q_impl > q
static value_t add(const value_t l, const value_t r)
std::size_t hash_value(const T &v)
static value_t ldiv(const value_t l, const value_t r)
static size_t hash(value_t v)
static value_t mul(const value_t l, const value_t r)
variadic_mul_mixin< detail::z_impl > z
static constexpr bool is_commutative()
static constexpr star_status_t star_status()
static bool equals(const value_t l, const value_t r)
std::istringstream is
The input stream: the specification to translate.
static std::ostream & print(const value_t v, std::ostream &o, const std::string &="text")
static value_t abs(const value_t v)
Provide a variadic mul on top of a binary mul(), and one().
static value_t transpose(const value_t v)
static value_t conv(std::istream &i)
char eat(std::istream &is, char c)
Check lookahead character and advance.
static r make(std::istream &is)
Build from the description in is.
ATTRIBUTE_NORETURN void fail_reading(std::istream &is, std::string explanation)
Throw an exception after failing to read from is.
static value_t conv(q, q::value_t v)
static value_t conv(z, z::value_t v)
static constexpr bool is_special(value_t)
static bool is_one(const value_t v)
variadic_mul_mixin< detail::r_impl > r
static constexpr bool show_one()
void require(bool b, Args &&...args)
If b is not verified, raise an error with args as message.
static value_t conv(self_type, value_t v)
std::string to_string(direction d)
Conversion to string.