Apollo 10.0
自动驾驶开放平台
map_util.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2017 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16
22#pragma once
23
24#include "google/protobuf/stubs/map_util.h"
25
30namespace apollo {
31namespace common {
32namespace util {
33
34// Expose some useful utils from protobuf.
35// Find*()
36using google::protobuf::FindCopy;
37using google::protobuf::FindLinkedPtrOrDie;
38using google::protobuf::FindLinkedPtrOrNull;
39using google::protobuf::FindOrDie;
40using google::protobuf::FindOrDieNoPrint;
41using google::protobuf::FindOrNull;
42using google::protobuf::FindPtrOrNull;
43using google::protobuf::FindWithDefault;
44
45// Contains*()
46using google::protobuf::ContainsKey;
47using google::protobuf::ContainsKeyValuePair;
48
49// Insert*()
50using google::protobuf::InsertAndDeleteExisting;
51using google::protobuf::InsertIfNotPresent;
52using google::protobuf::InsertKeyOrDie;
53using google::protobuf::InsertOrDie;
54using google::protobuf::InsertOrDieNoPrint;
55using google::protobuf::InsertOrUpdate;
56using google::protobuf::InsertOrUpdateMany;
57
58// Lookup*()
59using google::protobuf::AddTokenCounts;
60using google::protobuf::LookupOrInsert;
61using google::protobuf::LookupOrInsertNew;
62using google::protobuf::LookupOrInsertNewLinkedPtr;
63using google::protobuf::LookupOrInsertNewSharedPtr;
64
65// Misc Utility Functions
66using google::protobuf::AppendKeysFromMap;
67using google::protobuf::AppendValuesFromMap;
68using google::protobuf::EraseKeyReturnValuePtr;
69using google::protobuf::InsertKeysFromMap;
70using google::protobuf::InsertOrReturnExisting;
71using google::protobuf::UpdateReturnCopy;
72
73} // namespace util
74} // namespace common
75} // namespace apollo
class register implement
Definition arena_queue.h:37