17 #ifndef AWALI_SINGLE_HISTORY_HH
18 # define AWALI_SINGLE_HISTORY_HH
48 template <
typename Autb>
62 return *(from_->history());
67 const std::string& fmt)
const override
70 from_->print_state_history(origins_[s],o,fmt);
76 const std::map<state_t, state_t>&
origins()
const
82 return (origins_.find(s)!=origins_.end());
86 return origins_.erase(s);
105 throw std::runtime_error(
"Origin state set not available");
111 mutable std::map<state_t, state_t> origins_;
base type for history of automata
Definition: history.hh:40
specialisation of history_base
Definition: single_history.hh:50
const history_base & source_history()
Definition: single_history.hh:61
const std::map< state_t, state_t > & origins() const
map between states and states of the source automaton
Definition: single_history.hh:76
single_history(const Autb &source)
Definition: single_history.hh:58
void add_state(state_t s, const state_t &sb)
set the history of state s
Definition: single_history.hh:91
state_t get_state(state_t s) override
Definition: single_history.hh:97
std::vector< state_t > get_state_set(state_t) override
unsupported method : use get_state
Definition: single_history.hh:104
history_kind_t get_nature() const override
Definition: single_history.hh:53
bool has_history(state_t s) const override
Definition: single_history.hh:81
bool remove_history(state_t s) override
Definition: single_history.hh:85
std::ostream & print_state_name(state_t s, std::ostream &o, const std::string &fmt) const override
Definition: single_history.hh:66
history_kind_t
The different kinds of history.
Definition: enums.hh:178
@ SINGLE
The states comes from a single state.
Main namespace of Awali.
Definition: ato.hh:22
unsigned state_t
Definition: types.hh:21