Vcsn  2.2
Be Rational
vcsn::rat::info< ExpSet > Class Template Reference

Gather information of the number of the different node types. More...

#include <fwd.hh>

Inheritance diagram for vcsn::rat::info< ExpSet >:
Collaboration diagram for vcsn::rat::info< ExpSet >:

Classes

struct  visit_tuple
 
struct  visit_tuple< false, Dummy >
 

Public Types

using expressionset_t = ExpSet
 
using super_t = typename expressionset_t::const_visitor
 
using self_t = info
 
using context_t = context_t_of< expressionset_t >
 
using node_t = typename expressionset_t::node_t
 
using tuple_t = typename super_t::tuple_t
 

Public Member Functions

void operator() (const node_t &v)
 For each node type, count its number of occurrences. More...
 
void operator() (const std::shared_ptr< const node_t > &v)
 Entry point: compute info about v. More...
 
void clear ()
 
template<typename OtherExpSet >
infooperator+= (const info< OtherExpSet > &other)
 Add the result from another info operator. More...
 

Static Public Member Functions

static constexpr const charme ()
 Name of this algorithm, for error messages. More...
 

Public Attributes

size_t depth = 0
 Depth of the tree. More...
 
size_t atom = 0
 
size_t complement = 0
 
size_t conjunction = 0
 
size_t infiltration = 0
 
size_t ldiv = 0
 
size_t lweight = 0
 
size_t one = 0
 
size_t prod = 0
 
size_t rweight = 0
 
size_t shuffle = 0
 
size_t star = 0
 
size_t sum = 0
 
size_t transposition = 0
 
size_t zero = 0
 
size_t tuple = 0
 Number of tuple operators. More...
 

Private Types

template<type_t Type>
using unary_t = rat::unary< Type, context_t >
 
template<type_t Type>
using variadic_t = rat::variadic< Type, context_t >
 

Private Member Functions

 VCSN_RAT_VISIT (atom, v)
 
 VCSN_RAT_VISIT (complement, v)
 
 VCSN_RAT_VISIT (conjunction, v)
 
 VCSN_RAT_VISIT (infiltration, v)
 
 VCSN_RAT_VISIT (ldiv, v)
 
 VCSN_RAT_VISIT (lweight, v)
 
 VCSN_RAT_VISIT (one, v)
 
 VCSN_RAT_VISIT (prod, v)
 
 VCSN_RAT_VISIT (rweight, v)
 
 VCSN_RAT_VISIT (shuffle, v)
 
 VCSN_RAT_VISIT (star, v)
 
 VCSN_RAT_VISIT (sum, v)
 
 VCSN_RAT_VISIT (transposition, v)
 
 VCSN_RAT_VISIT (zero, v)
 
template<rat::exp::type_t Type>
void visit_ (const unary_t< Type > &v)
 Factor the visitation of unary nodes. More...
 
template<exp::type_t Type>
void visit_ (const variadic_t< Type > &v)
 Factor the visitation of variadic nodes. More...
 
void visit (const tuple_t &v, std::true_type) override
 

Detailed Description

template<typename ExpSet>
class vcsn::rat::info< ExpSet >

Gather information of the number of the different node types.

Template Parameters
ExpSetthe expressionset type.

Definition at line 20 of file fwd.hh.

Member Typedef Documentation

template<typename ExpSet>
using vcsn::rat::info< ExpSet >::context_t = context_t_of<expressionset_t>

Definition at line 25 of file info.hh.

template<typename ExpSet>
using vcsn::rat::info< ExpSet >::expressionset_t = ExpSet

Definition at line 21 of file info.hh.

template<typename ExpSet>
using vcsn::rat::info< ExpSet >::node_t = typename expressionset_t::node_t

Definition at line 26 of file info.hh.

template<typename ExpSet>
using vcsn::rat::info< ExpSet >::self_t = info

Definition at line 23 of file info.hh.

template<typename ExpSet>
using vcsn::rat::info< ExpSet >::super_t = typename expressionset_t::const_visitor

Definition at line 22 of file info.hh.

template<typename ExpSet>
using vcsn::rat::info< ExpSet >::tuple_t = typename super_t::tuple_t

Definition at line 147 of file info.hh.

template<typename ExpSet>
template<type_t Type>
using vcsn::rat::info< ExpSet >::unary_t = rat::unary<Type, context_t>
private

Definition at line 114 of file info.hh.

template<typename ExpSet>
template<type_t Type>
using vcsn::rat::info< ExpSet >::variadic_t = rat::variadic<Type, context_t>
private

Definition at line 125 of file info.hh.

Member Function Documentation

template<typename ExpSet>
void vcsn::rat::info< ExpSet >::clear ( )
inline

Definition at line 41 of file info.hh.

References vcsn::rat::info< ExpSet >::depth.

Referenced by vcsn::rat::info< ExpSet >::operator()().

template<typename ExpSet>
static constexpr const char* vcsn::rat::info< ExpSet >::me ( )
inlinestatic

Name of this algorithm, for error messages.

