tesseract v5.3.3.20231005
base.h
Go to the documentation of this file.
1/* Copyright 2016 Google Inc. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations 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
39using std::map;
40using std::pair;
41using std::unordered_map;
42using std::unordered_set;
43using std::vector;
44#ifdef INCLUDE_TENSORFLOW
45using tensorflow::int16;
46using tensorflow::int32;
47using tensorflow::int64;
48using tensorflow::int8;
49using tensorflow::mutex;
50using tensorflow::mutex_lock;
51using tensorflow::uint16;
52using tensorflow::uint32;
53using tensorflow::uint64;
54using tensorflow::uint8;
55using tensorflow::protobuf::TextFormat;
56#endif
57typedef signed int char32;
58
59using std::string;
60#ifdef INCLUDE_TENSORFLOW
61using tensorflow::StringPiece;
62#endif
63
64// namespace syntaxnet
65
66#endif // SYNTAXNET_BASE_H_
signed int char32
Definition: base.h:57