17 template <
typename Context>
24 return ctx.labelset()->conv(
is, quoted);
32 template <
typename Context,
typename Istream,
typename Bool>
36 const auto& c = ctx->as<Context>();
48 template <
typename Context>
62 template <
typename Context,
typename Istream>
66 const auto& c = ctx->as<Context>();
79 template <
typename Context>
85 return ctx.weightset()->conv(
is);
93 template <
typename Context,
typename Istream>
97 const auto& c = ctx->as<Context>();
auto read_label(const Context &ctx, std::istream &is, bool quoted=false) -> label_t_of< Context >
polynomial read_polynomial(const context &ctx, std::istream &is)
Bridge.
std::shared_ptr< const detail::polynomial_base > polynomial
std::shared_ptr< const detail::weight_base > weight
auto read_polynomial(const Context &ctx, std::istream &is) -> typename polynomialset< Context >::value_t
polynomial make_polynomial(const PolynomialSet &ps, const typename PolynomialSet::value_t &p)
weight make_weight(const WeightSet &ws, const typename WeightSet::value_t &w)
label make_label(const LabelSet &ls, const typename LabelSet::value_t &l)
Provide a variadic mul on top of a binary mul(), and one().
typename detail::weight_t_of_impl< base_t< ValueSet >>::type weight_t_of
std::shared_ptr< const detail::label_base > label
std::shared_ptr< const detail::context_base > context
A dyn::context.
std::istringstream is
The input stream: the specification to translate.
typename detail::label_t_of_impl< base_t< ValueSet >>::type label_t_of
static dyn::context ctx(const driver &d)
Get the context of the driver.
label read_label(const context &ctx, std::istream &is, bool quoted)
Bridge.
auto read_weight(const Context &ctx, std::istream &is) -> weight_t_of< Context >
weight read_weight(const context &ctx, std::istream &is)
Bridge.
auto conv(const ValueSet &vs, const std::string &str, Args &&...args) -> decltype(vs.conv(std::declval< std::istream & >(), std::forward< Args >(args)...))
Parse str via vs.conv.