2 * Copyright (C) 2005 Universitat d'Alacant / Universidad de Alicante
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
29 #include <lttoolbox/MatchNode.H>
30 #include <lttoolbox/Transducer.H>
35 * Matcher class for execution of lexical recognizing algorithms
48 vector<MatchNode> node_list;
53 map<MatchNode *, int> finals;
57 * @param te the transducer to be copied
59 void copy(MatchExe const &te);
74 * From transducer constructor
75 * @param t the transducer
76 * @param final_type the final types
78 MatchExe(Transducer const &t, map<int, int> const &final_type);
87 * @param te the transducer to be copied
89 MatchExe(MatchExe const &te);
93 * @param te the transducer to be assigned
94 * @return the assigned object
96 MatchExe & operator =(MatchExe const &te);
99 * Gets the initial node of the transducer
100 * @return the initial node
102 MatchNode * getInitial();
105 * Gets the set of final nodes
106 * @return the set of final nodes
108 map<MatchNode *, int> & getFinals();