Awali
Another Weighted Automata library
|
An automaton_t is essentially a shared pointer to an abstract_automaton_t, but also contains static functions serving as constructors. More...
#include <automaton.hh>
Data Structures | |
struct | with_int_labels |
Helper class that contains convenience constructor for automata with int labels. More... | |
Public Member Functions | |
automaton_t () | |
Buils an automaton_t that is essentially a nullptr ; should generally not be used. More... | |
template<class T > | |
automaton_t (const std::shared_ptr< T > &ptr, typename std::enable_if< std::is_base_of< abstract_automaton_t, T >::value, int >::type=0) | |
Builds a automaton from a shared pointer to a class derived of abstract_automaton_t; should generally not be used. More... | |
automaton_t (context::labelset_description ld, context::weightset_description wd) | |
Builds a new empty automaton whose labelset is described by ld and weightset by wd . More... | |
Static Public Member Functions | |
static automaton_t | from (std::string alphabet, bool allow_eps_transitions, std::string="B") |
Builds a boolean automaton over given alphabet , that possibly allows eps_transitions. More... | |
static automaton_t | from (std::string alphabet, std::string weightset="B", bool allow_eps_transitions=false) |
Builds an automaton with labels in given alphabet possibly allowing epsilon transitions, and with weights in given weightset . More... | |
static automaton_t | from_context (context_t ctx) |
Builds a new automaton whose labelset and weightset are given by ctx . More... | |
An automaton_t is essentially a shared pointer to an abstract_automaton_t, but also contains static functions serving as constructors.
See the documentation of abstract_automaton_t for help on the methods on automata.
See also group Factories.
awali::dyn::automaton_t::automaton_t | ( | ) |
Buils an automaton_t that is essentially a nullptr
; should generally not be used.
awali::dyn::automaton_t::automaton_t | ( | const std::shared_ptr< T > & | ptr, |
typename std::enable_if< std::is_base_of< abstract_automaton_t, T >::value, int >::type | = 0 |
||
) |
Builds a automaton from a shared pointer to a class derived of abstract_automaton_t; should generally not be used.
Both ptr
and the built automaton_t will share ownership of pointed object.