148 conv(std::istream& is,
bool =
true)
const
154 *
this,
": invalid value: ", i);
158 raise(*
this,
": invalid value: ", is);
165 return o << (v ?
'1' :
'0');
174 o <<
"\\mathbb{F}_2";
static bool less(value_t lhs, value_t rhs)
Whether lhs < rhs.
value_t rdivide(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.
static constexpr bool is_idempotent()
static value_t mul(const value_t l, const value_t r)
std::ostream & print_set(std::ostream &o, format fmt={}) const
ATTRIBUTE_NORETURN void raise_not_starrable(const WeightSet &ws, const typename WeightSet::value_t &w)
This value is not starrable.
weightset_mixin< detail::f2_impl > f2
static constexpr bool has_lightening_weights()
Print as a parsable type string.
void require(Bool b, Args &&...args)
If b is not verified, raise an error with args as message.
auto hash_value(const T &v) -> decltype(std::hash< T >
Following the naming convention of Boost.
value_t ldivide(const value_t l, const value_t r) const
static value_t conv(self_t, value_t v)
static constexpr bool show_one()
static constexpr bool is_special(value_t)
An input/output format for valuesets.
value_t star(const value_t v) const
static size_t hash(value_t v)
Print as is. For instance, don't try to escape labels.
static value_t transpose(const value_t v)
static value_t sub(const value_t l, const value_t r)
value_t conv(std::istream &is, bool=true) const
Print as rich UTF-8 text, escaped.
static bool is_one(const value_t v)
static constexpr bool is_commutative()
static bool equal(const value_t l, const value_t r)
static f2 make(std::istream &is)
Build from the description in is.
static bool is_zero(const value_t v)
static std::ostream & print(const value_t v, std::ostream &o=std::cout, format={})
Provide a variadic mul on top of a binary mul(), and one().
Print as plain (ASCII) text, escaped.
char eat(std::istream &is, char c)
Check lookahead character and advance.
static value_t add(const value_t l, const value_t r)
weightset_mixin< detail::r_impl > r