57 o <<
"\\mathbb{Z}_{\\text{min}}";
77 template <
typename RandomGenerator>
85 using super_t::super_t;
90 auto dis = std::uniform_int_distribution<>(super_t::min_, super_t::max_);
91 return dis(super_t::gen_);
std::ostream & print_set(std::ostream &o, format fmt={}) const
Print as is. For instance, don't try to escape labels.
char eat(std::istream &is, char c)
Check lookahead character and advance.
Print as a parsable type string.
Generic declaration of the class which is specialized in each weightset.
value_t pick_value_() const
An input/output format for valuesets.
Abstract class for random weight generation.
Provide a variadic mul on top of a binary mul(), and one().
static value_t conv(nmin, const nmin::value_t v)
static constexpr bool has_lightening_weights()
boost::flyweight< std::string, boost::flyweights::no_tracking, boost::flyweights::intermodule_holder > symbol
An internalized string.
typename super_t::weight_t value_t
Print as rich UTF-8 text, escaped.
static value_t conv(b, b::value_t v)
typename super_t::value_t value_t
static value_t conv(self_t, value_t v)
Print as plain (ASCII) text, escaped.
typename zmin::value_t weight_t
static zmin make(std::istream &is)
Build from the description in is.
weightset_mixin< detail::zmin_impl > zmin