168 sname(),
": invalid value: ", i);
172 raise(
sname(),
": invalid value: ",
is);
180 o << (v ?
"\\top" :
"\\bot");
182 o << (v ?
'1' :
'0');
194 raise(
"invalid format: ", fmt);
static b make(std::istream &is)
Build from the description in is.
static value_t conv(self_t, const value_t v)
weightset_mixin< detail::r_impl > r
static value_t mul(const value_t l, const value_t r)
static value_t sub(const value_t l, const value_t r)
static bool equal(const value_t l, const value_t r)
std::istringstream is
The input stream: the specification to translate.
static value_t star(const value_t)
static bool less(const value_t lhs, const value_t rhs)
Whether lhs < rhs.
weightset_mixin< detail::b_impl > b
char eat(std::istream &is, char c)
Check lookahead character and advance.
static value_t conv(std::istream &is, bool=true)
static size_t hash(const value_t v)
static value_t transpose(const value_t v)
static constexpr bool is_idempotent()
auto hash_value(const T &v) -> decltype(std::hash< T >
Following the naming convention of Boost.
static constexpr bool is_special(const value_t)
static bool is_one(const value_t v)
Provide a variadic mul on top of a binary mul(), and one().
static bool is_zero(const value_t v)
static constexpr bool is_commutative()
void require(bool b, Args &&...args)
If b is not verified, raise an error with args as message.
static std::ostream & print(const value_t v, std::ostream &o, format fmt={})
static value_t lgcd(const value_t l, const value_t r)
boost::flyweight< std::string, boost::flyweights::no_tracking, boost::flyweights::intermodule_holder > symbol
An internalized string.
static value_t rgcd(const value_t l, const value_t r)
static value_t add(const value_t l, const value_t r)
static value_t rdiv(const value_t l, const value_t r)
static value_t ldiv(const value_t l, const value_t r)
static constexpr bool show_one()
std::ostream & print_set(std::ostream &o, format fmt={}) const
static constexpr star_status_t star_status()