Skip to content

Commit

Permalink
Removing templated <void> code
Browse files Browse the repository at this point in the history
  • Loading branch information
noe committed Jan 12, 2017
1 parent bf385d8 commit 8137b10
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions src/automaton.hh
Original file line number Diff line number Diff line change
Expand Up @@ -237,41 +237,6 @@ template<typename T> inline istream& operator>>(istream& is, transition<T>& tr)
return is;
}

/**
* @class transition<void>
* @brief transition to a given state (on a given letter)
*/
template<> class transition<void> {
public:
/** @brief build a transition object
* @param state gives the state number reached by this transition
*/
inline transition<void>(int state = 0) : _state(state) {};
/// Erase a transition
inline ~transition<void>() {;};


protected :
/// state number to be reached
int _state;

/// state is a friend class to ease access
friend class state<void>;
/// automaton is a friend class to ease access
friend class automaton<void>;
/// print transition<void> information is friend
friend ostream& operator<<(ostream& os, const transition<void>& tr);
/// read transition<void> information is friend
friend istream& operator>>(istream& is, transition<void>& tr);
/// print state<void> information is friend
friend ostream& operator<<(ostream& os, const state<void>& st);
/// read state<void> information is friend
friend istream& operator>>(istream& is, state<void>& st);
/// print automaton<void> information is friend
friend ostream& operator<<(ostream& os, const automaton<void>& au);
/// read automaton<void> information is friend
friend istream& operator>>(istream& is, automaton<void>& au);
};

/**
* @class state
Expand Down

0 comments on commit 8137b10

Please sign in to comment.