Vcsn
2.0
Be Rational
|
#include <copy.hh>
Public Types | |
using | in_ratexpset_t = InRatExpSet |
using | out_ratexpset_t = OutRatExpSet |
using | in_value_t = typename in_ratexpset_t::value_t |
using | out_value_t = typename out_ratexpset_t::value_t |
using | super_t = typename in_ratexpset_t::const_visitor |
using | node_t = typename super_t::node_t |
using | inner_t = typename super_t::inner_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 > |
using | leaf_t = typename super_t::leaf_t |
Public Member Functions | |
copier (const in_ratexpset_t &in_rs, const out_ratexpset_t &out_rs) | |
out_value_t | operator() (const in_value_t &v) |
Entry point: print v. More... | |
Private Types | |
using | conjunction_t = typename super_t::conjunction_t |
using | ldiv_t = typename super_t::ldiv_t |
using | prod_t = typename super_t::prod_t |
using | shuffle_t = typename super_t::shuffle_t |
using | sum_t = typename super_t::sum_t |
using | complement_t = typename super_t::complement_t |
using | star_t = typename super_t::star_t |
using | transposition_t = typename super_t::transposition_t |
using | one_t = typename super_t::one_t |
using | zero_t = typename super_t::zero_t |
using | atom_t = typename super_t::atom_t |
using | lweight_t = typename super_t::lweight_t |
using | rweight_t = typename super_t::rweight_t |
Private Member Functions | |
template<exp::type_t Type> | |
void | copy_unary (const unary_t< Type > &v) |
Factor the copy of n-ary operations. More... | |
template<exp::type_t Type> | |
void | copy_variadic (const variadic_t< Type > &v) |
Factor the copy of n-ary operations. More... | |
out_value_t | copy (const in_value_t &v) |
virtual void | visit (const conjunction_t &v) |
virtual void | visit (const ldiv_t &v) |
virtual void | visit (const prod_t &v) |
virtual void | visit (const shuffle_t &v) |
virtual void | visit (const sum_t &v) |
virtual void | visit (const complement_t &v) |
virtual void | visit (const star_t &v) |
virtual void | visit (const transposition_t &v) |
virtual void | visit (const one_t &v) |
virtual void | visit (const zero_t &v) |
virtual void | visit (const atom_t &v) |
virtual void | visit (const lweight_t &v) |
virtual void | visit (const rweight_t &v) |
Private Attributes | |
const in_ratexpset_t & | in_rs_ |
ratexpset to decode the input value. More... | |
const out_ratexpset_t & | out_rs_ |
ratexpset to build the output value. More... | |
out_value_t | res_ |
Output value, under construction. More... | |
|
private |
|
private |
|
private |
using vcsn::rat::copier< InRatExpSet, OutRatExpSet >::in_ratexpset_t = InRatExpSet |
using vcsn::rat::copier< InRatExpSet, OutRatExpSet >::in_value_t = typename in_ratexpset_t::value_t |
using vcsn::rat::copier< InRatExpSet, OutRatExpSet >::inner_t = typename super_t::inner_t |
|
private |
using vcsn::rat::copier< InRatExpSet, OutRatExpSet >::leaf_t = typename super_t::leaf_t |
|
private |
using vcsn::rat::copier< InRatExpSet, OutRatExpSet >::node_t = typename super_t::node_t |
|
private |
using vcsn::rat::copier< InRatExpSet, OutRatExpSet >::out_ratexpset_t = OutRatExpSet |
using vcsn::rat::copier< InRatExpSet, OutRatExpSet >::out_value_t = typename out_ratexpset_t::value_t |
|
private |
|
private |
|
private |
|
private |
|
private |
using vcsn::rat::copier< InRatExpSet, OutRatExpSet >::super_t = typename in_ratexpset_t::const_visitor |
|
private |
using vcsn::rat::copier< InRatExpSet, OutRatExpSet >::unary_t = typename super_t::template unary_t<Type> |
using vcsn::rat::copier< InRatExpSet, OutRatExpSet >::variadic_t = typename super_t::template variadic_t<Type> |
|
private |
|
inline |
|
inlineprivate |
Definition at line 67 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::res_.
Referenced by vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy_unary(), vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy_variadic(), vcsn::rat::copier< InRatExpSet, OutRatExpSet >::operator()(), and vcsn::rat::copier< InRatExpSet, OutRatExpSet >::visit().
|
inlineprivate |
Factor the copy of n-ary operations.
Definition at line 48 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy(), and vcsn::rat::copier< InRatExpSet, OutRatExpSet >::res_.
Referenced by vcsn::rat::copier< InRatExpSet, OutRatExpSet >::visit().
|
inlineprivate |
Factor the copy of n-ary operations.
Definition at line 57 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy(), and vcsn::rat::copier< InRatExpSet, OutRatExpSet >::res_.
Referenced by vcsn::rat::copier< InRatExpSet, OutRatExpSet >::visit().
|
inline |
Entry point: print v.
Definition at line 39 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy().
|
inlineprivatevirtual |
Definition at line 77 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy_variadic().
|
inlineprivatevirtual |
Definition at line 78 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy_variadic().
|
inlineprivatevirtual |
Definition at line 79 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy_variadic().
|
inlineprivatevirtual |
Definition at line 80 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy_variadic().
|
inlineprivatevirtual |
Definition at line 81 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy_variadic().
|
inlineprivatevirtual |
Definition at line 83 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy_unary().
|
inlineprivatevirtual |
Definition at line 84 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy_unary().
|
inlineprivatevirtual |
Definition at line 85 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy_unary().
|
inlineprivatevirtual |
Definition at line 87 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::out_rs_, and vcsn::rat::copier< InRatExpSet, OutRatExpSet >::res_.
|
inlineprivatevirtual |
|
inlineprivatevirtual |
Definition at line 99 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::in_rs_, vcsn::rat::copier< InRatExpSet, OutRatExpSet >::out_rs_, and vcsn::rat::copier< InRatExpSet, OutRatExpSet >::res_.
|
inlineprivatevirtual |
Definition at line 105 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy(), vcsn::rat::copier< InRatExpSet, OutRatExpSet >::in_rs_, vcsn::rat::copier< InRatExpSet, OutRatExpSet >::out_rs_, and vcsn::rat::copier< InRatExpSet, OutRatExpSet >::res_.
|
inlineprivatevirtual |
Definition at line 112 of file copy.hh.
References vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy(), vcsn::rat::copier< InRatExpSet, OutRatExpSet >::in_rs_, vcsn::rat::copier< InRatExpSet, OutRatExpSet >::out_rs_, and vcsn::rat::copier< InRatExpSet, OutRatExpSet >::res_.
|
private |
ratexpset to decode the input value.
Definition at line 122 of file copy.hh.
Referenced by vcsn::rat::copier< InRatExpSet, OutRatExpSet >::visit().
|
private |
ratexpset to build the output value.
Definition at line 124 of file copy.hh.
Referenced by vcsn::rat::copier< InRatExpSet, OutRatExpSet >::visit().
|
private |
Output value, under construction.
Definition at line 126 of file copy.hh.
Referenced by vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy(), vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy_unary(), vcsn::rat::copier< InRatExpSet, OutRatExpSet >::copy_variadic(), and vcsn::rat::copier< InRatExpSet, OutRatExpSet >::visit().