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