18 template <
typename InExpSet,
typename OutExpSet = InExpSet>
19 typename OutExpSet::value_t
20 copy(
const InExpSet& in_rs,
const OutExpSet& out_rs,
21 const typename InExpSet::value_t&
v);
27 template <
typename InExpSet,
typename OutExpSet>
29 :
public InExpSet::const_visitor
34 using super_t =
typename in_expressionset_t::const_visitor;
40 template <type_t Type>
42 template <type_t Type>
67 template <exp::type_t Type,
typename Fun>
69 rec_(
const unary_t<Type>&
v, Fun&& fun)
76 template <exp::type_t Type,
typename Fun>
78 rec_(
const variadic_t<Type>&
v, Fun&& fun)
81 for (
const auto& c: v.tail())
131 template <
typename =
void>
140 std::get<I>(v.sub()));
144 template <
size_t... I>
160 detail::static_if<in_context_t::is_lat>
173 template <
typename InExpSet,
typename OutExpSet>
174 typename OutExpSet::value_t
175 copy(
const InExpSet& in_rs,
const OutExpSet& out_rs,
176 const typename InExpSet::value_t&
v)
void rec_(const unary_t< Type > &v, Fun &&fun)
Factor the handling of unary operations.
auto work_(const tuple_t &v)
Copy one tape.
An inner node implementing a weight.
typename super_t::template unary_t< Type > unary_t
typename super_t::tuple_t tuple_t
Functor to copy/convert a rational expression.
typename in_expressionset_t::const_visitor super_t
copy_impl(const in_expressionset_t &in_rs, const out_expressionset_t &out_rs)
InExpSet in_expressionset_t
typename out_expressionset_t::value_t out_expression_t
VCSN_RAT_VISIT(conjunction, v)
typename detail::labelset_t_of_impl< base_t< ValueSet >>::type labelset_t_of
VCSN_RAT_VISIT(shuffle, v)
out_expression_t operator()(const tuple_t &v)
Entry point.
out_expression_t(ors_t::*)(const out_expression_t &, const out_expression_t &) const bin_t
VCSN_RAT_VISIT(ldivide, v)
void visit(const tuple_t &v, std::true_type) override
out_expression_t res_
Output value, under construction.
OutExpSet out_expressionset_t
VCSN_RAT_VISIT(rweight, v)
const out_expressionset_t & out_rs_
expressionset to build the output value.
const in_expressionset_t & in_rs_
expressionset to decode the input value.
void rec_(const variadic_t< Type > &v, Fun &&fun)
Factor the handling of n-ary operations.
typename super_t::template variadic_t< Type > variadic_t
context_t_of< in_expressionset_t > in_context_t
An inner node with multiple children.
out_expression_t operator()(const in_expression_t &v)
Entry point: copy/convert v.
VCSN_RAT_VISIT(compose, v)
VCSN_RAT_VISIT(lweight, v)
VCSN_RAT_VISIT(transposition, v)
OutExpSet::value_t copy(const InExpSet &in_rs, const OutExpSet &out_rs, const typename InExpSet::value_t &v)
Copy/convert a rational expression.
out_expression_t rec_(const in_expression_t &v)
Easy recursion.
typename in_expressionset_t::value_t in_expression_t
VCSN_RAT_VISIT(complement, v)
typename detail::context_t_of_impl< base_t< ValueSet >>::type context_t_of
out_expressionset_t ors_t
out_expression_t work_(const tuple_t &v, detail::index_sequence< I... >)
Copy all the tapes.
VCSN_RAT_VISIT(infiltrate, v)