![]() |
Vcsn
2.3a
Be Rational
|
Functor to copy/convert a rational expression. More...
#include <copy.hh>
Classes | |
struct | visit_tuple |
Public Types | |
using | in_expressionset_t = InExpSet |
using | out_expressionset_t = OutExpSet |
using | super_t = typename in_expressionset_t::const_visitor |
using | self_t = copy_impl |
using | in_context_t = context_t_of< in_expressionset_t > |
using | in_expression_t = typename in_expressionset_t::value_t |
using | out_expression_t = typename out_expressionset_t::value_t |
template<type_t Type> | |
using | unary_t = typename super_t::template unary_t< Type > |
template<type_t Type> | |
using | variadic_t = typename super_t::template variadic_t< Type > |
Public Member Functions | |
copy_impl (const in_expressionset_t &in_rs, const out_expressionset_t &out_rs) | |
out_expression_t | operator() (const in_expression_t &v) |
Entry point: copy/convert v. More... | |
Protected Types | |
using | ors_t = out_expressionset_t |
using | bin_t = out_expression_t(ors_t::*)(const out_expression_t &, const out_expression_t &) const |
using | tuple_t = typename super_t::tuple_t |
Protected Member Functions | |
out_expression_t | rec_ (const in_expression_t &v) |
Easy recursion. More... | |
template<exp::type_t Type, typename Fun > | |
void | rec_ (const unary_t< Type > &v, Fun &&fun) |
Factor the handling of unary operations. More... | |
template<exp::type_t Type, typename Fun > | |
void | rec_ (const variadic_t< Type > &v, Fun &&fun) |
Factor the handling of n-ary operations. More... | |
VCSN_RAT_VISIT (add, v) | |
VCSN_RAT_VISIT (complement, v) | |
VCSN_RAT_VISIT (conjunction, v) | |
VCSN_RAT_VISIT (infiltrate, v) | |
VCSN_RAT_VISIT (ldivide, v) | |
VCSN_RAT_VISIT (one,) | |
VCSN_RAT_VISIT (mul, v) | |
VCSN_RAT_VISIT (shuffle, v) | |
VCSN_RAT_VISIT (star, v) | |
VCSN_RAT_VISIT (transposition, v) | |
VCSN_RAT_VISIT (zero,) | |
VCSN_RAT_VISIT (atom, v) | |
VCSN_RAT_VISIT (lweight, v) | |
VCSN_RAT_VISIT (rweight, v) | |
void | visit (const tuple_t &v, std::true_type) override |
Protected Attributes | |
const in_expressionset_t & | in_rs_ |
expressionset to decode the input value. More... | |
const out_expressionset_t & | out_rs_ |
expressionset to build the output value. More... | |
out_expression_t | res_ |
Output value, under construction. More... | |
Functor to copy/convert a rational expression.
InExpSet | the input expressionset type. |
OutExpSet | the output expressionset type. |
|
protected |
using vcsn::rat::copy_impl< InExpSet, OutExpSet >::in_context_t = context_t_of<in_expressionset_t> |
using vcsn::rat::copy_impl< InExpSet, OutExpSet >::in_expression_t = typename in_expressionset_t::value_t |
using vcsn::rat::copy_impl< InExpSet, OutExpSet >::in_expressionset_t = InExpSet |
|
protected |
using vcsn::rat::copy_impl< InExpSet, OutExpSet >::out_expression_t = typename out_expressionset_t::value_t |
using vcsn::rat::copy_impl< InExpSet, OutExpSet >::out_expressionset_t = OutExpSet |
using vcsn::rat::copy_impl< InExpSet, OutExpSet >::self_t = copy_impl |
using vcsn::rat::copy_impl< InExpSet, OutExpSet >::super_t = typename in_expressionset_t::const_visitor |
|
protected |
using vcsn::rat::copy_impl< InExpSet, OutExpSet >::unary_t = typename super_t::template unary_t<Type> |
using vcsn::rat::copy_impl< InExpSet, OutExpSet >::variadic_t = typename super_t::template variadic_t<Type> |
|
inline |
|
inline |
Entry point: copy/convert v.
Definition at line 53 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_().
|
inlineprotected |
Easy recursion.
Definition at line 60 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::res_.
Referenced by vcsn::rat::copy_impl< InExpSet, OutExpSet >::operator()(), vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), and vcsn::rat::copy_impl< InExpSet, OutExpSet >::VCSN_RAT_VISIT().
|
inlineprotected |
Factor the handling of unary operations.
Definition at line 69 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::out_rs_, vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), and vcsn::rat::copy_impl< InExpSet, OutExpSet >::res_.
|
inlineprotected |
Factor the handling of n-ary operations.
Definition at line 78 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::out_rs_, vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), vcsn::res, and vcsn::rat::copy_impl< InExpSet, OutExpSet >::res_.
|
inlineprotected |
Definition at line 88 of file copy.hh.
References vcsn::rat::add, vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), and vcsn::v.
|
inlineprotected |
Definition at line 89 of file copy.hh.
References vcsn::rat::complement, vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), and vcsn::v.
|
inlineprotected |
Definition at line 90 of file copy.hh.
References vcsn::rat::conjunction, vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), and vcsn::v.
|
inlineprotected |
Definition at line 91 of file copy.hh.
References vcsn::rat::infiltrate, vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), and vcsn::v.
|
inlineprotected |
Definition at line 92 of file copy.hh.
References vcsn::rat::ldivide, vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), and vcsn::v.
|
inlineprotected |
Definition at line 93 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::out_rs_, and vcsn::rat::copy_impl< InExpSet, OutExpSet >::res_.
|
inlineprotected |
Definition at line 97 of file copy.hh.
References vcsn::rat::mul, vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), and vcsn::v.
|
inlineprotected |
Definition at line 99 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), vcsn::rat::shuffle, and vcsn::v.
|
inlineprotected |
Definition at line 100 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), vcsn::rat::star, and vcsn::v.
|
inlineprotected |
Definition at line 101 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), vcsn::rat::transposition, and vcsn::v.
|
inlineprotected |
Definition at line 102 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::out_rs_, and vcsn::rat::copy_impl< InExpSet, OutExpSet >::res_.
|
inlineprotected |
Definition at line 104 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::in_rs_, vcsn::rat::copy_impl< InExpSet, OutExpSet >::out_rs_, vcsn::rat::copy_impl< InExpSet, OutExpSet >::res_, and vcsn::v.
|
inlineprotected |
Definition at line 110 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::in_rs_, vcsn::rat::copy_impl< InExpSet, OutExpSet >::out_rs_, vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), vcsn::rat::copy_impl< InExpSet, OutExpSet >::res_, and vcsn::v.
|
inlineprotected |
Definition at line 117 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::in_rs_, vcsn::rat::copy_impl< InExpSet, OutExpSet >::out_rs_, vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), vcsn::rat::copy_impl< InExpSet, OutExpSet >::res_, and vcsn::v.
|
inlineoverrideprotected |
Definition at line 157 of file copy.hh.
References vcsn::rat::copy_impl< InExpSet, OutExpSet >::res_, and vcsn::v.
|
protected |
expressionset to decode the input value.
Definition at line 165 of file copy.hh.
Referenced by vcsn::rat::copy_impl< InExpSet, OutExpSet >::VCSN_RAT_VISIT(), and vcsn::rat::copy_impl< InExpSet, OutExpSet >::visit_tuple< Dummy >::work_().
|
protected |
expressionset to build the output value.
Definition at line 167 of file copy.hh.
Referenced by vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), vcsn::rat::copy_impl< InExpSet, OutExpSet >::VCSN_RAT_VISIT(), and vcsn::rat::copy_impl< InExpSet, OutExpSet >::visit_tuple< Dummy >::work_().
|
protected |
Output value, under construction.
Definition at line 169 of file copy.hh.
Referenced by vcsn::rat::copy_impl< InExpSet, OutExpSet >::rec_(), vcsn::rat::copy_impl< InExpSet, OutExpSet >::VCSN_RAT_VISIT(), and vcsn::rat::copy_impl< InExpSet, OutExpSet >::visit().