1 #ifndef VCSN_ALGOS_READ_HH
2 # define VCSN_ALGOS_READ_HH
18 template <
typename Context>
24 return ctx.labelset()->conv(
is);
32 template <
typename Istream,
typename Context>
37 const auto& c = ctx->as<Context>();
52 template <
typename Context>
66 template <
typename Context,
typename Istream>
71 const auto& c = ctx->as<Context>();
87 template <
typename Context>
93 return ctx.weightset()->conv(
is);
101 template <
typename Context,
typename Istream>
106 const auto& c = ctx->as<Context>();
119 #endif // !VCSN_ALGOS_READ_HH
Linear combination of labels: map labels to weights.
REGISTER_DECLARE(accessible,(const automaton &) -> automaton)
polynomial make_polynomial(const PolynomialSet &ps, const typename PolynomialSet::value_t &polynomial)
std::shared_ptr< const detail::weight_base > weight
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.
auto read_weight(const Context &ctx, std::istream &is) -> weight_t_of< Context >
typename detail::label_t_of_impl< base_t< ValueSet >>::type label_t_of
std::istringstream is
The input stream: the specification to translate.
std::shared_ptr< const detail::label_base > label
weight make_weight(const WeightSet &ws, const typename WeightSet::value_t &w)
auto read_label(std::istream &is, const context &ctx) -> label
Bridge.
std::shared_ptr< const detail::context_base > context
auto read_polynomial(const Context &ctx, std::istream &is) -> typename polynomialset< Context >::value_t
std::map< label_t, weight_t, vcsn::less< labelset_t >> value_t
typename detail::weight_t_of_impl< base_t< ValueSet >>::type weight_t_of
label make_label(const LabelSet &ls, const typename LabelSet::value_t &l)
auto read_weight(const context &ctx, std::istream &is) -> weight
Bridge.
auto read_label(std::istream &is, const Context &ctx) -> label_t_of< Context >
std::shared_ptr< const detail::polynomial_base > polynomial
auto read_polynomial(const context &ctx, std::istream &is) -> polynomial
Bridge.