17 #ifndef AWALI_STRING_HISTORY_HH
18 #define AWALI_STRING_HISTORY_HH
31 using origins_t = std::map<state_t, std::string>;
46 const std::string&)
const override
81 return origins_.erase(s);
85 return (origins_.find(s)!=origins_.end());
95 throw std::runtime_error(
"Origin state not available");
99 throw std::runtime_error(
"Origin state set not available");
base type for history of automata
Definition: history.hh:40
The semiring of Natural numbers.
Definition: n.hh:34
Definition: string_history.hh:29
bool remove_history(state_t s) override
Definition: string_history.hh:80
bool has_history(state_t s) const override
Definition: string_history.hh:84
const origins_t & origins() const
Definition: string_history.hh:75
std::vector< state_t > get_state_set(state_t) override
Definition: string_history.hh:98
history_kind_t get_nature() const override
Definition: string_history.hh:39
const std::string & get_name() const
Definition: string_history.hh:67
const std::string & get_desc() const
Definition: string_history.hh:71
void set_name(const std::string &n)
Definition: string_history.hh:59
state_t get_state(state_t) override
Definition: string_history.hh:94
const std::string & get_state_name(state_t s) const
Definition: string_history.hh:53
std::ostream & print_state_name(state_t s, std::ostream &o, const std::string &) const override
Definition: string_history.hh:45
void set_desc(const std::string &d)
Definition: string_history.hh:63
void add_state(state_t s, const std::string &str)
Definition: string_history.hh:89
string_history()
Definition: string_history.hh:36
history_kind_t
The different kinds of history.
Definition: enums.hh:178
@ STRING
The state history is expressed directy as a string.
Main namespace of Awali.
Definition: ato.hh:22
unsigned state_t
Definition: types.hh:21