Awali
Another Weighted Automata library
|
An automaton whose states are tuples of states of automata. More...
#include <tuple_history.hh>
Public Types | |
using | automata_t = Auts |
The type of origin automata. More... | |
using | indices_t = awali::internal::make_index_sequence< std::tuple_size< Auts >::value > |
The list of automaton indices as a static list. More... | |
template<size_t I> | |
using | input_automaton_t = internal::base_t< typename std::tuple_element< I, automata_t >::type > |
The type of the Ith origin automaton, unqualified. More... | |
using | origins_t = std::map< state_t, tuple_t > |
A map from result state to tuple of original states. More... | |
template<std::size_t... I> | |
using | seq = awali::internal::index_sequence< I... > |
A static list of integers. More... | |
using | tuple_t = typename std::cst_tuple< state_t, std::tuple_size< Auts >::value >::type |
Tuple of states of input automata. More... | |
Public Member Functions | |
tuple_history (const automata_t &auts) | |
void | add_state (state_t s, const tuple_t &set) |
history_kind_t | get_nature () const override |
The type of the resulting automaton. More... | |
state_t | get_state (state_t) override |
std::vector< state_t > | get_state_set (state_t s) override |
template<size_t... I> | |
std::vector< state_t > | get_state_set (state_t s, seq< I... >) |
bool | has_history (state_t s) const override |
const origins_t & | origins () const |
std::ostream & | print_state_name (state_t s, std::ostream &o, const std::string &fmt) const override |
template<size_t... I> | |
std::ostream & | print_state_name_ (state_t s, std::ostream &o, const std::string &fmt, seq< I... >) const |
bool | remove_history (state_t s) override |
Public Member Functions inherited from awali::sttc::history_base | |
virtual | ~history_base () |
template<typename H > | |
H & | as () |
template<typename H > | |
H & | as () const |
virtual bool | has_history () const |
Data Fields | |
automata_t | auts_ |
Origin automata, supplied at construction time. More... | |
origins_t | origins_ |
Static Public Attributes | |
static constexpr indices_t | indices {} |
An automaton whose states are tuples of states of automata.
Corresponds to the Cartesian product of states.
Aut | the automaton type |
Auts | the origin automaton types |
using awali::sttc::tuple_history< Auts >::automata_t = Auts |
The type of origin automata.
using awali::sttc::tuple_history< Auts >::indices_t = awali::internal::make_index_sequence<std::tuple_size<Auts>::value> |
The list of automaton indices as a static list.
using awali::sttc::tuple_history< Auts >::input_automaton_t = internal::base_t<typename std::tuple_element<I, automata_t>::type> |
The type of the Ith origin automaton, unqualified.
using awali::sttc::tuple_history< Auts >::origins_t = std::map<state_t, tuple_t> |
A map from result state to tuple of original states.
using awali::sttc::tuple_history< Auts >::seq = awali::internal::index_sequence<I...> |
A static list of integers.
using awali::sttc::tuple_history< Auts >::tuple_t = typename std::cst_tuple<state_t, std::tuple_size<Auts>::value>::type |
Tuple of states of input automata.
awali::sttc::tuple_history< Auts >::tuple_history | ( | const automata_t & | auts | ) |
void awali::sttc::tuple_history< Auts >::add_state | ( | state_t | s, |
const tuple_t & | set | ||
) |
|
overridevirtual |
The type of the resulting automaton.
Implements awali::sttc::history_base.
|
overridevirtual |
Implements awali::sttc::history_base.
|
overridevirtual |
Implements awali::sttc::history_base.
std::vector<state_t> awali::sttc::tuple_history< Auts >::get_state_set | ( | state_t | s, |
seq< I... > | |||
) |
|
overridevirtual |
Implements awali::sttc::history_base.
const origins_t& awali::sttc::tuple_history< Auts >::origins | ( | ) | const |
|
overridevirtual |
Implements awali::sttc::history_base.
std::ostream& awali::sttc::tuple_history< Auts >::print_state_name_ | ( | state_t | s, |
std::ostream & | o, | ||
const std::string & | fmt, | ||
seq< I... > | |||
) | const |
|
overridevirtual |
Implements awali::sttc::history_base.
automata_t awali::sttc::tuple_history< Auts >::auts_ |
Origin automata, supplied at construction time.
|
staticconstexpr |
|
mutable |