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