Awali
Another Weighted Automata library
Public Types | Public Member Functions | Static Public Member Functions
awali::sttc::internal::pair_automaton_impl< Aut > Class Template Reference

#include <synchronizing_word.hh>

Inheritance diagram for awali::sttc::internal::pair_automaton_impl< Aut >:
awali::sttc::internal::automaton_decorator< mutable_automaton< context_t_of< Aut > > >

Public Types

using automaton_nocv_t = mutable_automaton< context_t_of< Aut > >
 
using automaton_t = Aut
 
using context_t = context_t_of< automaton_t >
 
using super_t = automaton_decorator< automaton_nocv_t >
 
using weight_t = typename weightset_t::value_t
 
using weightset_t = weightset_t_of< automaton_t >
 
- Public Types inherited from awali::sttc::internal::automaton_decorator< mutable_automaton< context_t_of< Aut > > >
using automaton_nocv_t = typename automaton_t::element_type::automaton_nocv_t
 The (shared pointer) type to use it we have to create an automaton of the same (underlying) type. More...
 
using automaton_t = mutable_automaton< context_t_of< Aut > >
 The type of automaton to wrap. More...
 
using context_t = context_t_of< mutable_automaton< context_t_of< Aut > > >
 
using kind_t = typename context_t::kind_t
 
using label_t = typename labelset_t::value_t
 
using labelset_ptr = typename context_t::labelset_ptr
 
using labelset_t = typename context_t::labelset_t
 
using weight_t = typename weightset_t::value_t
 
using weightset_ptr = typename context_t::weightset_ptr
 
using weightset_t = typename context_t::weightset_t
 

Public Member Functions

 pair_automaton_impl (const automaton_t &aut, bool keep_initials=false)
 
const std::unordered_map< pair_t, state_t > & get_map_pair () const
 
const pair_t get_origin (state_t s) const
 
state_t get_q0 () const
 
bool is_singleton (state_t s) const
 
const origins_t & origins () const
 A map from result state to tuple of original states. More...
 
std::ostream & print_state_name (state_t ss, std::ostream &o, const std::string &fmt="text") const
 
const std::vector< state_t > & singletons ()
 
std::string vname (bool full=true) const
 
- Public Member Functions inherited from awali::sttc::internal::automaton_decorator< mutable_automaton< context_t_of< Aut > > >
 automaton_decorator (automaton_decorator &&aut)
 
 automaton_decorator (automaton_t aut)
 
 automaton_decorator (const automaton_decorator &aut)
 
 automaton_decorator (const context_t &ctx)
 
