148 return v < 0 ? -v :
v;
187 conv(std::istream& i,
bool =
true)
const
193 raise(*
this,
": invalid value: ", i);
weightset_mixin< detail::q_impl > q
value_t ldivide(const value_t l, const value_t r) const
value_t lgcd(const value_t l, const value_t r) const
static constexpr star_status_t star_status()
boost::flyweight< std::string, boost::flyweights::no_tracking, boost::flyweights::intermodule_holder > symbol
An internalized string.
value_t conv(std::istream &i, bool=true) const
value_t rgcd(const value_t l, const value_t r) const
static constexpr bool is_idempotent()
ATTRIBUTE_NORETURN void raise_not_starrable(const WeightSet &ws, const typename WeightSet::value_t &w)
This value is not starrable.
static bool is_zero(const value_t v)
Print as a parsable type string.
void require(Bool b, Args &&...args)
If b is not verified, raise an error with args as message.
static value_t conv(z, const z::value_t v)
static bool is_one(const value_t v)
static constexpr bool is_commutative()
auto hash_value(const T &v) -> decltype(std::hash< T >
Following the naming convention of Boost.
static size_t hash(const value_t v)
static constexpr bool is_special(const value_t)
static bool equal(const value_t l, const value_t r)
static bool less(const value_t lhs, const value_t rhs)
Whether lhs < rhs.
An input/output format for valuesets.
static constexpr bool has_lightening_weights()
static value_t transpose(const value_t v)
value_t rdivide(const value_t l, const value_t r) const
static value_t sub(const value_t l, const value_t r)
Print as is. For instance, don't try to escape labels.
static r make(std::istream &is)
Build from the description in is.
static value_t conv(self_t, const value_t v)
static value_t mul(const value_t l, const value_t r)
Print as rich UTF-8 text, escaped.
static value_t conv(q, const q::value_t v)
value_t star(const value_t v) const
static value_t abs(const value_t v)
std::ostream & print_set(std::ostream &o, format fmt={}) const
weightset_mixin< detail::qmp_impl > qmp
weightset_mixin< detail::z_impl > z
static value_t add(const value_t l, const value_t r)
static value_t conv(b, const b::value_t v)
weightset_mixin< detail::b_impl > b
Provide a variadic mul on top of a binary mul(), and one().
Print as plain (ASCII) text, escaped.
valid iff proper succeeds on the "absolute value" of the automaton
char eat(std::istream &is, char c)
Check lookahead character and advance.
static std::ostream & print(const value_t v, std::ostream &o=std::cout, format={})
static constexpr bool show_one()
weightset_mixin< detail::r_impl > r