Cambridge SMT System
global_decls.hpp
Go to the documentation of this file.
1 // Licensed under the Apache License, Version 2.0 (the "License");
2 // you may not use these files except in compliance with the License.
3 // You may obtain a copy of the License at
4 //
5 // http://www.apache.org/licenses/LICENSE-2.0
6 //
7 // Unless required by applicable law or agreed to in writing, software
8 // distributed under the License is distributed on an "AS IS" BASIS,
9 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 // See the License for the specific language governing permissions and
11 // limitations under the License.
12 
13 // Copyright 2012 - Gonzalo Iglesias, AdriĆ  de Gispert, William Byrne
14 
21 #ifndef GLOBAL_DECL_HPP
22 #define GLOBAL_DECL_HPP
23 
24 #include <openfstversion.hpp>
25 
26 #define OSR
27 
28 #if OPENFSTVERSION >= 1002000
29 typedef int64_t
30 int64; //int64 is defined this way starting with openfst-1.2.x, but not in openfst-1.1
31 #else
32 typedef long long int64; //int64 is defined this way up to openfst-1.1,...
33 #endif
34 
35 #define APRULETAG 2000000000
36 #define APBASETAG 1000000000
37 #define APCCTAG 1000000
38 #define APXTAG 1000
39 #define APYTAG 1
40 
41 //key words...
42 #define OOVID 100000000
43 #define DR 999999999
44 #define OOV 999999998
45 #define GAP 999999997
46 #define PHI 999999996
47 #define RHO 999999995
48 #define SIGMA 999999994
49 #define UNIQUE 999999993
50 #define SEP 999999992
51 #define PROTECTEDEPSILON 999999991
52 
53 #define NORULE 0
54 #define EPSILON 0
55 
56 #define HASH_MODULE 1000000
57 
58 // A macro to disallow the copy constructor and operator= functions
59 // This should be used in the private: declarations for a class
60 #define ZDISALLOW_COPY_AND_ASSIGN(TypeName) \
61  TypeName(const TypeName&); \
62  void operator=(const TypeName&)
63 
64 #endif
long long int64