From 8137b100f5fb0684d40381acbd1a708afef39eae Mon Sep 17 00:00:00 2001 From: noe Date: Thu, 12 Jan 2017 11:11:45 +0100 Subject: [PATCH] Removing templated code --- src/automaton.hh | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/automaton.hh b/src/automaton.hh index 5c9793b..b56f14d 100644 --- a/src/automaton.hh +++ b/src/automaton.hh @@ -237,41 +237,6 @@ template inline istream& operator>>(istream& is, transition& tr) return is; } -/** - * @class transition - * @brief transition to a given state (on a given letter) - */ -template<> class transition { -public: - /** @brief build a transition object - * @param state gives the state number reached by this transition - */ - inline transition(int state = 0) : _state(state) {}; - /// Erase a transition - inline ~transition() {;}; - - -protected : - /// state number to be reached - int _state; - - /// state is a friend class to ease access - friend class state; - /// automaton is a friend class to ease access - friend class automaton; - /// print transition information is friend - friend ostream& operator<<(ostream& os, const transition& tr); - /// read transition information is friend - friend istream& operator>>(istream& is, transition& tr); - /// print state information is friend - friend ostream& operator<<(ostream& os, const state& st); - /// read state information is friend - friend istream& operator>>(istream& is, state& st); - /// print automaton information is friend - friend ostream& operator<<(ostream& os, const automaton& au); - /// read automaton information is friend - friend istream& operator>>(istream& is, automaton& au); -}; /** * @class state