Commit 1ae366fe authored by Stefan Schweter's avatar Stefan Schweter

automaton: add getter for transition map in state class

parent aa16f988
......@@ -134,6 +134,12 @@ public:
*/
auto add_transition(const wchar_t label, StatePtr state) -> void;
/** @brief Returns transition map for current state
*
* @return TransitionMap
*/
auto get_transitions() -> auto;
/** @brief Defines if the current state is final or not
*/
bool is_final;
......@@ -186,4 +192,8 @@ auto State::add_transition(const wchar_t label, StatePtr state) -> void {
this->transitions[label] = state;
}
auto State::get_transitions() -> auto {
return this->transitions;
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment