![]() |
Vcsn
2.1
Be Rational
|
Copy an automaton. More...
#include <copy.hh>
Public Types | |
using | in_automaton_t = AutIn |
using | out_automaton_t = AutOut |
using | in_state_t = state_t_of< in_automaton_t > |
using | out_state_t = state_t_of< out_automaton_t > |
using | state_map_t = std::unordered_map< in_state_t, out_state_t > |
input state -> output state. More... | |
Public Member Functions | |
copier (const in_automaton_t &in, out_automaton_t &out) | |
KeepTrans void | operator() (KeepState keep_state, KeepTrans keep_trans, bool safe=true) |
void | operator() (bool safe=true) |
Copy all the states, and all the transitions. More... | |
const state_map_t & | state_map () const |
A map from original state to result state. More... | |
state_map_t & | state_map () |
A map from original state to result state. More... | |
Private Attributes | |
in_automaton_t | in_ |
Input automaton. More... | |
out_automaton_t | out_ |
Output automaton. More... | |
state_map_t | out_state_ |
input state -> output state. More... | |
Copy an automaton.
AutIn | The type of the automaton to copy. |
AutOut | The type of the resulting automaton. |
using vcsn::detail::copier< AutIn, AutOut >::in_automaton_t = AutIn |
using vcsn::detail::copier< AutIn, AutOut >::in_state_t = state_t_of<in_automaton_t> |
using vcsn::detail::copier< AutIn, AutOut >::out_automaton_t = AutOut |
using vcsn::detail::copier< AutIn, AutOut >::out_state_t = state_t_of<out_automaton_t> |
using vcsn::detail::copier< AutIn, AutOut >::state_map_t = std::unordered_map<in_state_t, out_state_t> |
|
inline |
Definition at line 44 of file copy.hh.
References vcsn::detail::copier< AutIn, AutOut >::in_, and vcsn::detail::copier< AutIn, AutOut >::out_.
|
inline |
Definition at line 56 of file copy.hh.
References vcsn::detail::copier< AutIn, AutOut >::in_, vcsn::detail::copier< AutIn, AutOut >::out_, and vcsn::detail::copier< AutIn, AutOut >::out_state_.
Referenced by vcsn::detail::copier< AutIn, AutOut >::operator()().
|
inline |
Copy all the states, and all the transitions.
Definition at line 84 of file copy.hh.
References vcsn::detail::copier< AutIn, AutOut >::operator()().
|
inline |
A map from original state to result state.
Definition at line 92 of file copy.hh.
References vcsn::detail::copier< AutIn, AutOut >::out_state_.
|
inline |
A map from original state to result state.
Definition at line 98 of file copy.hh.
References vcsn::detail::copier< AutIn, AutOut >::out_state_.
|
private |
Input automaton.
Definition at line 105 of file copy.hh.
Referenced by vcsn::detail::copier< AutIn, AutOut >::copier(), and vcsn::detail::copier< AutIn, AutOut >::operator()().
|
private |
Output automaton.
Definition at line 107 of file copy.hh.
Referenced by vcsn::detail::copier< AutIn, AutOut >::copier(), and vcsn::detail::copier< AutIn, AutOut >::operator()().
|
private |
input state -> output state.
Definition at line 109 of file copy.hh.
Referenced by vcsn::detail::copier< AutIn, AutOut >::operator()(), and vcsn::detail::copier< AutIn, AutOut >::state_map().