Vcsn
2.2
Be Rational
|
Gather information of the number of the different node types. More...
#include <fwd.hh>
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 > | |
info & | operator+= (const info< OtherExpSet > &other) |
Add the result from another info operator. More... | |
Static Public Member Functions | |
static constexpr const char * | me () |
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 |
Gather information of the number of the different node types.
ExpSet | the expressionset type. |
using vcsn::rat::info< ExpSet >::context_t = context_t_of<expressionset_t> |
using vcsn::rat::info< ExpSet >::expressionset_t = ExpSet |
using vcsn::rat::info< ExpSet >::node_t = typename expressionset_t::node_t |
using vcsn::rat::info< ExpSet >::self_t = info |
using vcsn::rat::info< ExpSet >::super_t = typename expressionset_t::const_visitor |
using vcsn::rat::info< ExpSet >::tuple_t = typename super_t::tuple_t |
|
private |
|
private |
|
inline |
Definition at line 41 of file info.hh.
References vcsn::rat::info< ExpSet >::depth.
Referenced by vcsn::rat::info< ExpSet >::operator()().
|
inlinestatic |
|
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()().
|
inline |
Entry point: compute info about v.
Definition at line 36 of file info.hh.
References vcsn::rat::info< ExpSet >::operator()().
|
inline |
Add the result from another info operator.
Definition at line 63 of file info.hh.
References vcsn::rat::info< ExpSet >::depth.
|
inlineprivate |
Definition at line 96 of file info.hh.
References vcsn::rat::info< ExpSet >::atom, vcsn::detail::v, and vcsn::detail::void.
|
inlineprivate |
Definition at line 97 of file info.hh.
References vcsn::rat::info< ExpSet >::complement, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().
|
inlineprivate |
Definition at line 98 of file info.hh.
References vcsn::rat::info< ExpSet >::conjunction, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().
|
inlineprivate |
Definition at line 99 of file info.hh.
References vcsn::rat::info< ExpSet >::infiltration, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().
|
inlineprivate |
Definition at line 100 of file info.hh.
References vcsn::rat::info< ExpSet >::ldiv, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().
|
inlineprivate |
Definition at line 101 of file info.hh.
References vcsn::rat::info< ExpSet >::depth, vcsn::rat::info< ExpSet >::lweight, and vcsn::detail::v.
|
inlineprivate |
Definition at line 102 of file info.hh.
References vcsn::rat::info< ExpSet >::one, vcsn::detail::v, and vcsn::detail::void.
|
inlineprivate |
Definition at line 103 of file info.hh.
References vcsn::rat::info< ExpSet >::prod, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().
|
inlineprivate |
Definition at line 104 of file info.hh.
References vcsn::rat::info< ExpSet >::depth, vcsn::rat::info< ExpSet >::rweight, and vcsn::detail::v.
|
inlineprivate |
Definition at line 105 of file info.hh.
References vcsn::rat::info< ExpSet >::shuffle, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().
|
inlineprivate |
Definition at line 106 of file info.hh.
References vcsn::rat::info< ExpSet >::star, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().
|
inlineprivate |
Definition at line 107 of file info.hh.
References vcsn::rat::info< ExpSet >::sum, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().
|
inlineprivate |
Definition at line 108 of file info.hh.
References vcsn::rat::info< ExpSet >::transposition, vcsn::detail::v, and vcsn::rat::info< ExpSet >::visit_().
|
inlineprivate |
|
inlineoverrideprivate |
Definition at line 194 of file info.hh.
References vcsn::detail::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().
|
inlineprivate |
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().
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().
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().
size_t vcsn::rat::info< ExpSet >::depth = 0 |
Depth of the tree.
Definition at line 88 of file info.hh.
Referenced by vcsn::rat::info< ExpSet >::clear(), vcsn::rat::info< ExpSet >::visit_tuple< bool, Dummy >::operator()(), vcsn::rat::info< ExpSet >::operator+=(), vcsn::rat::info< ExpSet >::VCSN_RAT_VISIT(), and vcsn::rat::info< ExpSet >::visit_().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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()().
size_t vcsn::rat::info< ExpSet >::zero = 0 |