auto add_final (Args &&... args) -> decltype(aut_-> add_ final(std
 
auto add_initial (Args &&... args) -> decltype(aut_-> add_initial(std::forward< Args >(args)...))
 
auto add_state (Args &&... args) -> decltype(aut_-> add_state(std::forward< Args >(args)...))
 
auto add_transition (Args &&... args) -> decltype(aut_-> add_transition(std::forward< Args >(args)...))
 
auto add_transition_copy (Args &&... args) -> decltype(aut_-> add_transition_copy(std::forward< Args >(args)...))
 
auto add_weight (Args &&... args) -> decltype(aut_-> add_weight(std::forward< Args >(args)...))
 
auto all_in (Args &&... args) const -> decltype(aut_-> all_in(std::forward< Args >(args)...))
 
auto all_out (Args &&... args) const -> decltype(aut_-> all_out(std::forward< Args >(args)...))
 
auto all_states (Args &&... args) const -> decltype(aut_-> all_states(std::forward< Args >(args)...))
 
auto all_transitions (Args &&... args) const -> decltype(aut_-> all_transitions(std::forward< Args >(args)...))
 
auto context (Args &&... args) const -> decltype(aut_-> context(std::forward< Args >(args)...))
 
auto del_state (Args &&... args) -> decltype(aut_-> del_state(std::forward< Args >(args)...))
 
auto del_transition (Args &&... args) -> decltype(aut_-> del_transition(std::forward< Args >(args)...))
 
auto dst_of (Args &&... args) const -> decltype(aut_-> dst_of(std::forward< Args >(args)...))
 
auto final_transitions (Args &&... args) const -> decltype(aut_-> final _transitions(std
 
auto get_final_weight (Args &&... args) const -> decltype(aut_-> get_ final _weight(std
 
auto get_initial_weight (Args &&... args) const -> decltype(aut_-> get_initial_weight(std::forward< Args >(args)...))
 
auto get_transition (Args &&... args) const -> decltype(aut_-> get_transition(std::forward< Args >(args)...))
 
auto has_state (Args &&... args) const -> decltype(aut_-> has_state(std::forward< Args >(args)...))
 
auto has_transition (Args &&... args) const -> decltype(aut_-> has_transition(std::forward< Args >(args)...))
 
auto in (Args &&... args) const -> decltype(aut_-> in(std::forward< Args >(args)...))
 
auto initial_transitions (Args &&... args) const -> decltype(aut_-> initial_transitions(std::forward< Args >(args)...))
 
auto is_final (Args &&... args) const -> decltype(aut_-> is_ final(std
 
auto is_initial (Args &&... args) const -> decltype(aut_-> is_initial(std::forward< Args >(args)...))
 
auto label_of (Args &&... args) const -> decltype(aut_-> label_of(std::forward< Args >(args)...))
 
auto labelset (Args &&... args) const -> decltype(aut_-> labelset(std::forward< Args >(args)...))
 
auto lmul_weight (Args &&... args) -> decltype(aut_-> lmul_weight(std::forward< Args >(args)...))
 
auto new_transition (Args &&... args) -> decltype(aut_-> new_transition(std::forward< Args >(args)...))
 
auto new_transition_copy (Args &&... args) -> decltype(aut_-> new_transition_copy(std::forward< Args >(args)...))
 
auto num_all_states (Args &&... args) const -> decltype(aut_-> num_all_states(std::forward< Args >(args)...))
 
auto num_finals (Args &&... args) const -> decltype(aut_-> num_ final s(std
 
auto num_initials (Args &&... args) const -> decltype(aut_-> num_initials(std::forward< Args >(args)...))
 
auto num_states (Args &&... args) const -> decltype(aut_-> num_states(std::forward< Args >(args)...))
 
auto num_transitions (Args &&... args) const -> decltype(aut_-> num_transitions(std::forward< Args >(args)...))
 
automaton_decoratoroperator= (automaton_decorator &&that)
 
auto out (Args &&... args) const -> decltype(aut_-> out(std::forward< Args >(args)...))
 
auto outin (Args &&... args) const -> decltype(aut_-> outin(std::forward< Args >(args)...))
 
auto print_state (Args &&... args) const -> decltype(aut_-> print_state(std::forward< Args >(args)...))
 
auto print_state_name (Args &&... args) const -> decltype(aut_-> print_state_name(std::forward< Args >(args)...))
 
auto rmul_weight (Args &&... args) -> decltype(aut_-> rmul_weight(std::forward< Args >(args)...))
 
auto set_final (Args &&... args) -> decltype(aut_-> set_ final(std
 
auto set_initial (Args &&... args) -> decltype(aut_-> set_initial(std::forward< Args >(args)...))
 
auto set_transition (Args &&... args) -> decltype(aut_-> set_transition(std::forward< Args >(args)...))
 
auto set_weight (Args &&... args) -> decltype(aut_-> set_weight(std::forward< Args >(args)...))
 
auto src_of (Args &&... args) const -> decltype(aut_-> src_of(std::forward< Args >(args)...))
 
auto states (Args &&... args) const -> decltype(aut_-> states(std::forward< Args >(args)...))
 
automaton_t strip_history ()
 
auto transitions (Args &&... args) const -> decltype(aut_-> transitions(std::forward< Args >(args)...))
 
auto unset_final (Args &&... args) -> decltype(aut_-> unset_ final(std
 
auto unset_initial (Args &&... args) -> decltype(aut_-> unset_initial(std::forward< Args >(args)...))
 
auto vname (Args &&... args) const -> decltype(aut_-> vname(std::forward< Args >(args)...))
 
auto weight_of (Args &&... args) const -> decltype(aut_-> weight_of(std::forward< Args >(args)...))
 
auto weightset (Args &&... args) const -> decltype(aut_-> weightset(std::forward< Args >(args)...))
 

Static Public Member Functions

static std::string sname ()
 
- Static Public Member Functions inherited from awali::sttc::internal::automaton_decorator< mutable_automaton< context_t_of< Aut > > >
static constexpr auto null_state (Args &&... args) -> decltype(automaton_t::element_type::null_state(std::forward< Args >(args)...))
 
static constexpr auto null_transition (Args &&... args) -> decltype(automaton_t::element_type::null_transition(std::forward< Args >(args)...))
 
static constexpr auto post (Args &&... args) -> decltype(automaton_t::element_type::post(std::forward< Args >(args)...))
 
static constexpr auto pre (Args &&... args) -> decltype(automaton_t::element_type::pre(std::forward< Args >(args)...))
 
static constexpr auto sname (Args &&... args) -> decltype(automaton_t::element_type::sname(std::forward< Args >(args)...))
 

Additional Inherited Members

- Protected Attributes inherited from awali::sttc::internal::automaton_decorator< mutable_automaton< context_t_of< Aut > > >
automaton_t aut_
 The wrapped automaton, possibly const. More...
 

Member Typedef Documentation

◆ automaton_nocv_t

◆ automaton_t

template<typename Aut >
using awali::sttc::internal::pair_automaton_impl< Aut >::automaton_t = Aut

◆ context_t

◆ super_t

◆ weight_t

template<typename Aut >
using awali::sttc::internal::pair_automaton_impl< Aut >::weight_t = typename weightset_t::value_t

◆ weightset_t

Constructor & Destructor Documentation

◆ pair_automaton_impl()

template<typename Aut >
awali::sttc::internal::pair_automaton_impl< Aut >::pair_automaton_impl ( const automaton_t aut,
bool  keep_initials = false 
)

Member Function Documentation

◆ get_map_pair()

template<typename Aut >
const std::unordered_map<pair_t, state_t>& awali::sttc::internal::pair_automaton_impl< Aut >::get_map_pair ( ) const

◆ get_origin()

template<typename Aut >
const pair_t awali::sttc::internal::pair_automaton_impl< Aut >::get_origin ( state_t  s) const

◆ get_q0()

template<typename Aut >
state_t awali::sttc::internal::pair_automaton_impl< Aut >::get_q0 ( ) const

◆ is_singleton()

template<typename Aut >
bool awali::sttc::internal::pair_automaton_impl< Aut >::is_singleton ( state_t  s) const

◆ origins()

template<typename Aut >
const origins_t& awali::sttc::internal::pair_automaton_impl< Aut >::origins ( ) const

A map from result state to tuple of original states.

◆ print_state_name()

template<typename Aut >
std::ostream& awali::sttc::internal::pair_automaton_impl< Aut >::print_state_name ( state_t  ss,
std::ostream &  o,
const std::string &  fmt = "text" 
) const

◆ singletons()

template<typename Aut >
const std::vector<state_t>& awali::sttc::internal::pair_automaton_impl< Aut >::singletons ( )

◆ sname()

template<typename Aut >
static std::string awali::sttc::internal::pair_automaton_impl< Aut >::sname ( )
static

◆ vname()

template<typename Aut >
std::string awali::sttc::internal::pair_automaton_impl< Aut >::vname ( bool  full = true) const

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