tesseract  5.0.0
base.h
Go to the documentation of this file.
1 /* Copyright 2016 Google Inc. All Rights Reserved.
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 
16 #ifndef SYNTAXNET_BASE_H_
17 #define SYNTAXNET_BASE_H_
18 
19 #include <map>
20 #include <functional>
21 #include <string>
22 #include <unordered_map>
23 #include <unordered_set>
24 #include <vector>
25 
26 #ifdef INCLUDE_TENSORFLOW
27 
28 #include "google/protobuf/util/message_differencer.h"
29 
30 #include "tensorflow/core/lib/core/status.h"
31 #include "tensorflow/core/lib/strings/strcat.h"
32 #include "tensorflow/core/lib/strings/stringprintf.h"
33 #include "tensorflow/core/platform/default/integral_types.h"
34 #include "tensorflow/core/platform/mutex.h"
35 #include "tensorflow/core/platform/protobuf.h"
36 
37 #endif
38 
39 using std::map;
40 using std::pair;
41 using std::unordered_map;
42 using std::unordered_set;
43 using std::vector;
44 #ifdef INCLUDE_TENSORFLOW
45 using tensorflow::int16;
46 using tensorflow::int32;
47 using tensorflow::int64;
48 using tensorflow::int8;
49 using tensorflow::mutex;
50 using tensorflow::mutex_lock;
51 using tensorflow::uint16;
52 using tensorflow::uint32;
53 using tensorflow::uint64;
54 using tensorflow::uint8;
55 using tensorflow::protobuf::TextFormat;
56 #endif
57 typedef signed int char32;
58 
59 using std::string;
60 #ifdef INCLUDE_TENSORFLOW
61 using tensorflow::StringPiece;
62 #endif
63 
64 // namespace syntaxnet
65 
66 #endif // SYNTAXNET_BASE_H_
signed int char32
Definition: base.h:57