FST  openfst-1.8.3
OpenFst Library
fst-types.cc
Go to the documentation of this file.
1 // Copyright 2005-2024 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the 'License');
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an 'AS IS' BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 // See www.openfst.org for extensive documentation on this weighted
16 // finite-state transducer library.
17 //
18 // Registration of common FST and arc types.
19 
20 #include <fst/arc.h>
21 #include <fst/cache.h>
22 #include <fst/compact-fst.h>
23 #include <fst/const-fst.h>
24 #include <fst/edit-fst.h>
25 #include <fst/float-weight.h>
26 #include <fst/register.h>
27 #include <fst/vector-fst.h>
28 
29 namespace fst {
30 
31 REGISTER_FST(VectorFst, StdArc);
32 REGISTER_FST(VectorFst, LogArc);
33 REGISTER_FST(VectorFst, Log64Arc);
34 
35 REGISTER_FST(ConstFst, StdArc);
36 REGISTER_FST(ConstFst, LogArc);
37 REGISTER_FST(ConstFst, Log64Arc);
38 
39 REGISTER_FST(EditFst, StdArc);
40 REGISTER_FST(EditFst, LogArc);
41 REGISTER_FST(EditFst, Log64Arc);
42 
46 
50 
54 
58 
62 
63 } // namespace fst
CompactArcFst< Arc, UnweightedCompactor< Arc >, Unsigned > CompactUnweightedFst
Definition: compact-fst.h:1611
CompactArcFst< Arc, UnweightedAcceptorCompactor< Arc >, Unsigned > CompactUnweightedAcceptorFst
Definition: compact-fst.h:1615
CompactArcFst< Arc, StringCompactor< Arc >, Unsigned > CompactStringFst
Definition: compact-fst.h:1600
ArcTpl< TropicalWeight > StdArc
Definition: arc.h:75
CompactArcFst< Arc, AcceptorCompactor< Arc >, Unsigned > CompactAcceptorFst
Definition: compact-fst.h:1607
ArcTpl< Log64Weight > Log64Arc
Definition: arc.h:77
CompactArcFst< Arc, WeightedStringCompactor< Arc >, Unsigned > CompactWeightedStringFst
Definition: compact-fst.h:1604
REGISTER_FST(PhiFst, StdArc)
ArcTpl< LogWeight > LogArc
Definition: arc.h:76