Definition at line 85 of file info.hh.

template<typename ExpSet>
void vcsn::rat::info< ExpSet >::operator() ( const node_t v)
inline

For each node type, count its number of occurrences.

Definition at line 29 of file info.hh.

References vcsn::rat::info< ExpSet >::clear().

Referenced by vcsn::rat::info< ExpSet >::operator()().

Here is the call graph for this function:

template<typename ExpSet>
void vcsn::rat::info< ExpSet >::operator() ( const std::shared_ptr< const node_t > &  v)
inline

Entry point: compute info about v.

Definition at line 36 of file info.hh.

References vcsn::rat::info< ExpSet >::operator()().

Here is the call graph for this function:

template<typename ExpSet>
template<typename OtherExpSet >
info& vcsn::rat::info< ExpSet >::operator+= ( const info< OtherExpSet > &  other)
inline

Add the result from another info operator.

Definition at line 63 of file info.hh.

References vcsn::rat::info< ExpSet >::depth.

template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( atom  ,
 
)
inlineprivate

Definition at line 96 of file info.hh.

References vcsn::rat::info< ExpSet >::atom, vcsn::detail::v, and vcsn::detail::void.

template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( complement  ,
 
)
inlineprivate

Definition at line 97 of file info.hh.

References vcsn::rat::info< ExpSet >::complement, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().

Here is the call graph for this function:

template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( conjunction  ,
 
)
inlineprivate

Definition at line 98 of file info.hh.

References vcsn::rat::info< ExpSet >::conjunction, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().

Here is the call graph for this function:

template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( infiltration  ,
 
)
inlineprivate

Definition at line 99 of file info.hh.

References vcsn::rat::info< ExpSet >::infiltration, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().

Here is the call graph for this function:

template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( ldiv  ,
 
)
inlineprivate

Definition at line 100 of file info.hh.

References vcsn::rat::info< ExpSet >::ldiv, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().

Here is the call graph for this function:

template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( lweight  ,
 
)
inlineprivate
template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( one  ,
 
)
inlineprivate

Definition at line 102 of file info.hh.

References vcsn::rat::info< ExpSet >::one, vcsn::detail::v, and vcsn::detail::void.

template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( prod  ,
 
)
inlineprivate

Definition at line 103 of file info.hh.

References vcsn::rat::info< ExpSet >::prod, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().

Here is the call graph for this function:

template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( rweight  ,
 
)
inlineprivate
template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( shuffle  ,
 
)
inlineprivate

Definition at line 105 of file info.hh.

References vcsn::rat::info< ExpSet >::shuffle, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().

Here is the call graph for this function:

template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( star  ,
 
)
inlineprivate

Definition at line 106 of file info.hh.

References vcsn::rat::info< ExpSet >::star, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().

Here is the call graph for this function:

template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( sum  ,
 
)
inlineprivate

Definition at line 107 of file info.hh.

References vcsn::rat::info< ExpSet >::sum, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().

Here is the call graph for this function:

template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( transposition  ,
 
)
inlineprivate

Definition at line 108 of file info.hh.

References vcsn::rat::info< ExpSet >::transposition, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().

Here is the call graph for this function:

template<typename ExpSet>
vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT ( zero  ,
 
)
inlineprivate

Definition at line 109 of file info.hh.

template<typename ExpSet>
void vcsn::rat::info< ExpSet >::visit ( const tuple_t v,
std::true_type   
)
inlineoverrideprivate

Definition at line 194 of file info.hh.

References vcsn::detail::v.

template<typename ExpSet>
template<rat::exp::type_t Type>
void vcsn::rat::info< ExpSet >::visit_ ( const unary_t< Type > &  v)
inlineprivate

Factor the visitation of unary nodes.

Definition at line 118 of file info.hh.

References vcsn::rat::info< ExpSet >::depth, and vcsn::rat::unary< Type, Context >::sub().

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

Here is the call graph for this function:

template<typename ExpSet>
template<exp::type_t Type>
void vcsn::rat::info< ExpSet >::visit_ ( const variadic_t< Type > &  v)
inlineprivate

Factor the visitation of variadic nodes.

Definition at line 129 of file info.hh.

Member Data Documentation

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::atom = 0

Definition at line 96 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::complement = 0

Definition at line 97 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::conjunction = 0

Definition at line 98 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::infiltration = 0

Definition at line 99 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::ldiv = 0

Definition at line 100 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::lweight = 0

Definition at line 101 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::one = 0

Definition at line 102 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::prod = 0

Definition at line 103 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::rweight = 0

Definition at line 104 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::shuffle = 0

Definition at line 105 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::star = 0

Definition at line 106 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::sum = 0

Definition at line 107 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::transposition = 0

Definition at line 108 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::tuple = 0

Number of tuple operators.

Definition at line 146 of file info.hh.

Referenced by vcsn::rat::info< ExpSet >::visit_tuple< bool, Dummy >::operator()().

template<typename ExpSet>
size_t vcsn::rat::info< ExpSet >::zero = 0

Definition at line 109 of file info.hh.


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