163 conv(std::istream& is,
bool =
true)
const
169 *
this,
": invalid value: ", i);
173 raise(*
this,
": invalid value: ", is);
181 o << (v ?
"\\top" :
"\\bot");
183 o << (v ?
'1' :
'0');
static value_t transpose(const value_t v)
boost::flyweight< std::string, boost::flyweights::no_tracking, boost::flyweights::intermodule_holder > symbol
An internalized string.
std::ostream & print_set(std::ostream &o, format fmt={}) const
value_t conv(std::istream &is, bool=true) const
static size_t hash(const value_t v)
static constexpr bool is_special(const value_t)
static std::ostream & print(const value_t v, std::ostream &o=std::cout, format fmt={})
static value_t star(const value_t)
static bool is_one(const value_t v)
Print as a parsable type string.
static bool is_zero(const value_t v)
void require(Bool b, Args &&...args)
If b is not verified, raise an error with args as message.
static value_t sub(const value_t l, const value_t r)
value_t rgcd(const value_t l, const value_t r) const
auto hash_value(const T &v) -> decltype(std::hash< T >
Following the naming convention of Boost.
value_t lgcd(const value_t l, const value_t r) const
static value_t add(const value_t l, const value_t r)
static constexpr star_status_t star_status()
static constexpr bool is_idempotent()
value_t rdivide(const value_t l, const value_t r) const
static constexpr bool has_lightening_weights()
An input/output format for valuesets.
Print as is. For instance, don't try to escape labels.
Print as rich UTF-8 text, escaped.
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.
static constexpr bool is_commutative()
static constexpr bool show_one()
weightset_mixin< detail::b_impl > b
static b make(std::istream &is)
Build from the description in is.
static value_t mul(const value_t l, const value_t r)
value_t ldivide(const value_t l, const value_t r) const
Provide a variadic mul on top of a binary mul(), and one().
Print as plain (ASCII) text, escaped.
static value_t conv(self_t, const value_t v)
char eat(std::istream &is, char c)
Check lookahead character and advance.
weightset_mixin< detail::r_impl > r