Vcsn  2.3
Be Rational
vcsn::rat::project_impl< InExpSet, Tape > Class Template Reference

Functor to project a rational expression. More...

#include <project.hh>

Inheritance diagram for vcsn::rat::project_impl< InExpSet, Tape >:
Collaboration diagram for vcsn::rat::project_impl< InExpSet, Tape >:

Classes

struct  visit_tuple
 
struct  visit_tuple< false, Dummy >
 

Public Types

using in_expressionset_t = InExpSet
 
using in_context_t = context_t_of< in_expressionset_t >
 
using out_expressionset_t = typename in_expressionset_t::template project_t< Tape >
 
using super_t = typename in_expressionset_t::const_visitor
 
using self_t = project_impl
 
using in_expression_t = typename in_expressionset_t::value_t
 
using out_expression_t = typename out_expressionset_t::value_t
 
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

 project_impl (const in_expressionset_t &in_rs)
 
out_expression_t operator() (const in_expression_t &v)
 Entry point: print v. More...
 

Private Types

using bin_t = out_expression_t(out_expressionset_t::*)(const out_expression_t &, const out_expression_t &) const
 
using tuple_t = typename super_t::tuple_t
 

Private Member Functions

out_expression_t project (const in_expression_t &v)
 Easy recursion. More...
 
template<exp::type_t Type>
void project_ (const unary_t< Type > &v)
 Factor the handling of unary operations. More...
 
