Apollo  6.0
Open source self driving car software
map_util.h
Go to the documentation of this file.
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 
30 namespace apollo {
31 namespace common {
32 namespace util {
33 
34 // Expose some useful utils from protobuf.
35 // Find*()
36 using google::protobuf::FindCopy;
37 using google::protobuf::FindLinkedPtrOrDie;
38 using google::protobuf::FindLinkedPtrOrNull;
39 using google::protobuf::FindOrDie;
40 using google::protobuf::FindOrDieNoPrint;
41 using google::protobuf::FindOrNull;
42 using google::protobuf::FindPtrOrNull;
43 using google::protobuf::FindWithDefault;
44 
45 // Contains*()
46 using google::protobuf::ContainsKey;
47 using google::protobuf::ContainsKeyValuePair;
48 
49 // Insert*()
50 using google::protobuf::InsertAndDeleteExisting;
51 using google::protobuf::InsertIfNotPresent;
52 using google::protobuf::InsertKeyOrDie;
53 using google::protobuf::InsertOrDie;
54 using google::protobuf::InsertOrDieNoPrint;
55 using google::protobuf::InsertOrUpdate;
56 using google::protobuf::InsertOrUpdateMany;
57 
58 // Lookup*()
59 using google::protobuf::AddTokenCounts;
60 using google::protobuf::LookupOrInsert;
61 using google::protobuf::LookupOrInsertNew;
62 using google::protobuf::LookupOrInsertNewLinkedPtr;
63 using google::protobuf::LookupOrInsertNewSharedPtr;
64 
65 // Misc Utility Functions
66 using google::protobuf::AppendKeysFromMap;
67 using google::protobuf::AppendValuesFromMap;
68 using google::protobuf::EraseKeyReturnValuePtr;
69 using google::protobuf::InsertKeysFromMap;
70 using google::protobuf::InsertOrReturnExisting;
71 using google::protobuf::UpdateReturnCopy;
72 
73 } // namespace util
74 } // namespace common
75 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25