18 #ifndef DYN_CORE_RATEXP_HH
19 #define DYN_CORE_RATEXP_HH
66 class ratexp_t :
public std::shared_ptr<abstract_ratexp_t> {
84 typename std::enable_if<
112 bool fixed_alphabet =
true);
124 return shared_ptr<abstract_ratexp_t>::operator*();
138 std::string alphabet =
"auto");
152 bool fixed_alphabet =
true);
160 bool fixed_alphabet =
true);
Abstract interface for rational expression at the dynamical layer; lists the services provided by aut...
Definition: abstract_ratexp.hh:91
Dynamical wrapper for a context, that is a weightset and a labelset.
Definition: context.hh:43
Main class for representing rational expresson at the dynamical layer.
Definition: ratexp.hh:66
ratexp_t operator+(ratexp_t exp)
Sum of two rational expressions.
ratexp_t operator*(ratexp_t exp)
ratexp_t(const std::shared_ptr< T > &ptr, typename std::enable_if< std::is_base_of< abstract_ratexp_t, T >::value, int >::type=0)
Builds a ratexp_t from a shared pointer to a class derived of abstract_ratexp_t; should generally not...
Definition: ratexp.hh:83
ratexp_t()
Buils an automaton_t that is essentially a nullptr; should generally not be used.
Definition: ratexp.hh:72
static ratexp_t from_size(std::string str, unsigned n, std::string weightset="B")
static ratexp_t from(std::string str, unsigned n, std::string weightset="B")
static ratexp_t from_range(std::string str, int l, int u, std::string weightset="B")
static ratexp_t from_context(std::string str, context::labelset_description ld, context::weightset_description wd, bool fixed_alphabet=true)
ratexp_t(std::string str, context::labelset_description ld, context::weightset_description wd, bool fixed_alphabet=true)
Builds the expression represented by str and whose labelset is described by ld and weightset by wd.
static ratexp_t from(std::string str, std::string weightset="B")
static ratexp_t from(std::string str, std::vector< std::string > alphabets, std::string weightset="B")
static ratexp_t from_context(std::string str, context_t ctx, bool fixed_alphabet=true)
Builds a rational expression from a string representation and a context.
static ratexp_t from(std::string str, std::string weightset="B", std::string alphabet="auto")
Builds a rational expression from its string representation.
std::shared_ptr< weightset_description_impl > weightset_description
Definition: description_types.hh:33
weightset_description weightset(const std::string &k)
std::shared_ptr< labelset_description_impl > labelset_description
Definition: description_types.hh:32
std::vector< std::vector< char > > alphabets(automaton_t tdc)
static constexpr TOP< void > value
Definition: priority.hh:93
Main namespace of Awali.
Definition: ato.hh:22
Helper class that contains convenience factories to build expressions whose labels are integers.
Definition: ratexp.hh:166
Helper class that contains convenience factories to build expressions whose labels are tuples.
Definition: ratexp.hh:192