template<exp::type_t Type, typename Fun >
void project_ (const variadic_t< Type > &v, Fun &&fun)
 Factor the handling of n-ary operations. More...
 
 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 (add, 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
 

Private Attributes

const in_expressionset_tin_rs_
 expressionset to decode the input value. More...
 
out_expressionset_t out_rs_
 expressionset to build the output value. More...
 
out_expression_t res_
 Output value, under construction. More...
 

Detailed Description

template<typename InExpSet, size_t Tape>
class vcsn::rat::project_impl< InExpSet, Tape >

Functor to project a rational expression.

Template Parameters
InExpSetthe input expressionset type
Tapethe selected tape

Definition at line 16 of file project.hh.

Member Typedef Documentation

template<typename InExpSet, size_t Tape>
using vcsn::rat::project_impl< InExpSet, Tape >::bin_t = out_expression_t (out_expressionset_t::*)(const out_expression_t&, const out_expression_t&) const
private

Definition at line 90 of file project.hh.

template<typename InExpSet, size_t Tape>
using vcsn::rat::project_impl< InExpSet, Tape >::in_context_t = context_t_of<in_expressionset_t>

Definition at line 21 of file project.hh.

template<typename InExpSet, size_t Tape>
using vcsn::rat::project_impl< InExpSet, Tape >::in_expression_t = typename in_expressionset_t::value_t

Definition at line 27 of file project.hh.

template<typename InExpSet, size_t Tape>
using vcsn::rat::project_impl< InExpSet, Tape >::in_expressionset_t = InExpSet

Definition at line 20 of file project.hh.

template<typename InExpSet, size_t Tape>
using vcsn::rat::project_impl< InExpSet, Tape >::inner_t = typename super_t::inner_t

Definition at line 30 of file project.hh.

template<typename InExpSet, size_t Tape>
using vcsn::rat::project_impl< InExpSet, Tape >::leaf_t = typename super_t::leaf_t

Definition at line 35 of file project.hh.

template<typename InExpSet, size_t Tape>
using vcsn::rat::project_impl< InExpSet, Tape >::node_t = typename super_t::node_t

Definition at line 29 of file project.hh.

template<typename InExpSet, size_t Tape>
using vcsn::rat::project_impl< InExpSet, Tape >::out_expression_t = typename out_expressionset_t::value_t

Definition at line 28 of file project.hh.

template<typename InExpSet, size_t Tape>
using vcsn::rat::project_impl< InExpSet, Tape >::out_expressionset_t = typename in_expressionset_t::template project_t<Tape>

Definition at line 23 of file project.hh.

template<typename InExpSet, size_t Tape>
using vcsn::rat::project_impl< InExpSet, Tape >::self_t = project_impl

Definition at line 25 of file project.hh.

template<typename InExpSet, size_t Tape>
using vcsn::rat::project_impl< InExpSet, Tape >::super_t = typename in_expressionset_t::const_visitor

Definition at line 24 of file project.hh.

template<typename InExpSet, size_t Tape>
using vcsn::rat::project_impl< InExpSet, Tape >::tuple_t = typename super_t::tuple_t
private

Definition at line 118 of file project.hh.

template<typename InExpSet, size_t Tape>
template<type_t Type>
using vcsn::rat::project_impl< InExpSet, Tape >::unary_t = typename super_t::template unary_t<Type>

Definition at line 32 of file project.hh.

template<typename InExpSet, size_t Tape>
template<type_t Type>
using vcsn::rat::project_impl< InExpSet, Tape >::variadic_t = typename super_t::template variadic_t<Type>

Definition at line 34 of file project.hh.

Constructor & Destructor Documentation

template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::project_impl ( const in_expressionset_t in_rs)
inline

Definition at line 37 of file project.hh.

Member Function Documentation

template<typename InExpSet, size_t Tape>
out_expression_t vcsn::rat::project_impl< InExpSet, Tape >::operator() ( const in_expression_t v)
inline

Entry point: print v.

Definition at line 44 of file project.hh.

References vcsn::rat::project_impl< InExpSet, Tape >::project().

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
template<exp::type_t Type>
void vcsn::rat::project_impl< InExpSet, Tape >::project_ ( const unary_t< Type > &  v)
inlineprivate

Factor the handling of unary operations.

Definition at line 60 of file project.hh.

References vcsn::rat::project_impl< InExpSet, Tape >::project(), and vcsn::rat::project_impl< InExpSet, Tape >::res_.

Referenced by vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT().

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
template<exp::type_t Type, typename Fun >
void vcsn::rat::project_impl< InExpSet, Tape >::project_ ( const variadic_t< Type > &  v,
Fun &&  fun 
)
inlineprivate

Factor the handling of n-ary operations.

Definition at line 70 of file project.hh.

References vcsn::rat::project_impl< InExpSet, Tape >::out_rs_, vcsn::rat::project_impl< InExpSet, Tape >::project(), vcsn::res, and vcsn::rat::project_impl< InExpSet, Tape >::res_.

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( complement  ,
v   
)
inlineprivate

Definition at line 81 of file project.hh.

References vcsn::rat::project_impl< InExpSet, Tape >::project_(), and vcsn::v.

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( conjunction  ,
v   
)
inlineprivate

Definition at line 82 of file project.hh.

References vcsn::rat::conjunction, vcsn::rat::project_impl< InExpSet, Tape >::project_(), and vcsn::v.

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( infiltrate  ,
v   
)
inlineprivate

Definition at line 83 of file project.hh.

References vcsn::rat::infiltrate, vcsn::rat::project_impl< InExpSet, Tape >::project_(), and vcsn::v.

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( ldivide  ,
v   
)
inlineprivate

Definition at line 84 of file project.hh.

References vcsn::rat::ldivide, vcsn::rat::project_impl< InExpSet, Tape >::project_(), and vcsn::v.

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( one  )
inlineprivate
template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( mul  ,
v   
)
inlineprivate

Definition at line 91 of file project.hh.

References vcsn::rat::mul, vcsn::rat::project_impl< InExpSet, Tape >::project_(), and vcsn::v.

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( shuffle  ,
v   
)
inlineprivate

Definition at line 93 of file project.hh.

References vcsn::rat::project_impl< InExpSet, Tape >::project_(), vcsn::rat::shuffle, and vcsn::v.

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( star  ,
v   
)
inlineprivate

Definition at line 94 of file project.hh.

References vcsn::rat::project_impl< InExpSet, Tape >::project_(), and vcsn::v.

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( add  ,
v   
)
inlineprivate

Definition at line 95 of file project.hh.

References vcsn::rat::add, vcsn::rat::project_impl< InExpSet, Tape >::project_(), and vcsn::v.

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( transposition  ,
v   
)
inlineprivate

Definition at line 96 of file project.hh.

References vcsn::rat::project_impl< InExpSet, Tape >::project_(), and vcsn::v.

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( zero  )
inlineprivate
template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( atom  ,
v   
)
inlineprivate
template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( lweight  ,
v   
)
inlineprivate

Definition at line 104 of file project.hh.

References vcsn::rat::project_impl< InExpSet, Tape >::out_rs_, vcsn::rat::project_impl< InExpSet, Tape >::project(), vcsn::rat::project_impl< InExpSet, Tape >::res_, and vcsn::v.

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT ( rweight  ,
v   
)
inlineprivate

Definition at line 109 of file project.hh.

References vcsn::rat::project_impl< InExpSet, Tape >::out_rs_, vcsn::rat::project_impl< InExpSet, Tape >::project(), vcsn::rat::project_impl< InExpSet, Tape >::res_, and vcsn::v.

Here is the call graph for this function:

template<typename InExpSet, size_t Tape>
void vcsn::rat::project_impl< InExpSet, Tape >::visit ( const tuple_t v,
std::true_type   
)
inlineoverrideprivate

Definition at line 142 of file project.hh.

References vcsn::rat::project_impl< InExpSet, Tape >::res_, and vcsn::v.

Member Data Documentation

template<typename InExpSet, size_t Tape>
const in_expressionset_t& vcsn::rat::project_impl< InExpSet, Tape >::in_rs_
private

expressionset to decode the input value.

Definition at line 148 of file project.hh.

template<typename InExpSet, size_t Tape>
out_expressionset_t vcsn::rat::project_impl< InExpSet, Tape >::out_rs_
private

expressionset to build the output value.

Definition at line 150 of file project.hh.

Referenced by vcsn::rat::project_impl< InExpSet, Tape >::project_(), and vcsn::rat::project_impl< InExpSet, Tape >::VCSN_RAT_VISIT().


The documentation for this class was generated from the following file: