17 #ifndef AWALI_ALGOS_READ_HH
18 # define AWALI_ALGOS_READ_HH
22 namespace awali {
namespace sttc {
29 template <
typename Context>
35 return ctx.labelset()->conv(is);
42 template <
typename Context>
55 template <
typename Context>
61 return ctx.weightset()->conv(is);
Linear combination of labels: map labels to weights.
Definition: polynomialset.hh:69
std::map< label_t, weight_t, internal::less< labelset_t > > value_t
Definition: polynomialset.hh:83
static value_t conv(self_type, value_t v)
Conversion from (this and) other weightsets.
Definition: polynomialset.hh:373
typename internal::label_t_of_impl< internal::base_t< ValueSet > >::type label_t_of
Helper to retrieve the type of the labels of a value set.
Definition: traits.hh:71
typename internal::weight_t_of_impl< internal::base_t< ValueSet > >::type weight_t_of
Helper to retrieve the type of the weights of a value set.
Definition: traits.hh:81
auto read_label(std::istream &is, const Context &ctx) -> label_t_of< Context >
Definition: read.hh:32
auto read_polynomial(const Context &ctx, std::istream &is) -> typename polynomialset< Context >::value_t
Definition: read.hh:45
auto read_weight(const Context &ctx, std::istream &is) -> weight_t_of< Context >
Definition: read.hh:58
Main namespace of Awali.
Definition: ato.hh:22