Vcsn
2.0
Be Rational
|
#include <expand.hh>
Public Types | |
using | ratexpset_t = RatExpSet |
using | ratexp_t = typename ratexpset_t::value_t |
using | context_t = context_t_of< ratexpset_t > |
using | weightset_t = weightset_t_of< ratexpset_t > |
using | weight_t = typename weightset_t::value_t |
using | polynomialset_t = ratexp_polynomialset_t< ratexpset_t > |
using | polynomial_t = typename polynomialset_t::value_t |
using | super_t = typename RatExpSet::const_visitor |
Public Member Functions | |
expand_visitor (const ratexpset_t &rs) | |
ratexp_t | operator() (const ratexp_t &v) |
ratexp_t | ratexp (const polynomial_t p) |
polynomial_t | expand (const ratexp_t &e) |
Syntactic sugar: recursive call to this visitor. More... | |
VCSN_RAT_VISIT (zero,) | |
VCSN_RAT_VISIT (one,) | |
VCSN_RAT_VISIT (atom, v) | |
VCSN_RAT_VISIT (sum, v) | |
VCSN_RAT_VISIT (conjunction, v) | |
VCSN_RAT_VISIT (prod, v) | |
VCSN_RAT_VISIT (star, v) | |
VCSN_RAT_VISIT (lweight, v) | |
VCSN_RAT_VISIT (rweight, v) | |
Static Public Member Functions | |
static constexpr const char * | me () |
Private Attributes | |
ratexpset_t | rs_ |
weightset_t | ws_ = *rs_.weightset() |
Shorthand to the weightset. More... | |
polynomialset_t | ps_ = make_ratexp_polynomialset(rs_) |
Polynomialset of ratexps. More... | |
polynomial_t | res_ |
The result. More... | |
RatExpSet | relative to the RatExp. |
using vcsn::rat::expand_visitor< RatExpSet >::context_t = context_t_of<ratexpset_t> |
using vcsn::rat::expand_visitor< RatExpSet >::polynomial_t = typename polynomialset_t::value_t |
using vcsn::rat::expand_visitor< RatExpSet >::polynomialset_t = ratexp_polynomialset_t<ratexpset_t> |
using vcsn::rat::expand_visitor< RatExpSet >::ratexp_t = typename ratexpset_t::value_t |
using vcsn::rat::expand_visitor< RatExpSet >::ratexpset_t = RatExpSet |
using vcsn::rat::expand_visitor< RatExpSet >::super_t = typename RatExpSet::const_visitor |
using vcsn::rat::expand_visitor< RatExpSet >::weight_t = typename weightset_t::value_t |
using vcsn::rat::expand_visitor< RatExpSet >::weightset_t = weightset_t_of<ratexpset_t> |
|
inline |
|
inline |
Syntactic sugar: recursive call to this visitor.
Definition at line 60 of file expand.hh.
References vcsn::rat::expand_visitor< RatExpSet >::res_.
Referenced by vcsn::rat::expand_visitor< RatExpSet >::VCSN_RAT_VISIT().
|
inlinestatic |
|
inline |
Definition at line 44 of file expand.hh.
References vcsn::rat::expand_visitor< RatExpSet >::ratexp(), and vcsn::rat::expand_visitor< RatExpSet >::res_.
|
inline |
Definition at line 51 of file expand.hh.
References vcsn::rat::expand_visitor< RatExpSet >::rs_.
Referenced by vcsn::rat::expand_visitor< RatExpSet >::operator()(), and vcsn::rat::expand_visitor< RatExpSet >::VCSN_RAT_VISIT().
|
inline |
Definition at line 66 of file expand.hh.
References vcsn::rat::expand_visitor< RatExpSet >::ps_, vcsn::rat::expand_visitor< RatExpSet >::res_, and vcsn::polynomialset< Context >::zero().
|
inline |
Definition at line 71 of file expand.hh.
References vcsn::rat::expand_visitor< RatExpSet >::res_, vcsn::rat::expand_visitor< RatExpSet >::rs_, and vcsn::rat::expand_visitor< RatExpSet >::ws_.
|
inline |
Definition at line 76 of file expand.hh.
References vcsn::rat::expand_visitor< RatExpSet >::res_, vcsn::rat::expand_visitor< RatExpSet >::rs_, and vcsn::rat::expand_visitor< RatExpSet >::ws_.
|
inline |
Definition at line 81 of file expand.hh.
References vcsn::polynomialset< Context >::add(), vcsn::rat::expand_visitor< RatExpSet >::expand(), vcsn::rat::expand_visitor< RatExpSet >::ps_, vcsn::rat::expand_visitor< RatExpSet >::res_, and vcsn::polynomialset< Context >::zero().
|
inline |
Definition at line 89 of file expand.hh.
References vcsn::polynomialset< Context >::add_here(), vcsn::rat::expand_visitor< RatExpSet >::expand(), vcsn::rat::expand_visitor< RatExpSet >::ps_, vcsn::rat::expand_visitor< RatExpSet >::res_, vcsn::rat::expand_visitor< RatExpSet >::rs_, vcsn::rat::sum, vcsn::rat::expand_visitor< RatExpSet >::ws_, and vcsn::polynomialset< Context >::zero().
|
inline |
Definition at line 110 of file expand.hh.
References vcsn::rat::expand_visitor< RatExpSet >::expand(), vcsn::polynomialset< Context >::mul(), vcsn::polynomialset< Context >::one(), vcsn::rat::expand_visitor< RatExpSet >::ps_, and vcsn::rat::expand_visitor< RatExpSet >::res_.
|
inline |
Definition at line 118 of file expand.hh.
References vcsn::rat::expand_visitor< RatExpSet >::ratexp(), vcsn::rat::expand_visitor< RatExpSet >::res_, vcsn::rat::expand_visitor< RatExpSet >::rs_, and vcsn::rat::expand_visitor< RatExpSet >::ws_.
|
inline |
Definition at line 125 of file expand.hh.
References vcsn::polynomialset< Context >::lmul(), vcsn::rat::expand_visitor< RatExpSet >::ps_, and vcsn::rat::expand_visitor< RatExpSet >::res_.
|
inline |
Definition at line 131 of file expand.hh.
References vcsn::rat::expand_visitor< RatExpSet >::ps_, vcsn::rat::expand_visitor< RatExpSet >::res_, and vcsn::polynomialset< Context >::rmul().
|
private |
Polynomialset of ratexps.
Definition at line 142 of file expand.hh.
Referenced by vcsn::rat::expand_visitor< RatExpSet >::VCSN_RAT_VISIT().
|
private |
The result.
Definition at line 144 of file expand.hh.
Referenced by vcsn::rat::expand_visitor< RatExpSet >::expand(), vcsn::rat::expand_visitor< RatExpSet >::operator()(), and vcsn::rat::expand_visitor< RatExpSet >::VCSN_RAT_VISIT().
|
private |
Definition at line 138 of file expand.hh.
Referenced by vcsn::rat::expand_visitor< RatExpSet >::ratexp(), and vcsn::rat::expand_visitor< RatExpSet >::VCSN_RAT_VISIT().
|
private |
Shorthand to the weightset.
Definition at line 140 of file expand.hh.
Referenced by vcsn::rat::expand_visitor< RatExpSet >::VCSN_RAT_VISIT().