Coverage Report

Created: 2026-09-04 06:54

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/protobuf_install/include/google/protobuf/map.h
Line
Count
Source
1
// Protocol Buffers - Google's data interchange format
2
// Copyright 2008 Google Inc.  All rights reserved.
3
// https://developers.google.com/protocol-buffers/
4
//
5
// Redistribution and use in source and binary forms, with or without
6
// modification, are permitted provided that the following conditions are
7
// met:
8
//
9
//     * Redistributions of source code must retain the above copyright
10
// notice, this list of conditions and the following disclaimer.
11
//     * Redistributions in binary form must reproduce the above
12
// copyright notice, this list of conditions and the following disclaimer
13
// in the documentation and/or other materials provided with the
14
// distribution.
15
//     * Neither the name of Google Inc. nor the names of its
16
// contributors may be used to endorse or promote products derived from
17
// this software without specific prior written permission.
18
//
19
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
31
// This file defines the map container and its helpers to support protobuf maps.
32
//
33
// The Map and MapIterator types are provided by this header file.
34
// Please avoid using other types defined here, unless they are public
35
// types within Map or MapIterator, such as Map::value_type.
36
37
#ifndef GOOGLE_PROTOBUF_MAP_H__
38
#define GOOGLE_PROTOBUF_MAP_H__
39
40
41
#include <functional>
42
#include <initializer_list>
43
#include <iterator>
44
#include <limits>  // To support Visual Studio 2008
45
#include <map>
46
#include <string>
47
#include <type_traits>
48
#include <utility>
49
50
#if defined(__cpp_lib_string_view)
51
#include <string_view>
52
#endif  // defined(__cpp_lib_string_view)
53
54
#if !defined(GOOGLE_PROTOBUF_NO_RDTSC) && defined(__APPLE__)
55
#include <mach/mach_time.h>
56
#endif
57
58
#include <google/protobuf/stubs/common.h>
59
#include <google/protobuf/arena.h>
60
#include <google/protobuf/generated_enum_util.h>
61
#include <google/protobuf/map_type_handler.h>
62
#include <google/protobuf/port.h>
63
#include <google/protobuf/stubs/hash.h>
64
65
#ifdef SWIG
66
#error "You cannot SWIG proto headers"
67
#endif
68
69
// Must be included last.
70
#include <google/protobuf/port_def.inc>
71
72
namespace google {
73
namespace protobuf {
74
75
template <typename Key, typename T>
76
class Map;
77
78
class MapIterator;
79
80
template <typename Enum>
81
struct is_proto_enum;
82
83
namespace internal {
84
template <typename Derived, typename Key, typename T,
85
          WireFormatLite::FieldType key_wire_type,
86
          WireFormatLite::FieldType value_wire_type>
87
class MapFieldLite;
88
89
template <typename Derived, typename Key, typename T,
90
          WireFormatLite::FieldType key_wire_type,
91
          WireFormatLite::FieldType value_wire_type>
92
class MapField;
93
94
template <typename Key, typename T>
95
class TypeDefinedMapFieldBase;
96
97
class DynamicMapField;
98
99
class GeneratedMessageReflection;
100
101
// re-implement std::allocator to use arena allocator for memory allocation.
102
// Used for Map implementation. Users should not use this class
103
// directly.
104
template <typename U>
105
class MapAllocator {
106
 public:
107
  using value_type = U;
108
  using pointer = value_type*;
109
  using const_pointer = const value_type*;
110
  using reference = value_type&;
111
  using const_reference = const value_type&;
112
  using size_type = size_t;
113
  using difference_type = ptrdiff_t;
114
115
  constexpr MapAllocator() : arena_(nullptr) {}
116
1.01M
  explicit constexpr MapAllocator(Arena* arena) : arena_(arena) {}
117
  template <typename X>
118
  MapAllocator(const MapAllocator<X>& allocator)  // NOLINT(runtime/explicit)
119
158k
      : arena_(allocator.arena()) {}
google::protobuf::internal::MapAllocator<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Node>::MapAllocator<void*>(google::protobuf::internal::MapAllocator<void*> const&)
Line
Count
Source
119
43.7k
      : arena_(allocator.arena()) {}
Unexecuted instantiation: google::protobuf::internal::MapAllocator<std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*> >::MapAllocator<std::__1::pair<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const, void*> >(google::protobuf::internal::MapAllocator<std::__1::pair<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const, void*> > const&)
Unexecuted instantiation: google::protobuf::internal::MapAllocator<std::__1::pair<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const, void*> >::MapAllocator<void*>(google::protobuf::internal::MapAllocator<void*> const&)
google::protobuf::internal::MapAllocator<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Node>::MapAllocator<void*>(google::protobuf::internal::MapAllocator<void*> const&)
Line
Count
Source
119
54.3k
      : arena_(allocator.arena()) {}
google::protobuf::internal::MapAllocator<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Node>::MapAllocator<void*>(google::protobuf::internal::MapAllocator<void*> const&)
Line
Count
Source
119
59.8k
      : arena_(allocator.arena()) {}
120
121
  // MapAllocator does not support alignments beyond 8. Technically we should
122
  // support up to std::max_align_t, but this fails with ubsan and tcmalloc
123
  // debug allocation logic which assume 8 as default alignment.
124
  static_assert(alignof(value_type) <= 8, "");
125
126
236k
  pointer allocate(size_type n, const void* /* hint */ = nullptr) {
127
    // If arena is not given, malloc needs to be called which doesn't
128
    // construct element object.
129
236k
    if (arena_ == nullptr) {
130
236k
      return static_cast<pointer>(::operator new(n * sizeof(value_type)));
131
236k
    } else {
132
0
      return reinterpret_cast<pointer>(
133
0
          Arena::CreateArray<uint8_t>(arena_, n * sizeof(value_type)));
134
0
    }
135
236k
  }
google::protobuf::internal::MapAllocator<void*>::allocate(unsigned long, void const*)
Line
Count
Source
126
78.2k
  pointer allocate(size_type n, const void* /* hint */ = nullptr) {
127
    // If arena is not given, malloc needs to be called which doesn't
128
    // construct element object.
129
78.2k
    if (arena_ == nullptr) {
130
78.2k
      return static_cast<pointer>(::operator new(n * sizeof(value_type)));
131
78.2k
    } else {
132
0
      return reinterpret_cast<pointer>(
133
0
          Arena::CreateArray<uint8_t>(arena_, n * sizeof(value_type)));
134
0
    }
135
78.2k
  }
google::protobuf::internal::MapAllocator<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Node>::allocate(unsigned long, void const*)
Line
Count
Source
126
43.7k
  pointer allocate(size_type n, const void* /* hint */ = nullptr) {
127
    // If arena is not given, malloc needs to be called which doesn't
128
    // construct element object.
129
43.7k
    if (arena_ == nullptr) {
130
43.7k
      return static_cast<pointer>(::operator new(n * sizeof(value_type)));
131
43.7k
    } else {
132
0
      return reinterpret_cast<pointer>(
133
0
          Arena::CreateArray<uint8_t>(arena_, n * sizeof(value_type)));
134
0
    }
135
43.7k
  }
Unexecuted instantiation: google::protobuf::internal::MapAllocator<std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*> >::allocate(unsigned long, void const*)
google::protobuf::internal::MapAllocator<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Node>::allocate(unsigned long, void const*)
Line
Count
Source
126
54.3k
  pointer allocate(size_type n, const void* /* hint */ = nullptr) {
127
    // If arena is not given, malloc needs to be called which doesn't
128
    // construct element object.
129
54.3k
    if (arena_ == nullptr) {
130
54.3k
      return static_cast<pointer>(::operator new(n * sizeof(value_type)));
131
54.3k
    } else {
132
0
      return reinterpret_cast<pointer>(
133
0
          Arena::CreateArray<uint8_t>(arena_, n * sizeof(value_type)));
134
0
    }
135
54.3k
  }
google::protobuf::internal::MapAllocator<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Node>::allocate(unsigned long, void const*)
Line
Count
Source
126
59.8k
  pointer allocate(size_type n, const void* /* hint */ = nullptr) {
127
    // If arena is not given, malloc needs to be called which doesn't
128
    // construct element object.
129
59.8k
    if (arena_ == nullptr) {
130
59.8k
      return static_cast<pointer>(::operator new(n * sizeof(value_type)));
131
59.8k
    } else {
132
0
      return reinterpret_cast<pointer>(
133
0
          Arena::CreateArray<uint8_t>(arena_, n * sizeof(value_type)));
134
0
    }
135
59.8k
  }
136
137
78.2k
  void deallocate(pointer p, size_type n) {
138
78.2k
    if (arena_ == nullptr) {
139
78.2k
      internal::SizedDelete(p, n * sizeof(value_type));
140
78.2k
    }
141
78.2k
  }
Unexecuted instantiation: google::protobuf::internal::MapAllocator<std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*> >::deallocate(std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, unsigned long)
google::protobuf::internal::MapAllocator<void*>::deallocate(void**, unsigned long)
Line
Count
Source
137
78.2k
  void deallocate(pointer p, size_type n) {
138
78.2k
    if (arena_ == nullptr) {
139
78.2k
      internal::SizedDelete(p, n * sizeof(value_type));
140
78.2k
    }
141
78.2k
  }
142
143
#if !defined(GOOGLE_PROTOBUF_OS_APPLE) && !defined(GOOGLE_PROTOBUF_OS_NACL) && \
144
    !defined(GOOGLE_PROTOBUF_OS_EMSCRIPTEN)
145
  template <class NodeType, class... Args>
146
0
  void construct(NodeType* p, Args&&... args) {
147
    // Clang 3.6 doesn't compile static casting to void* directly. (Issue
148
    // #1266) According C++ standard 5.2.9/1: "The static_cast operator shall
149
    // not cast away constness". So first the maybe const pointer is casted to
150
    // const void* and after the const void* is const casted.
151
0
    new (const_cast<void*>(static_cast<const void*>(p)))
152
0
        NodeType(std::forward<Args>(args)...);
153
0
  }
154
155
  template <class NodeType>
156
0
  void destroy(NodeType* p) {
157
0
    p->~NodeType();
158
0
  }
159
#else
160
  void construct(pointer p, const_reference t) { new (p) value_type(t); }
161
162
  void destroy(pointer p) { p->~value_type(); }
163
#endif
164
165
  template <typename X>
166
  struct rebind {
167
    using other = MapAllocator<X>;
168
  };
169
170
  template <typename X>
171
  bool operator==(const MapAllocator<X>& other) const {
172
    return arena_ == other.arena_;
173
  }
174
175
  template <typename X>
176
  bool operator!=(const MapAllocator<X>& other) const {
177
    return arena_ != other.arena_;
178
  }
179
180
  // To support Visual Studio 2008
181
  size_type max_size() const {
182
    // parentheses around (std::...:max) prevents macro warning of max()
183
    return (std::numeric_limits<size_type>::max)();
184
  }
185
186
  // To support gcc-4.4, which does not properly
187
  // support templated friend classes
188
2.40M
  Arena* arena() const { return arena_; }
google::protobuf::internal::MapAllocator<void*>::arena() const
Line
Count
Source
188
2.40M
  Arena* arena() const { return arena_; }
Unexecuted instantiation: google::protobuf::internal::MapAllocator<std::__1::pair<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const, void*> >::arena() const
189
190
 private:
191
  using DestructorSkippable_ = void;
192
  Arena* arena_;
193
};
194
195
template <typename T>
196
using KeyForTree =
197
    typename std::conditional<std::is_scalar<T>::value, T,
198
                              std::reference_wrapper<const T>>::type;
199
200
// Default case: Not transparent.
201
// We use std::hash<key_type>/std::less<key_type> and all the lookup functions
202
// only accept `key_type`.
203
template <typename key_type>
204
struct TransparentSupport {
205
  using hash = std::hash<key_type>;
206
  using less = std::less<key_type>;
207
208
  static bool Equals(const key_type& a, const key_type& b) { return a == b; }
209
210
  template <typename K>
211
  using key_arg = key_type;
212
};
213
214
#if defined(__cpp_lib_string_view)
215
// If std::string_view is available, we add transparent support for std::string
216
// keys. We use std::hash<std::string_view> as it supports the input types we
217
// care about. The lookup functions accept arbitrary `K`. This will include any
218
// key type that is convertible to std::string_view.
219
template <>
220
struct TransparentSupport<std::string> {
221
0
  static std::string_view ImplicitConvert(std::string_view str) { return str; }
222
  // If the element is not convertible to std::string_view, try to convert to
223
  // std::string first.
224
  // The template makes this overload lose resolution when both have the same
225
  // rank otherwise.
226
  template <typename = void>
227
1.69M
  static std::string_view ImplicitConvert(const std::string& str) {
228
1.69M
    return str;
229
1.69M
  }
230
231
  struct hash : private std::hash<std::string_view> {
232
    using is_transparent = void;
233
234
    template <typename T>
235
857k
    size_t operator()(const T& str) const {
236
857k
      return base()(ImplicitConvert(str));
237
857k
    }
238
239
   private:
240
857k
    const std::hash<std::string_view>& base() const { return *this; }
241
  };
242
  struct less {
243
    using is_transparent = void;
244
245
    template <typename T, typename U>
246
0
    bool operator()(const T& t, const U& u) const {
247
0
      return ImplicitConvert(t) < ImplicitConvert(u);
248
0
    }
Unexecuted instantiation: bool google::protobuf::internal::TransparentSupport<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::less::operator()<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Unexecuted instantiation: bool google::protobuf::internal::TransparentSupport<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::less::operator()<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const&) const
Unexecuted instantiation: bool google::protobuf::internal::TransparentSupport<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::less::operator()<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> >(std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const&, std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const&) const
249
  };
250
251
  template <typename T, typename U>
252
418k
  static bool Equals(const T& t, const U& u) {
253
418k
    return ImplicitConvert(t) == ImplicitConvert(u);
254
418k
  }
255
256
  template <typename K>
257
  using key_arg = K;
258
};
259
#endif  // defined(__cpp_lib_string_view)
260
261
template <typename Key>
262
using TreeForMap =
263
    std::map<KeyForTree<Key>, void*, typename TransparentSupport<Key>::less,
264
             MapAllocator<std::pair<const KeyForTree<Key>, void*>>>;
265
266
1.56M
inline bool TableEntryIsEmpty(void* const* table, size_t b) {
267
1.56M
  return table[b] == nullptr;
268
1.56M
}
269
2.05M
inline bool TableEntryIsNonEmptyList(void* const* table, size_t b) {
270
2.05M
  return table[b] != nullptr && table[b] != table[b ^ 1];
271
2.05M
}
272
1.34M
inline bool TableEntryIsTree(void* const* table, size_t b) {
273
1.34M
  return !TableEntryIsEmpty(table, b) && !TableEntryIsNonEmptyList(table, b);
274
1.34M
}
275
0
inline bool TableEntryIsList(void* const* table, size_t b) {
276
0
  return !TableEntryIsTree(table, b);
277
0
}
278
279
// This captures all numeric types.
280
0
inline size_t MapValueSpaceUsedExcludingSelfLong(bool) { return 0; }
281
0
inline size_t MapValueSpaceUsedExcludingSelfLong(const std::string& str) {
282
0
  return StringSpaceUsedExcludingSelfLong(str);
283
0
}
284
template <typename T,
285
          typename = decltype(std::declval<const T&>().SpaceUsedLong())>
286
0
size_t MapValueSpaceUsedExcludingSelfLong(const T& message) {
287
0
  return message.SpaceUsedLong() - sizeof(T);
288
0
}
Unexecuted instantiation: unsigned long google::protobuf::internal::MapValueSpaceUsedExcludingSelfLong<safepower_agent_proto::NodeState, unsigned long>(safepower_agent_proto::NodeState const&)
Unexecuted instantiation: unsigned long google::protobuf::internal::MapValueSpaceUsedExcludingSelfLong<safepower_agent_proto::DaemonState, unsigned long>(safepower_agent_proto::DaemonState const&)
Unexecuted instantiation: unsigned long google::protobuf::internal::MapValueSpaceUsedExcludingSelfLong<safepower_agent_proto::SystemdUnitState, unsigned long>(safepower_agent_proto::SystemdUnitState const&)
289
290
constexpr size_t kGlobalEmptyTableSize = 1;
291
PROTOBUF_EXPORT extern void* const kGlobalEmptyTable[kGlobalEmptyTableSize];
292
293
// Space used for the table, trees, and nodes.
294
// Does not include the indirect space used. Eg the data of a std::string.
295
template <typename Key>
296
PROTOBUF_NOINLINE size_t SpaceUsedInTable(void** table, size_t num_buckets,
297
                                          size_t num_elements,
298
0
                                          size_t sizeof_node) {
299
0
  size_t size = 0;
300
  // The size of the table.
301
0
  size += sizeof(void*) * num_buckets;
302
  // All the nodes.
303
0
  size += sizeof_node * num_elements;
304
  // For each tree, count the overhead of the those nodes.
305
  // Two buckets at a time because we only care about trees.
306
0
  for (size_t b = 0; b < num_buckets; b += 2) {
307
0
    if (internal::TableEntryIsTree(table, b)) {
308
0
      using Tree = TreeForMap<Key>;
309
0
      Tree* tree = static_cast<Tree*>(table[b]);
310
      // Estimated cost of the red-black tree nodes, 3 pointers plus a
311
      // bool (plus alignment, so 4 pointers).
312
0
      size += tree->size() *
313
0
              (sizeof(typename Tree::value_type) + sizeof(void*) * 4);
314
0
    }
315
0
  }
316
0
  return size;
317
0
}
318
319
template <typename Map,
320
          typename = typename std::enable_if<
321
              !std::is_scalar<typename Map::key_type>::value ||
322
              !std::is_scalar<typename Map::mapped_type>::value>::type>
323
0
size_t SpaceUsedInValues(const Map* map) {
324
0
  size_t size = 0;
325
0
  for (const auto& v : *map) {
326
0
    size += internal::MapValueSpaceUsedExcludingSelfLong(v.first) +
327
0
            internal::MapValueSpaceUsedExcludingSelfLong(v.second);
328
0
  }
329
0
  return size;
330
0
}
Unexecuted instantiation: unsigned long google::protobuf::internal::SpaceUsedInValues<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>, void>(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const*)
Unexecuted instantiation: unsigned long google::protobuf::internal::SpaceUsedInValues<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>, void>(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const*)
Unexecuted instantiation: unsigned long google::protobuf::internal::SpaceUsedInValues<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>, void>(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const*)
331
332
0
inline size_t SpaceUsedInValues(const void*) { return 0; }
333
334
}  // namespace internal
335
336
// This is the class for Map's internal value_type. Instead of using
337
// std::pair as value_type, we use this class which provides us more control of
338
// its process of construction and destruction.
339
template <typename Key, typename T>
340
struct PROTOBUF_ATTRIBUTE_STANDALONE_DEBUG MapPair {
341
  using first_type = const Key;
342
  using second_type = T;
343
344
  MapPair(const Key& other_first, const T& other_second)
345
      : first(other_first), second(other_second) {}
346
  explicit MapPair(const Key& other_first) : first(other_first), second() {}
347
  explicit MapPair(Key&& other_first)
348
      : first(std::move(other_first)), second() {}
349
  MapPair(const MapPair& other) : first(other.first), second(other.second) {}
350
351
158k
  ~MapPair() {}
google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::~MapPair()
Line
Count
Source
351
43.7k
  ~MapPair() {}
google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::~MapPair()
Line
Count
Source
351
54.3k
  ~MapPair() {}
google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::~MapPair()
Line
Count
Source
351
59.8k
  ~MapPair() {}
352
353
  // Implicitly convertible to std::pair of compatible types.
354
  template <typename T1, typename T2>
355
  operator std::pair<T1, T2>() const {  // NOLINT(runtime/explicit)
356
    return std::pair<T1, T2>(first, second);
357
  }
358
359
  const Key first;
360
  T second;
361
362
 private:
363
  friend class Arena;
364
  friend class Map<Key, T>;
365
};
366
367
// Map is an associative container type used to store protobuf map
368
// fields.  Each Map instance may or may not use a different hash function, a
369
// different iteration order, and so on.  E.g., please don't examine
370
// implementation details to decide if the following would work:
371
//  Map<int, int> m0, m1;
372
//  m0[0] = m1[0] = m0[1] = m1[1] = 0;
373
//  assert(m0.begin()->first == m1.begin()->first);  // Bug!
374
//
375
// Map's interface is similar to std::unordered_map, except that Map is not
376
// designed to play well with exceptions.
377
template <typename Key, typename T>
378
class Map {
379
 public:
380
  using key_type = Key;
381
  using mapped_type = T;
382
  using value_type = MapPair<Key, T>;
383
384
  using pointer = value_type*;
385
  using const_pointer = const value_type*;
386
  using reference = value_type&;
387
  using const_reference = const value_type&;
388
389
  using size_type = size_t;
390
  using hasher = typename internal::TransparentSupport<Key>::hash;
391
392
6.49k
  constexpr Map() : elements_(nullptr) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::Map()
Line
Count
Source
392
6.49k
  constexpr Map() : elements_(nullptr) {}
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::Map()
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::Map()
393
1.01M
  explicit Map(Arena* arena) : elements_(arena) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::Map(google::protobuf::Arena*)
Line
Count
Source
393
51.0k
  explicit Map(Arena* arena) : elements_(arena) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::Map(google::protobuf::Arena*)
Line
Count
Source
393
480k
  explicit Map(Arena* arena) : elements_(arena) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::Map(google::protobuf::Arena*)
Line
Count
Source
393
480k
  explicit Map(Arena* arena) : elements_(arena) {}
394
395
0
  Map(const Map& other) : Map() { insert(other.begin(), other.end()); }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::Map(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const&)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::Map(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const&)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::Map(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const&)
396
397
  Map(Map&& other) noexcept : Map() {
398
    if (other.arena() != nullptr) {
399
      *this = other;
400
    } else {
401
      swap(other);
402
    }
403
  }
404
405
  Map& operator=(Map&& other) noexcept {
406
    if (this != &other) {
407
      if (arena() != other.arena()) {
408
        *this = other;
409
      } else {
410
        swap(other);
411
      }
412
    }
413
    return *this;
414
  }
415
416
  template <class InputIt>
417
  Map(const InputIt& first, const InputIt& last) : Map() {
418
    insert(first, last);
419
  }
420
421
509k
  ~Map() {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::~Map()
Line
Count
Source
421
28.7k
  ~Map() {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::~Map()
Line
Count
Source
421
240k
  ~Map() {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::~Map()
Line
Count
Source
421
240k
  ~Map() {}
422
423
 private:
424
  using Allocator = internal::MapAllocator<void*>;
425
426
  // InnerMap is a generic hash-based map.  It doesn't contain any
427
  // protocol-buffer-specific logic.  It is a chaining hash map with the
428
  // additional feature that some buckets can be converted to use an ordered
429
  // container.  This ensures O(lg n) bounds on find, insert, and erase, while
430
  // avoiding the overheads of ordered containers most of the time.
431
  //
432
  // The implementation doesn't need the full generality of unordered_map,
433
  // and it doesn't have it.  More bells and whistles can be added as needed.
434
  // Some implementation details:
435
  // 1. The hash function has type hasher and the equality function
436
  //    equal_to<Key>.  We inherit from hasher to save space
437
  //    (empty-base-class optimization).
438
  // 2. The number of buckets is a power of two.
439
  // 3. Buckets are converted to trees in pairs: if we convert bucket b then
440
  //    buckets b and b^1 will share a tree.  Invariant: buckets b and b^1 have
441
  //    the same non-null value iff they are sharing a tree.  (An alternative
442
  //    implementation strategy would be to have a tag bit per bucket.)
443
  // 4. As is typical for hash_map and such, the Keys and Values are always
444
  //    stored in linked list nodes.  Pointers to elements are never invalidated
445
  //    until the element is deleted.
446
  // 5. The trees' payload type is pointer to linked-list node.  Tree-converting
447
  //    a bucket doesn't copy Key-Value pairs.
448
  // 6. Once we've tree-converted a bucket, it is never converted back. However,
449
  //    the items a tree contains may wind up assigned to trees or lists upon a
450
  //    rehash.
451
  // 7. The code requires no C++ features from C++14 or later.
452
  // 8. Mutations to a map do not invalidate the map's iterators, pointers to
453
  //    elements, or references to elements.
454
  // 9. Except for erase(iterator), any non-const method can reorder iterators.
455
  // 10. InnerMap uses KeyForTree<Key> when using the Tree representation, which
456
  //    is either `Key`, if Key is a scalar, or `reference_wrapper<const Key>`
457
  //    otherwise. This avoids unnecessary copies of string keys, for example.
458
  class InnerMap : private hasher {
459
   public:
460
    explicit constexpr InnerMap(Arena* arena)
461
1.01M
        : hasher(),
462
1.01M
          num_elements_(0),
463
1.01M
          num_buckets_(internal::kGlobalEmptyTableSize),
464
1.01M
          seed_(0),
465
1.01M
          index_of_first_non_null_(internal::kGlobalEmptyTableSize),
466
1.01M
          table_(const_cast<void**>(internal::kGlobalEmptyTable)),
467
1.01M
          alloc_(arena) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::InnerMap(google::protobuf::Arena*)
Line
Count
Source
461
57.5k
        : hasher(),
462
57.5k
          num_elements_(0),
463
57.5k
          num_buckets_(internal::kGlobalEmptyTableSize),
464
57.5k
          seed_(0),
465
57.5k
          index_of_first_non_null_(internal::kGlobalEmptyTableSize),
466
57.5k
          table_(const_cast<void**>(internal::kGlobalEmptyTable)),
467
57.5k
          alloc_(arena) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::InnerMap(google::protobuf::Arena*)
Line
Count
Source
461
480k
        : hasher(),
462
480k
          num_elements_(0),
463
480k
          num_buckets_(internal::kGlobalEmptyTableSize),
464
480k
          seed_(0),
465
480k
          index_of_first_non_null_(internal::kGlobalEmptyTableSize),
466
480k
          table_(const_cast<void**>(internal::kGlobalEmptyTable)),
467
480k
          alloc_(arena) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::InnerMap(google::protobuf::Arena*)
Line
Count
Source
461
480k
        : hasher(),
462
480k
          num_elements_(0),
463
480k
          num_buckets_(internal::kGlobalEmptyTableSize),
464
480k
          seed_(0),
465
480k
          index_of_first_non_null_(internal::kGlobalEmptyTableSize),
466
480k
          table_(const_cast<void**>(internal::kGlobalEmptyTable)),
467
480k
          alloc_(arena) {}
468
469
509k
    ~InnerMap() {
470
509k
      if (alloc_.arena() == nullptr &&
471
509k
          num_buckets_ != internal::kGlobalEmptyTableSize) {
472
72.7k
        clear();
473
72.7k
        Dealloc<void*>(table_, num_buckets_);
474
72.7k
      }
475
509k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::~InnerMap()
Line
Count
Source
469
28.7k
    ~InnerMap() {
470
28.7k
      if (alloc_.arena() == nullptr &&
471
28.7k
          num_buckets_ != internal::kGlobalEmptyTableSize) {
472
10.9k
        clear();
473
10.9k
        Dealloc<void*>(table_, num_buckets_);
474
10.9k
      }
475
28.7k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::~InnerMap()
Line
Count
Source
469
240k
    ~InnerMap() {
470
240k
      if (alloc_.arena() == nullptr &&
471
240k
          num_buckets_ != internal::kGlobalEmptyTableSize) {
472
25.5k
        clear();
473
25.5k
        Dealloc<void*>(table_, num_buckets_);
474
25.5k
      }
475
240k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::~InnerMap()
Line
Count
Source
469
240k
    ~InnerMap() {
470
240k
      if (alloc_.arena() == nullptr &&
471
240k
          num_buckets_ != internal::kGlobalEmptyTableSize) {
472
36.2k
        clear();
473
36.2k
        Dealloc<void*>(table_, num_buckets_);
474
36.2k
      }
475
240k
    }
476
477
   private:
478
    enum { kMinTableSize = 8 };
479
480
    // Linked-list nodes, as one would expect for a chaining hash table.
481
    struct Node {
482
      value_type kv;
483
      Node* next;
484
    };
485
486
    // Trees. The payload type is a copy of Key, so that we can query the tree
487
    // with Keys that are not in any particular data structure.
488
    // The value is a void* pointing to Node. We use void* instead of Node* to
489
    // avoid code bloat. That way there is only one instantiation of the tree
490
    // class per key type.
491
    using Tree = internal::TreeForMap<Key>;
492
    using TreeIterator = typename Tree::iterator;
493
494
0
    static Node* NodeFromTreeIterator(TreeIterator it) {
495
0
      return static_cast<Node*>(it->second);
496
0
    }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::NodeFromTreeIterator(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::NodeFromTreeIterator(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::NodeFromTreeIterator(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >)
497
498
    // iterator and const_iterator are instantiations of iterator_base.
499
    template <typename KeyValueType>
500
    class iterator_base {
501
     public:
502
      using reference = KeyValueType&;
503
      using pointer = KeyValueType*;
504
505
      // Invariants:
506
      // node_ is always correct. This is handy because the most common
507
      // operations are operator* and operator-> and they only use node_.
508
      // When node_ is set to a non-null value, all the other non-const fields
509
      // are updated to be correct also, but those fields can become stale
510
      // if the underlying map is modified.  When those fields are needed they
511
      // are rechecked, and updated if necessary.
512
1.51M
      iterator_base() : node_(nullptr), m_(nullptr), bucket_index_(0) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const>::iterator_base()
Line
Count
Source
512
290k
      iterator_base() : node_(nullptr), m_(nullptr), bucket_index_(0) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >::iterator_base()
Line
Count
Source
512
158k
      iterator_base() : node_(nullptr), m_(nullptr), bucket_index_(0) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const>::iterator_base()
Line
Count
Source
512
370k
      iterator_base() : node_(nullptr), m_(nullptr), bucket_index_(0) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >::iterator_base()
Line
Count
Source
512
159k
      iterator_base() : node_(nullptr), m_(nullptr), bucket_index_(0) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const>::iterator_base()
Line
Count
Source
512
375k
      iterator_base() : node_(nullptr), m_(nullptr), bucket_index_(0) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >::iterator_base()
Line
Count
Source
512
155k
      iterator_base() : node_(nullptr), m_(nullptr), bucket_index_(0) {}
513
514
222k
      explicit iterator_base(const InnerMap* m) : m_(m) {
515
222k
        SearchFrom(m->index_of_first_non_null_);
516
222k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const>::iterator_base(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap const*)
Line
Count
Source
514
10.1k
      explicit iterator_base(const InnerMap* m) : m_(m) {
515
10.1k
        SearchFrom(m->index_of_first_non_null_);
516
10.1k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const>::iterator_base(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap const*)
Line
Count
Source
514
106k
      explicit iterator_base(const InnerMap* m) : m_(m) {
515
106k
        SearchFrom(m->index_of_first_non_null_);
516
106k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const>::iterator_base(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap const*)
Line
Count
Source
514
106k
      explicit iterator_base(const InnerMap* m) : m_(m) {
515
106k
        SearchFrom(m->index_of_first_non_null_);
516
106k
      }
517
518
      // Any iterator_base can convert to any other.  This is overkill, and we
519
      // rely on the enclosing class to use it wisely.  The standard "iterator
520
      // can convert to const_iterator" is OK but the reverse direction is not.
521
      template <typename U>
522
      explicit iterator_base(const iterator_base<U>& it)
523
381k
          : node_(it.node_), m_(it.m_), bucket_index_(it.bucket_index_) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const>(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const> const&)
Line
Count
Source
523
165k
          : node_(it.node_), m_(it.m_), bucket_index_(it.bucket_index_) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const>(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const> const&)
Line
Count
Source
523
110k
          : node_(it.node_), m_(it.m_), bucket_index_(it.bucket_index_) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const>(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const> const&)
Line
Count
Source
523
105k
          : node_(it.node_), m_(it.m_), bucket_index_(it.bucket_index_) {}
524
525
      iterator_base(Node* n, const InnerMap* m, size_type index)
526
516k
          : node_(n), m_(m), bucket_index_(index) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const>::iterator_base(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Node*, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap const*, unsigned long)
Line
Count
Source
526
202k
          : node_(n), m_(m), bucket_index_(index) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >::iterator_base(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Node*, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap const*, unsigned long)
Line
Count
Source
526
70.4k
          : node_(n), m_(m), bucket_index_(index) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const>::iterator_base(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Node*, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap const*, unsigned long)
Line
Count
Source
526
43.4k
          : node_(n), m_(m), bucket_index_(index) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >::iterator_base(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Node*, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap const*, unsigned long)
Line
Count
Source
526
75.3k
          : node_(n), m_(m), bucket_index_(index) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const>::iterator_base(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Node*, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap const*, unsigned long)
Line
Count
Source
526
51.2k
          : node_(n), m_(m), bucket_index_(index) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >::iterator_base(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Node*, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap const*, unsigned long)
Line
Count
Source
526
73.3k
          : node_(n), m_(m), bucket_index_(index) {}
527
528
      iterator_base(TreeIterator tree_it, const InnerMap* m, size_type index)
529
0
          : node_(NodeFromTreeIterator(tree_it)), m_(m), bucket_index_(index) {
530
        // Invariant: iterators that use buckets with trees have an even
531
        // bucket_index_.
532
0
        GOOGLE_DCHECK_EQ(bucket_index_ % 2, 0u);
533
0
      }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const>::iterator_base(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap const*, unsigned long)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >::iterator_base(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap const*, unsigned long)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const>::iterator_base(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap const*, unsigned long)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >::iterator_base(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap const*, unsigned long)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const>::iterator_base(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap const*, unsigned long)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >::iterator_base(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap const*, unsigned long)
534
535
      // Advance through buckets, looking for the first that isn't empty.
536
      // If nothing non-empty is found then leave node_ == nullptr.
537
330k
      void SearchFrom(size_type start_bucket) {
538
330k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
330k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
330k
        node_ = nullptr;
541
610k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
384k
             bucket_index_++) {
543
384k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
104k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
104k
            break;
546
279k
          } else if (m_->TableEntryIsTree(bucket_index_)) {
547
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
548
0
            GOOGLE_DCHECK(!tree->empty());
549
0
            node_ = NodeFromTreeIterator(tree->begin());
550
0
            break;
551
0
          }
552
384k
        }
553
330k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >::SearchFrom(unsigned long)
Line
Count
Source
537
9.14k
      void SearchFrom(size_type start_bucket) {
538
9.14k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
9.14k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
9.14k
        node_ = nullptr;
541
24.1k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
21.8k
             bucket_index_++) {
543
21.8k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
6.85k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
6.85k
            break;
546
15.0k
          } else if (m_->TableEntryIsTree(bucket_index_)) {
547
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
548
0
            GOOGLE_DCHECK(!tree->empty());
549
0
            node_ = NodeFromTreeIterator(tree->begin());
550
0
            break;
551
0
          }
552
21.8k
        }
553
9.14k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const>::SearchFrom(unsigned long)
Line
Count
Source
537
19.1k
      void SearchFrom(size_type start_bucket) {
538
19.1k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
19.1k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
19.1k
        node_ = nullptr;
541
39.4k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
32.9k
             bucket_index_++) {
543
32.9k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
12.6k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
12.6k
            break;
546
20.2k
          } else if (m_->TableEntryIsTree(bucket_index_)) {
547
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
548
0
            GOOGLE_DCHECK(!tree->empty());
549
0
            node_ = NodeFromTreeIterator(tree->begin());
550
0
            break;
551
0
          }
552
32.9k
        }
553
19.1k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >::SearchFrom(unsigned long)
Line
Count
Source
537
7.32k
      void SearchFrom(size_type start_bucket) {
538
7.32k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
7.32k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
7.32k
        node_ = nullptr;
541
20.0k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
17.5k
             bucket_index_++) {
543
17.5k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
4.83k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
4.83k
            break;
546
12.7k
          } else if (m_->TableEntryIsTree(bucket_index_)) {
547
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
548
0
            GOOGLE_DCHECK(!tree->empty());
549
0
            node_ = NodeFromTreeIterator(tree->begin());
550
0
            break;
551
0
          }
552
17.5k
        }
553
7.32k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >::SearchFrom(unsigned long)
Line
Count
Source
537
6.80k
      void SearchFrom(size_type start_bucket) {
538
6.80k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
6.80k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
6.80k
        node_ = nullptr;
541
17.4k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
14.3k
             bucket_index_++) {
543
14.3k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
3.70k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
3.70k
            break;
546
10.6k
          } else if (m_->TableEntryIsTree(bucket_index_)) {
547
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
548
0
            GOOGLE_DCHECK(!tree->empty());
549
0
            node_ = NodeFromTreeIterator(tree->begin());
550
0
            break;
551
0
          }
552
14.3k
        }
553
6.80k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const>::SearchFrom(unsigned long)
Line
Count
Source
537
142k
      void SearchFrom(size_type start_bucket) {
538
142k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
142k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
142k
        node_ = nullptr;
541
239k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
142k
             bucket_index_++) {
543
133k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
37.0k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
37.0k
            break;
546
96.5k
          } else if (m_->TableEntryIsTree(bucket_index_)) {
547
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
548
0
            GOOGLE_DCHECK(!tree->empty());
549
0
            node_ = NodeFromTreeIterator(tree->begin());
550
0
            break;
551
0
          }
552
133k
        }
553
142k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const>::SearchFrom(unsigned long)
Line
Count
Source
537
145k
      void SearchFrom(size_type start_bucket) {
538
145k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
145k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
145k
        node_ = nullptr;
541
269k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
163k
             bucket_index_++) {
543
163k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
39.3k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
39.3k
            break;
546
124k
          } else if (m_->TableEntryIsTree(bucket_index_)) {
547
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
548
0
            GOOGLE_DCHECK(!tree->empty());
549
0
            node_ = NodeFromTreeIterator(tree->begin());
550
0
            break;
551
0
          }
552
163k
        }
553
145k
      }
554
555
563k
      reference operator*() const { return node_->kv; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >::operator*() const
Line
Count
Source
555
124k
      reference operator*() const { return node_->kv; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const>::operator*() const
Line
Count
Source
555
136k
      reference operator*() const { return node_->kv; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >::operator*() const
Line
Count
Source
555
80.3k
      reference operator*() const { return node_->kv; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >::operator*() const
Line
Count
Source
555
83.5k
      reference operator*() const { return node_->kv; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const>::operator*() const
Line
Count
Source
555
66.6k
      reference operator*() const { return node_->kv; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const>::operator*() const
Line
Count
Source
555
72.4k
      reference operator*() const { return node_->kv; }
556
0
      pointer operator->() const { return &(operator*()); }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >::operator->() const
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >::operator->() const
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >::operator->() const
557
558
784k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
784k
        return a.node_ == b.node_;
560
784k
      }
google::protobuf::operator==(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> > const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> > const&)
Line
Count
Source
558
87.8k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
87.8k
        return a.node_ == b.node_;
560
87.8k
      }
google::protobuf::operator==(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const> const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const> const&)
Line
Count
Source
558
144k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
144k
        return a.node_ == b.node_;
560
144k
      }
google::protobuf::operator==(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> > const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> > const&)
Line
Count
Source
558
84.2k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
84.2k
        return a.node_ == b.node_;
560
84.2k
      }
google::protobuf::operator==(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> > const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> > const&)
Line
Count
Source
558
82.2k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
82.2k
        return a.node_ == b.node_;
560
82.2k
      }
google::protobuf::operator==(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const> const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const> const&)
Line
Count
Source
558
191k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
191k
        return a.node_ == b.node_;
560
191k
      }
google::protobuf::operator==(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const> const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const> const&)
Line
Count
Source
558
194k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
194k
        return a.node_ == b.node_;
560
194k
      }
561
      friend bool operator!=(const iterator_base& a, const iterator_base& b) {
562
        return a.node_ != b.node_;
563
      }
564
565
119k
      iterator_base& operator++() {
566
119k
        if (node_->next == nullptr) {
567
107k
          TreeIterator tree_it;
568
107k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
107k
          if (is_list) {
570
107k
            SearchFrom(bucket_index_ + 1);
571
107k
          } else {
572
0
            GOOGLE_DCHECK_EQ(bucket_index_ & 1, 0u);
573
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
574
0
            if (++tree_it == tree->end()) {
575
0
              SearchFrom(bucket_index_ + 2);
576
0
            } else {
577
0
              node_ = NodeFromTreeIterator(tree_it);
578
0
            }
579
0
          }
580
107k
        } else {
581
11.8k
          node_ = node_->next;
582
11.8k
        }
583
119k
        return *this;
584
119k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >::operator++()
Line
Count
Source
565
10.8k
      iterator_base& operator++() {
566
10.8k
        if (node_->next == nullptr) {
567
9.14k
          TreeIterator tree_it;
568
9.14k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
9.14k
          if (is_list) {
570
9.14k
            SearchFrom(bucket_index_ + 1);
571
9.14k
          } else {
572
0
            GOOGLE_DCHECK_EQ(bucket_index_ & 1, 0u);
573
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
574
0
            if (++tree_it == tree->end()) {
575
0
              SearchFrom(bucket_index_ + 2);
576
0
            } else {
577
0
              node_ = NodeFromTreeIterator(tree_it);
578
0
            }
579
0
          }
580
9.14k
        } else {
581
1.69k
          node_ = node_->next;
582
1.69k
        }
583
10.8k
        return *this;
584
10.8k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const>::operator++()
Line
Count
Source
565
10.5k
      iterator_base& operator++() {
566
10.5k
        if (node_->next == nullptr) {
567
9.01k
          TreeIterator tree_it;
568
9.01k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
9.01k
          if (is_list) {
570
9.01k
            SearchFrom(bucket_index_ + 1);
571
9.01k
          } else {
572
0
            GOOGLE_DCHECK_EQ(bucket_index_ & 1, 0u);
573
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
574
0
            if (++tree_it == tree->end()) {
575
0
              SearchFrom(bucket_index_ + 2);
576
0
            } else {
577
0
              node_ = NodeFromTreeIterator(tree_it);
578
0
            }
579
0
          }
580
9.01k
        } else {
581
1.57k
          node_ = node_->next;
582
1.57k
        }
583
10.5k
        return *this;
584
10.5k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >::operator++()
Line
Count
Source
565
8.91k
      iterator_base& operator++() {
566
8.91k
        if (node_->next == nullptr) {
567
7.32k
          TreeIterator tree_it;
568
7.32k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
7.32k
          if (is_list) {
570
7.32k
            SearchFrom(bucket_index_ + 1);
571
7.32k
          } else {
572
0
            GOOGLE_DCHECK_EQ(bucket_index_ & 1, 0u);
573
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
574
0
            if (++tree_it == tree->end()) {
575
0
              SearchFrom(bucket_index_ + 2);
576
0
            } else {
577
0
              node_ = NodeFromTreeIterator(tree_it);
578
0
            }
579
0
          }
580
7.32k
        } else {
581
1.58k
          node_ = node_->next;
582
1.58k
        }
583
8.91k
        return *this;
584
8.91k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >::operator++()
Line
Count
Source
565
8.85k
      iterator_base& operator++() {
566
8.85k
        if (node_->next == nullptr) {
567
6.80k
          TreeIterator tree_it;
568
6.80k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
6.80k
          if (is_list) {
570
6.80k
            SearchFrom(bucket_index_ + 1);
571
6.80k
          } else {
572
0
            GOOGLE_DCHECK_EQ(bucket_index_ & 1, 0u);
573
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
574
0
            if (++tree_it == tree->end()) {
575
0
              SearchFrom(bucket_index_ + 2);
576
0
            } else {
577
0
              node_ = NodeFromTreeIterator(tree_it);
578
0
            }
579
0
          }
580
6.80k
        } else {
581
2.05k
          node_ = node_->next;
582
2.05k
        }
583
8.85k
        return *this;
584
8.85k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const>::operator++()
Line
Count
Source
565
39.8k
      iterator_base& operator++() {
566
39.8k
        if (node_->next == nullptr) {
567
36.3k
          TreeIterator tree_it;
568
36.3k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
36.3k
          if (is_list) {
570
36.3k
            SearchFrom(bucket_index_ + 1);
571
36.3k
          } else {
572
0
            GOOGLE_DCHECK_EQ(bucket_index_ & 1, 0u);
573
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
574
0
            if (++tree_it == tree->end()) {
575
0
              SearchFrom(bucket_index_ + 2);
576
0
            } else {
577
0
              node_ = NodeFromTreeIterator(tree_it);
578
0
            }
579
0
          }
580
36.3k
        } else {
581
3.48k
          node_ = node_->next;
582
3.48k
        }
583
39.8k
        return *this;
584
39.8k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const>::operator++()
Line
Count
Source
565
40.5k
      iterator_base& operator++() {
566
40.5k
        if (node_->next == nullptr) {
567
39.0k
          TreeIterator tree_it;
568
39.0k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
39.0k
          if (is_list) {
570
39.0k
            SearchFrom(bucket_index_ + 1);
571
39.0k
          } else {
572
0
            GOOGLE_DCHECK_EQ(bucket_index_ & 1, 0u);
573
0
            Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
574
0
            if (++tree_it == tree->end()) {
575
0
              SearchFrom(bucket_index_ + 2);
576
0
            } else {
577
0
              node_ = NodeFromTreeIterator(tree_it);
578
0
            }
579
0
          }
580
39.0k
        } else {
581
1.46k
          node_ = node_->next;
582
1.46k
        }
583
40.5k
        return *this;
584
40.5k
      }
585
586
28.6k
      iterator_base operator++(int /* unused */) {
587
28.6k
        iterator_base tmp = *this;
588
28.6k
        ++*this;
589
28.6k
        return tmp;
590
28.6k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >::operator++(int)
Line
Count
Source
586
10.8k
      iterator_base operator++(int /* unused */) {
587
10.8k
        iterator_base tmp = *this;
588
10.8k
        ++*this;
589
10.8k
        return tmp;
590
10.8k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >::operator++(int)
Line
Count
Source
586
8.91k
      iterator_base operator++(int /* unused */) {
587
8.91k
        iterator_base tmp = *this;
588
8.91k
        ++*this;
589
8.91k
        return tmp;
590
8.91k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >::operator++(int)
Line
Count
Source
586
8.85k
      iterator_base operator++(int /* unused */) {
587
8.85k
        iterator_base tmp = *this;
588
8.85k
        ++*this;
589
8.85k
        return tmp;
590
8.85k
      }
591
592
      // Assumes node_ and m_ are correct and non-null, but other fields may be
593
      // stale.  Fix them as needed.  Then return true iff node_ points to a
594
      // Node in a list.  If false is returned then *it is modified to be
595
      // a valid iterator for node_.
596
136k
      bool revalidate_if_necessary(TreeIterator* it) {
597
136k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
136k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
136k
        if (m_->table_[bucket_index_] == static_cast<void*>(node_)) return true;
602
        // Less common: the bucket is a linked list with node_ somewhere in it,
603
        // but not at the head.
604
13.2k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
13.2k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
14.1k
          while ((l = l->next) != nullptr) {
607
14.1k
            if (l == node_) {
608
13.2k
              return true;
609
13.2k
            }
610
14.1k
          }
611
13.2k
        }
612
        // Well, bucket_index_ still might be correct, but probably
613
        // not.  Revalidate just to be sure.  This case is rare enough that we
614
        // don't worry about potential optimizations, such as having a custom
615
        // find-like method that compares Node* instead of the key.
616
0
        iterator_base i(m_->find(node_->kv.first, it));
617
0
        bucket_index_ = i.bucket_index_;
618
0
        return m_->TableEntryIsList(bucket_index_);
619
13.2k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >::revalidate_if_necessary(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >*)
Line
Count
Source
596
19.9k
      bool revalidate_if_necessary(TreeIterator* it) {
597
19.9k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
19.9k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
19.9k
        if (m_->table_[bucket_index_] == static_cast<void*>(node_)) return true;
602
        // Less common: the bucket is a linked list with node_ somewhere in it,
603
        // but not at the head.
604
2.32k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
2.32k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
2.32k
          while ((l = l->next) != nullptr) {
607
2.32k
            if (l == node_) {
608
2.32k
              return true;
609
2.32k
            }
610
2.32k
          }
611
2.32k
        }
612
        // Well, bucket_index_ still might be correct, but probably
613
        // not.  Revalidate just to be sure.  This case is rare enough that we
614
        // don't worry about potential optimizations, such as having a custom
615
        // find-like method that compares Node* instead of the key.
616
0
        iterator_base i(m_->find(node_->kv.first, it));
617
0
        bucket_index_ = i.bucket_index_;
618
0
        return m_->TableEntryIsList(bucket_index_);
619
2.32k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const>::revalidate_if_necessary(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >*)
Line
Count
Source
596
9.01k
      bool revalidate_if_necessary(TreeIterator* it) {
597
9.01k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
9.01k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
9.01k
        if (m_->table_[bucket_index_] == static_cast<void*>(node_)) return true;
602
        // Less common: the bucket is a linked list with node_ somewhere in it,
603
        // but not at the head.
604
1.31k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
1.31k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
1.57k
          while ((l = l->next) != nullptr) {
607
1.57k
            if (l == node_) {
608
1.31k
              return true;
609
1.31k
            }
610
1.57k
          }
611
1.31k
        }
612
        // Well, bucket_index_ still might be correct, but probably
613
        // not.  Revalidate just to be sure.  This case is rare enough that we
614
        // don't worry about potential optimizations, such as having a custom
615
        // find-like method that compares Node* instead of the key.
616
0
        iterator_base i(m_->find(node_->kv.first, it));
617
0
        bucket_index_ = i.bucket_index_;
618
0
        return m_->TableEntryIsList(bucket_index_);
619
1.31k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >::revalidate_if_necessary(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >*)
Line
Count
Source
596
16.2k
      bool revalidate_if_necessary(TreeIterator* it) {
597
16.2k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
16.2k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
16.2k
        if (m_->table_[bucket_index_] == static_cast<void*>(node_)) return true;
602
        // Less common: the bucket is a linked list with node_ somewhere in it,
603
        // but not at the head.
604
2.97k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
2.97k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
2.97k
          while ((l = l->next) != nullptr) {
607
2.97k
            if (l == node_) {
608
2.97k
              return true;
609
2.97k
            }
610
2.97k
          }
611
2.97k
        }
612
        // Well, bucket_index_ still might be correct, but probably
613
        // not.  Revalidate just to be sure.  This case is rare enough that we
614
        // don't worry about potential optimizations, such as having a custom
615
        // find-like method that compares Node* instead of the key.
616
0
        iterator_base i(m_->find(node_->kv.first, it));
617
0
        bucket_index_ = i.bucket_index_;
618
0
        return m_->TableEntryIsList(bucket_index_);
619
2.97k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >::revalidate_if_necessary(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >*)
Line
Count
Source
596
15.6k
      bool revalidate_if_necessary(TreeIterator* it) {
597
15.6k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
15.6k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
15.6k
        if (m_->table_[bucket_index_] == static_cast<void*>(node_)) return true;
602
        // Less common: the bucket is a linked list with node_ somewhere in it,
603
        // but not at the head.
604
2.35k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
2.35k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
2.35k
          while ((l = l->next) != nullptr) {
607
2.35k
            if (l == node_) {
608
2.35k
              return true;
609
2.35k
            }
610
2.35k
          }
611
2.35k
        }
612
        // Well, bucket_index_ still might be correct, but probably
613
        // not.  Revalidate just to be sure.  This case is rare enough that we
614
        // don't worry about potential optimizations, such as having a custom
615
        // find-like method that compares Node* instead of the key.
616
0
        iterator_base i(m_->find(node_->kv.first, it));
617
0
        bucket_index_ = i.bucket_index_;
618
0
        return m_->TableEntryIsList(bucket_index_);
619
2.35k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const>::revalidate_if_necessary(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >*)
Line
Count
Source
596
36.3k
      bool revalidate_if_necessary(TreeIterator* it) {
597
36.3k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
36.3k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
36.3k
        if (m_->table_[bucket_index_] == static_cast<void*>(node_)) return true;
602
        // Less common: the bucket is a linked list with node_ somewhere in it,
603
        // but not at the head.
604
3.01k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
3.01k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
3.48k
          while ((l = l->next) != nullptr) {
607
3.48k
            if (l == node_) {
608
3.01k
              return true;
609
3.01k
            }
610
3.48k
          }
611
3.01k
        }
612
        // Well, bucket_index_ still might be correct, but probably
613
        // not.  Revalidate just to be sure.  This case is rare enough that we
614
        // don't worry about potential optimizations, such as having a custom
615
        // find-like method that compares Node* instead of the key.
616
0
        iterator_base i(m_->find(node_->kv.first, it));
617
0
        bucket_index_ = i.bucket_index_;
618
0
        return m_->TableEntryIsList(bucket_index_);
619
3.01k
      }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const>::revalidate_if_necessary(std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >*)
Line
Count
Source
596
39.0k
      bool revalidate_if_necessary(TreeIterator* it) {
597
39.0k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
39.0k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
39.0k
        if (m_->table_[bucket_index_] == static_cast<void*>(node_)) return true;
602
        // Less common: the bucket is a linked list with node_ somewhere in it,
603
        // but not at the head.
604
1.28k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
1.28k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
1.45k
          while ((l = l->next) != nullptr) {
607
1.45k
            if (l == node_) {
608
1.28k
              return true;
609
1.28k
            }
610
1.45k
          }
611
1.28k
        }
612
        // Well, bucket_index_ still might be correct, but probably
613
        // not.  Revalidate just to be sure.  This case is rare enough that we
614
        // don't worry about potential optimizations, such as having a custom
615
        // find-like method that compares Node* instead of the key.
616
0
        iterator_base i(m_->find(node_->kv.first, it));
617
0
        bucket_index_ = i.bucket_index_;
618
0
        return m_->TableEntryIsList(bucket_index_);
619
1.28k
      }
620
621
      Node* node_;
622
      const InnerMap* m_;
623
      size_type bucket_index_;
624
    };
625
626
   public:
627
    using iterator = iterator_base<value_type>;
628
    using const_iterator = iterator_base<const value_type>;
629
630
1.26M
    Arena* arena() const { return alloc_.arena(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::arena() const
Line
Count
Source
630
546k
    Arena* arena() const { return alloc_.arena(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::arena() const
Line
Count
Source
630
162k
    Arena* arena() const { return alloc_.arena(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::arena() const
Line
Count
Source
630
552k
    Arena* arena() const { return alloc_.arena(); }
631
632
724k
    void Swap(InnerMap* other) {
633
724k
      std::swap(num_elements_, other->num_elements_);
634
724k
      std::swap(num_buckets_, other->num_buckets_);
635
724k
      std::swap(seed_, other->seed_);
636
724k
      std::swap(index_of_first_non_null_, other->index_of_first_non_null_);
637
724k
      std::swap(table_, other->table_);
638
724k
      std::swap(alloc_, other->alloc_);
639
724k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Swap(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap*)
Line
Count
Source
632
28.7k
    void Swap(InnerMap* other) {
633
28.7k
      std::swap(num_elements_, other->num_elements_);
634
28.7k
      std::swap(num_buckets_, other->num_buckets_);
635
28.7k
      std::swap(seed_, other->seed_);
636
28.7k
      std::swap(index_of_first_non_null_, other->index_of_first_non_null_);
637
28.7k
      std::swap(table_, other->table_);
638
28.7k
      std::swap(alloc_, other->alloc_);
639
28.7k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Swap(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap*)
Line
Count
Source
632
348k
    void Swap(InnerMap* other) {
633
348k
      std::swap(num_elements_, other->num_elements_);
634
348k
      std::swap(num_buckets_, other->num_buckets_);
635
348k
      std::swap(seed_, other->seed_);
636
348k
      std::swap(index_of_first_non_null_, other->index_of_first_non_null_);
637
348k
      std::swap(table_, other->table_);
638
348k
      std::swap(alloc_, other->alloc_);
639
348k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Swap(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap*)
Line
Count
Source
632
348k
    void Swap(InnerMap* other) {
633
348k
      std::swap(num_elements_, other->num_elements_);
634
348k
      std::swap(num_buckets_, other->num_buckets_);
635
348k
      std::swap(seed_, other->seed_);
636
348k
      std::swap(index_of_first_non_null_, other->index_of_first_non_null_);
637
348k
      std::swap(table_, other->table_);
638
348k
      std::swap(alloc_, other->alloc_);
639
348k
    }
640
641
    iterator begin() { return iterator(this); }
642
254k
    iterator end() { return iterator(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::end()
Line
Count
Source
642
87.8k
    iterator end() { return iterator(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::end()
Line
Count
Source
642
84.2k
    iterator end() { return iterator(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::end()
Line
Count
Source
642
82.2k
    iterator end() { return iterator(); }
643
222k
    const_iterator begin() const { return const_iterator(this); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::begin() const
Line
Count
Source
643
10.1k
    const_iterator begin() const { return const_iterator(this); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::begin() const
Line
Count
Source
643
106k
    const_iterator begin() const { return const_iterator(this); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::begin() const
Line
Count
Source
643
106k
    const_iterator begin() const { return const_iterator(this); }
644
978k
    const_iterator end() const { return const_iterator(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::end() const
Line
Count
Source
644
290k
    const_iterator end() const { return const_iterator(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::end() const
Line
Count
Source
644
340k
    const_iterator end() const { return const_iterator(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::end() const
Line
Count
Source
644
347k
    const_iterator end() const { return const_iterator(); }
645
646
115k
    void clear() {
647
828k
      for (size_type b = 0; b < num_buckets_; b++) {
648
713k
        if (TableEntryIsNonEmptyList(b)) {
649
117k
          Node* node = static_cast<Node*>(table_[b]);
650
117k
          table_[b] = nullptr;
651
129k
          do {
652
129k
            Node* next = node->next;
653
129k
            DestroyNode(node);
654
129k
            node = next;
655
129k
          } while (node != nullptr);
656
595k
        } else if (TableEntryIsTree(b)) {
657
0
          Tree* tree = static_cast<Tree*>(table_[b]);
658
0
          GOOGLE_DCHECK(table_[b] == table_[b + 1] && (b & 1) == 0);
659
0
          table_[b] = table_[b + 1] = nullptr;
660
0
          typename Tree::iterator tree_it = tree->begin();
661
0
          do {
662
0
            Node* node = NodeFromTreeIterator(tree_it);
663
0
            typename Tree::iterator next = tree_it;
664
0
            ++next;
665
0
            tree->erase(tree_it);
666
0
            DestroyNode(node);
667
0
            tree_it = next;
668
0
          } while (tree_it != tree->end());
669
0
          DestroyTree(tree);
670
0
          b++;
671
0
        }
672
713k
      }
673
115k
      num_elements_ = 0;
674
115k
      index_of_first_non_null_ = num_buckets_;
675
115k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::clear()
Line
Count
Source
646
32.3k
    void clear() {
647
179k
      for (size_type b = 0; b < num_buckets_; b++) {
648
146k
        if (TableEntryIsNonEmptyList(b)) {
649
28.0k
          Node* node = static_cast<Node*>(table_[b]);
650
28.0k
          table_[b] = nullptr;
651
32.9k
          do {
652
32.9k
            Node* next = node->next;
653
32.9k
            DestroyNode(node);
654
32.9k
            node = next;
655
32.9k
          } while (node != nullptr);
656
118k
        } else if (TableEntryIsTree(b)) {
657
0
          Tree* tree = static_cast<Tree*>(table_[b]);
658
0
          GOOGLE_DCHECK(table_[b] == table_[b + 1] && (b & 1) == 0);
659
0
          table_[b] = table_[b + 1] = nullptr;
660
0
          typename Tree::iterator tree_it = tree->begin();
661
0
          do {
662
0
            Node* node = NodeFromTreeIterator(tree_it);
663
0
            typename Tree::iterator next = tree_it;
664
0
            ++next;
665
0
            tree->erase(tree_it);
666
0
            DestroyNode(node);
667
0
            tree_it = next;
668
0
          } while (tree_it != tree->end());
669
0
          DestroyTree(tree);
670
0
          b++;
671
0
        }
672
146k
      }
673
32.3k
      num_elements_ = 0;
674
32.3k
      index_of_first_non_null_ = num_buckets_;
675
32.3k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::clear()
Line
Count
Source
646
36.1k
    void clear() {
647
281k
      for (size_type b = 0; b < num_buckets_; b++) {
648
245k
        if (TableEntryIsNonEmptyList(b)) {
649
41.3k
          Node* node = static_cast<Node*>(table_[b]);
650
41.3k
          table_[b] = nullptr;
651
45.4k
          do {
652
45.4k
            Node* next = node->next;
653
45.4k
            DestroyNode(node);
654
45.4k
            node = next;
655
45.4k
          } while (node != nullptr);
656
204k
        } else if (TableEntryIsTree(b)) {
657
0
          Tree* tree = static_cast<Tree*>(table_[b]);
658
0
          GOOGLE_DCHECK(table_[b] == table_[b + 1] && (b & 1) == 0);
659
0
          table_[b] = table_[b + 1] = nullptr;
660
0
          typename Tree::iterator tree_it = tree->begin();
661
0
          do {
662
0
            Node* node = NodeFromTreeIterator(tree_it);
663
0
            typename Tree::iterator next = tree_it;
664
0
            ++next;
665
0
            tree->erase(tree_it);
666
0
            DestroyNode(node);
667
0
            tree_it = next;
668
0
          } while (tree_it != tree->end());
669
0
          DestroyTree(tree);
670
0
          b++;
671
0
        }
672
245k
      }
673
36.1k
      num_elements_ = 0;
674
36.1k
      index_of_first_non_null_ = num_buckets_;
675
36.1k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::clear()
Line
Count
Source
646
46.7k
    void clear() {
647
367k
      for (size_type b = 0; b < num_buckets_; b++) {
648
320k
        if (TableEntryIsNonEmptyList(b)) {
649
48.0k
          Node* node = static_cast<Node*>(table_[b]);
650
48.0k
          table_[b] = nullptr;
651
51.0k
          do {
652
51.0k
            Node* next = node->next;
653
51.0k
            DestroyNode(node);
654
51.0k
            node = next;
655
51.0k
          } while (node != nullptr);
656
272k
        } else if (TableEntryIsTree(b)) {
657
0
          Tree* tree = static_cast<Tree*>(table_[b]);
658
0
          GOOGLE_DCHECK(table_[b] == table_[b + 1] && (b & 1) == 0);
659
0
          table_[b] = table_[b + 1] = nullptr;
660
0
          typename Tree::iterator tree_it = tree->begin();
661
0
          do {
662
0
            Node* node = NodeFromTreeIterator(tree_it);
663
0
            typename Tree::iterator next = tree_it;
664
0
            ++next;
665
0
            tree->erase(tree_it);
666
0
            DestroyNode(node);
667
0
            tree_it = next;
668
0
          } while (tree_it != tree->end());
669
0
          DestroyTree(tree);
670
0
          b++;
671
0
        }
672
320k
      }
673
46.7k
      num_elements_ = 0;
674
46.7k
      index_of_first_non_null_ = num_buckets_;
675
46.7k
    }
676
677
857k
    const hasher& hash_function() const { return *this; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::hash_function() const
Line
Count
Source
677
375k
    const hasher& hash_function() const { return *this; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::hash_function() const
Line
Count
Source
677
236k
    const hasher& hash_function() const { return *this; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::hash_function() const
Line
Count
Source
677
245k
    const hasher& hash_function() const { return *this; }
678
679
78.2k
    static size_type max_size() {
680
78.2k
      return static_cast<size_type>(1) << (sizeof(void**) >= 8 ? 60 : 28);
681
78.2k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::max_size()
Line
Count
Source
679
12.5k
    static size_type max_size() {
680
12.5k
      return static_cast<size_type>(1) << (sizeof(void**) >= 8 ? 60 : 28);
681
12.5k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::max_size()
Line
Count
Source
679
27.6k
    static size_type max_size() {
680
27.6k
      return static_cast<size_type>(1) << (sizeof(void**) >= 8 ? 60 : 28);
681
27.6k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::max_size()
Line
Count
Source
679
38.0k
    static size_type max_size() {
680
38.0k
      return static_cast<size_type>(1) << (sizeof(void**) >= 8 ? 60 : 28);
681
38.0k
    }
682
672k
    size_type size() const { return num_elements_; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::size() const
Line
Count
Source
682
61.6k
    size_type size() const { return num_elements_; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::size() const
Line
Count
Source
682
305k
    size_type size() const { return num_elements_; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::size() const
Line
Count
Source
682
305k
    size_type size() const { return num_elements_; }
683
    bool empty() const { return size() == 0; }
684
685
    template <typename K>
686
254k
    iterator find(const K& k) {
687
254k
      return iterator(FindHelper(k).first);
688
254k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> > google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
686
87.8k
    iterator find(const K& k) {
687
87.8k
      return iterator(FindHelper(k).first);
688
87.8k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> > google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
686
84.2k
    iterator find(const K& k) {
687
84.2k
      return iterator(FindHelper(k).first);
688
84.2k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> > google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
686
82.2k
    iterator find(const K& k) {
687
82.2k
      return iterator(FindHelper(k).first);
688
82.2k
    }
689
690
    template <typename K>
691
178k
    const_iterator find(const K& k) const {
692
178k
      return FindHelper(k).first;
693
178k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
691
127k
    const_iterator find(const K& k) const {
692
127k
      return FindHelper(k).first;
693
127k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
691
23.0k
    const_iterator find(const K& k) const {
692
23.0k
      return FindHelper(k).first;
693
23.0k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
691
27.9k
    const_iterator find(const K& k) const {
692
27.9k
      return FindHelper(k).first;
693
27.9k
    }
694
695
    // Inserts a new element into the container if there is no element with the
696
    // key in the container.
697
    // The new element is:
698
    //  (1) Constructed in-place with the given args, if mapped_type is not
699
    //      arena constructible.
700
    //  (2) Constructed in-place with the arena and then assigned with a
701
    //      mapped_type temporary constructed with the given args, otherwise.
702
    template <typename K, typename... Args>
703
284k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
284k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
284k
                                  std::forward<K>(k),
706
284k
                                  std::forward<Args>(args)...);
707
284k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::try_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
703
10.5k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
10.5k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
10.5k
                                  std::forward<K>(k),
706
10.5k
                                  std::forward<Args>(args)...);
707
10.5k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::try_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
703
110k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
110k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
110k
                                  std::forward<K>(k),
706
110k
                                  std::forward<Args>(args)...);
707
110k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::try_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
703
3.98k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
3.98k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
3.98k
                                  std::forward<K>(k),
706
3.98k
                                  std::forward<Args>(args)...);
707
3.98k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::try_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
703
1.81k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
1.81k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
1.81k
                                  std::forward<K>(k),
706
1.81k
                                  std::forward<Args>(args)...);
707
1.81k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::try_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
703
76.3k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
76.3k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
76.3k
                                  std::forward<K>(k),
706
76.3k
                                  std::forward<Args>(args)...);
707
76.3k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::try_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
703
81.7k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
81.7k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
81.7k
                                  std::forward<K>(k),
706
81.7k
                                  std::forward<Args>(args)...);
707
81.7k
    }
Unexecuted instantiation: std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::try_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::NodeState const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::NodeState const&)
Unexecuted instantiation: std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::try_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::DaemonState const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::DaemonState const&)
Unexecuted instantiation: std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::try_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::SystemdUnitState const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::SystemdUnitState const&)
708
709
    // Inserts the key into the map, if not present. In that case, the value
710
    // will be value initialized.
711
    template <typename K>
712
    std::pair<iterator, bool> insert(K&& k) {
713
      return try_emplace(std::forward<K>(k));
714
    }
715
716
    template <typename K>
717
284k
    value_type& operator[](K&& k) {
718
284k
      return *try_emplace(std::forward<K>(k)).first;
719
284k
    }
google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>& google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::operator[]<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
717
10.5k
    value_type& operator[](K&& k) {
718
10.5k
      return *try_emplace(std::forward<K>(k)).first;
719
10.5k
    }
google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>& google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::operator[]<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
717
110k
    value_type& operator[](K&& k) {
718
110k
      return *try_emplace(std::forward<K>(k)).first;
719
110k
    }
google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>& google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::operator[]<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
717
3.98k
    value_type& operator[](K&& k) {
718
3.98k
      return *try_emplace(std::forward<K>(k)).first;
719
3.98k
    }
google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>& google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::operator[]<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
717
1.81k
    value_type& operator[](K&& k) {
718
1.81k
      return *try_emplace(std::forward<K>(k)).first;
719
1.81k
    }
google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>& google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::operator[]<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
717
76.3k
    value_type& operator[](K&& k) {
718
76.3k
      return *try_emplace(std::forward<K>(k)).first;
719
76.3k
    }
google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>& google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::operator[]<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
717
81.7k
    value_type& operator[](K&& k) {
718
81.7k
      return *try_emplace(std::forward<K>(k)).first;
719
81.7k
    }
720
721
28.6k
    void erase(iterator it) {
722
28.6k
      GOOGLE_DCHECK_EQ(it.m_, this);
723
28.6k
      typename Tree::iterator tree_it;
724
28.6k
      const bool is_list = it.revalidate_if_necessary(&tree_it);
725
28.6k
      size_type b = it.bucket_index_;
726
28.6k
      Node* const item = it.node_;
727
28.6k
      if (is_list) {
728
28.6k
        GOOGLE_DCHECK(TableEntryIsNonEmptyList(b));
729
28.6k
        Node* head = static_cast<Node*>(table_[b]);
730
28.6k
        head = EraseFromLinkedList(item, head);
731
28.6k
        table_[b] = static_cast<void*>(head);
732
28.6k
      } else {
733
0
        GOOGLE_DCHECK(TableEntryIsTree(b));
734
0
        Tree* tree = static_cast<Tree*>(table_[b]);
735
0
        tree->erase(tree_it);
736
0
        if (tree->empty()) {
737
          // Force b to be the minimum of b and b ^ 1.  This is important
738
          // only because we want index_of_first_non_null_ to be correct.
739
0
          b &= ~static_cast<size_type>(1);
740
0
          DestroyTree(tree);
741
0
          table_[b] = table_[b + 1] = nullptr;
742
0
        }
743
0
      }
744
28.6k
      DestroyNode(item);
745
28.6k
      --num_elements_;
746
28.6k
      if (PROTOBUF_PREDICT_FALSE(b == index_of_first_non_null_)) {
747
25.5k
        while (index_of_first_non_null_ < num_buckets_ &&
748
23.6k
               table_[index_of_first_non_null_] == nullptr) {
749
18.0k
          ++index_of_first_non_null_;
750
18.0k
        }
751
7.45k
      }
752
28.6k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::erase(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >)
Line
Count
Source
721
10.8k
    void erase(iterator it) {
722
10.8k
      GOOGLE_DCHECK_EQ(it.m_, this);
723
10.8k
      typename Tree::iterator tree_it;
724
10.8k
      const bool is_list = it.revalidate_if_necessary(&tree_it);
725
10.8k
      size_type b = it.bucket_index_;
726
10.8k
      Node* const item = it.node_;
727
10.8k
      if (is_list) {
728
10.8k
        GOOGLE_DCHECK(TableEntryIsNonEmptyList(b));
729
10.8k
        Node* head = static_cast<Node*>(table_[b]);
730
10.8k
        head = EraseFromLinkedList(item, head);
731
10.8k
        table_[b] = static_cast<void*>(head);
732
10.8k
      } else {
733
0
        GOOGLE_DCHECK(TableEntryIsTree(b));
734
0
        Tree* tree = static_cast<Tree*>(table_[b]);
735
0
        tree->erase(tree_it);
736
0
        if (tree->empty()) {
737
          // Force b to be the minimum of b and b ^ 1.  This is important
738
          // only because we want index_of_first_non_null_ to be correct.
739
0
          b &= ~static_cast<size_type>(1);
740
0
          DestroyTree(tree);
741
0
          table_[b] = table_[b + 1] = nullptr;
742
0
        }
743
0
      }
744
10.8k
      DestroyNode(item);
745
10.8k
      --num_elements_;
746
10.8k
      if (PROTOBUF_PREDICT_FALSE(b == index_of_first_non_null_)) {
747
8.47k
        while (index_of_first_non_null_ < num_buckets_ &&
748
8.25k
               table_[index_of_first_non_null_] == nullptr) {
749
5.68k
          ++index_of_first_non_null_;
750
5.68k
        }
751
2.79k
      }
752
10.8k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::erase(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >)
Line
Count
Source
721
8.91k
    void erase(iterator it) {
722
8.91k
      GOOGLE_DCHECK_EQ(it.m_, this);
723
8.91k
      typename Tree::iterator tree_it;
724
8.91k
      const bool is_list = it.revalidate_if_necessary(&tree_it);
725
8.91k
      size_type b = it.bucket_index_;
726
8.91k
      Node* const item = it.node_;
727
8.91k
      if (is_list) {
728
8.91k
        GOOGLE_DCHECK(TableEntryIsNonEmptyList(b));
729
8.91k
        Node* head = static_cast<Node*>(table_[b]);
730
8.91k
        head = EraseFromLinkedList(item, head);
731
8.91k
        table_[b] = static_cast<void*>(head);
732
8.91k
      } else {
733
0
        GOOGLE_DCHECK(TableEntryIsTree(b));
734
0
        Tree* tree = static_cast<Tree*>(table_[b]);
735
0
        tree->erase(tree_it);
736
0
        if (tree->empty()) {
737
          // Force b to be the minimum of b and b ^ 1.  This is important
738
          // only because we want index_of_first_non_null_ to be correct.
739
0
          b &= ~static_cast<size_type>(1);
740
0
          DestroyTree(tree);
741
0
          table_[b] = table_[b + 1] = nullptr;
742
0
        }
743
0
      }
744
8.91k
      DestroyNode(item);
745
8.91k
      --num_elements_;
746
8.91k
      if (PROTOBUF_PREDICT_FALSE(b == index_of_first_non_null_)) {
747
9.61k
        while (index_of_first_non_null_ < num_buckets_ &&
748
8.78k
               table_[index_of_first_non_null_] == nullptr) {
749
6.99k
          ++index_of_first_non_null_;
750
6.99k
        }
751
2.62k
      }
752
8.91k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::erase(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >)
Line
Count
Source
721
8.85k
    void erase(iterator it) {
722
8.85k
      GOOGLE_DCHECK_EQ(it.m_, this);
723
8.85k
      typename Tree::iterator tree_it;
724
8.85k
      const bool is_list = it.revalidate_if_necessary(&tree_it);
725
8.85k
      size_type b = it.bucket_index_;
726
8.85k
      Node* const item = it.node_;
727
8.85k
      if (is_list) {
728
8.85k
        GOOGLE_DCHECK(TableEntryIsNonEmptyList(b));
729
8.85k
        Node* head = static_cast<Node*>(table_[b]);
730
8.85k
        head = EraseFromLinkedList(item, head);
731
8.85k
        table_[b] = static_cast<void*>(head);
732
8.85k
      } else {
733
0
        GOOGLE_DCHECK(TableEntryIsTree(b));
734
0
        Tree* tree = static_cast<Tree*>(table_[b]);
735
0
        tree->erase(tree_it);
736
0
        if (tree->empty()) {
737
          // Force b to be the minimum of b and b ^ 1.  This is important
738
          // only because we want index_of_first_non_null_ to be correct.
739
0
          b &= ~static_cast<size_type>(1);
740
0
          DestroyTree(tree);
741
0
          table_[b] = table_[b + 1] = nullptr;
742
0
        }
743
0
      }
744
8.85k
      DestroyNode(item);
745
8.85k
      --num_elements_;
746
8.85k
      if (PROTOBUF_PREDICT_FALSE(b == index_of_first_non_null_)) {
747
7.44k
        while (index_of_first_non_null_ < num_buckets_ &&
748
6.59k
               table_[index_of_first_non_null_] == nullptr) {
749
5.40k
          ++index_of_first_non_null_;
750
5.40k
        }
751
2.03k
      }
752
8.85k
    }
753
754
0
    size_t SpaceUsedInternal() const {
755
0
      return internal::SpaceUsedInTable<Key>(table_, num_buckets_,
756
0
                                             num_elements_, sizeof(Node));
757
0
    }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::SpaceUsedInternal() const
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::SpaceUsedInternal() const
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::SpaceUsedInternal() const
758
759
   private:
760
    template <typename K, typename... Args>
761
284k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
284k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
284k
      if (p.first.node_ != nullptr)
765
126k
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
158k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
78.2k
        p = FindHelper(k);
769
78.2k
      }
770
158k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
158k
      using TypeToInit = typename std::conditional<
773
158k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
158k
          key_type>::type;
775
158k
      Node* node = Alloc<Node>(1);
776
      // Even when arena is nullptr, CreateInArenaStorage is still used to
777
      // ensure the arena of submessage will be consistent. Otherwise,
778
      // submessage may have its own arena when message-owned arena is enabled.
779
      // Note: This only works if `Key` is not arena constructible.
780
158k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
158k
                                  alloc_.arena(),
782
158k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
158k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
158k
                                  std::forward<Args>(args)...);
786
787
158k
      iterator result = InsertUnique(b, node);
788
158k
      ++num_elements_;
789
158k
      return std::make_pair(result, true);
790
284k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::TryEmplaceInternal<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
761
10.5k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
10.5k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
10.5k
      if (p.first.node_ != nullptr)
765
0
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
10.5k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
4.16k
        p = FindHelper(k);
769
4.16k
      }
770
10.5k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
10.5k
      using TypeToInit = typename std::conditional<
773
10.5k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
10.5k
          key_type>::type;
775
10.5k
      Node* node = Alloc<Node>(1);
776
      // Even when arena is nullptr, CreateInArenaStorage is still used to
777
      // ensure the arena of submessage will be consistent. Otherwise,
778
      // submessage may have its own arena when message-owned arena is enabled.
779
      // Note: This only works if `Key` is not arena constructible.
780
10.5k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
10.5k
                                  alloc_.arena(),
782
10.5k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
10.5k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
10.5k
                                  std::forward<Args>(args)...);
786
787
10.5k
      iterator result = InsertUnique(b, node);
788
10.5k
      ++num_elements_;
789
10.5k
      return std::make_pair(result, true);
790
10.5k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::TryEmplaceInternal<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
761
110k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
110k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
110k
      if (p.first.node_ != nullptr)
765
77.1k
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
33.2k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
8.38k
        p = FindHelper(k);
769
8.38k
      }
770
33.2k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
33.2k
      using TypeToInit = typename std::conditional<
773
33.2k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
33.2k
          key_type>::type;
775
33.2k
      Node* node = Alloc<Node>(1);
776
      // Even when arena is nullptr, CreateInArenaStorage is still used to
777
      // ensure the arena of submessage will be consistent. Otherwise,
778
      // submessage may have its own arena when message-owned arena is enabled.
779
      // Note: This only works if `Key` is not arena constructible.
780
33.2k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
33.2k
                                  alloc_.arena(),
782
33.2k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
33.2k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
33.2k
                                  std::forward<Args>(args)...);
786
787
33.2k
      iterator result = InsertUnique(b, node);
788
33.2k
      ++num_elements_;
789
33.2k
      return std::make_pair(result, true);
790
110k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::TryEmplaceInternal<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
761
3.98k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
3.98k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
3.98k
      if (p.first.node_ != nullptr)
765
0
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
3.98k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
1.75k
        p = FindHelper(k);
769
1.75k
      }
770
3.98k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
3.98k
      using TypeToInit = typename std::conditional<
773
3.98k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
3.98k
          key_type>::type;
775
3.98k
      Node* node = Alloc<Node>(1);
776
      // Even when arena is nullptr, CreateInArenaStorage is still used to
777
      // ensure the arena of submessage will be consistent. Otherwise,
778
      // submessage may have its own arena when message-owned arena is enabled.
779
      // Note: This only works if `Key` is not arena constructible.
780
3.98k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
3.98k
                                  alloc_.arena(),
782
3.98k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
3.98k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
3.98k
                                  std::forward<Args>(args)...);
786
787
3.98k
      iterator result = InsertUnique(b, node);
788
3.98k
      ++num_elements_;
789
3.98k
      return std::make_pair(result, true);
790
3.98k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::TryEmplaceInternal<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
761
1.81k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
1.81k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
1.81k
      if (p.first.node_ != nullptr)
765
0
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
1.81k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
1.02k
        p = FindHelper(k);
769
1.02k
      }
770
1.81k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
1.81k
      using TypeToInit = typename std::conditional<
773
1.81k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
1.81k
          key_type>::type;
775
1.81k
      Node* node = Alloc<Node>(1);
776
      // Even when arena is nullptr, CreateInArenaStorage is still used to
777
      // ensure the arena of submessage will be consistent. Otherwise,
778
      // submessage may have its own arena when message-owned arena is enabled.
779
      // Note: This only works if `Key` is not arena constructible.
780
1.81k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
1.81k
                                  alloc_.arena(),
782
1.81k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
1.81k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
1.81k
                                  std::forward<Args>(args)...);
786
787
1.81k
      iterator result = InsertUnique(b, node);
788
1.81k
      ++num_elements_;
789
1.81k
      return std::make_pair(result, true);
790
1.81k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::TryEmplaceInternal<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
761
76.3k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
76.3k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
76.3k
      if (p.first.node_ != nullptr)
765
25.9k
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
50.3k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
25.9k
        p = FindHelper(k);
769
25.9k
      }
770
50.3k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
50.3k
      using TypeToInit = typename std::conditional<
773
50.3k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
50.3k
          key_type>::type;
775
50.3k
      Node* node = Alloc<Node>(1);
776
      // Even when arena is nullptr, CreateInArenaStorage is still used to
777
      // ensure the arena of submessage will be consistent. Otherwise,
778
      // submessage may have its own arena when message-owned arena is enabled.
779
      // Note: This only works if `Key` is not arena constructible.
780
50.3k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
50.3k
                                  alloc_.arena(),
782
50.3k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
50.3k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
50.3k
                                  std::forward<Args>(args)...);
786
787
50.3k
      iterator result = InsertUnique(b, node);
788
50.3k
      ++num_elements_;
789
50.3k
      return std::make_pair(result, true);
790
76.3k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::TryEmplaceInternal<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
761
81.7k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
81.7k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
81.7k
      if (p.first.node_ != nullptr)
765
23.7k
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
58.0k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
37.0k
        p = FindHelper(k);
769
37.0k
      }
770
58.0k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
58.0k
      using TypeToInit = typename std::conditional<
773
58.0k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
58.0k
          key_type>::type;
775
58.0k
      Node* node = Alloc<Node>(1);
776
      // Even when arena is nullptr, CreateInArenaStorage is still used to
777
      // ensure the arena of submessage will be consistent. Otherwise,
778
      // submessage may have its own arena when message-owned arena is enabled.
779
      // Note: This only works if `Key` is not arena constructible.
780
58.0k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
58.0k
                                  alloc_.arena(),
782
58.0k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
58.0k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
58.0k
                                  std::forward<Args>(args)...);
786
787
58.0k
      iterator result = InsertUnique(b, node);
788
58.0k
      ++num_elements_;
789
58.0k
      return std::make_pair(result, true);
790
81.7k
    }
791
792
    // A helper function to perform an assignment of `mapped_type`.
793
    // If the first argument is true, then it is a regular assignment.
794
    // Otherwise, we first create a temporary and then perform an assignment.
795
    template <typename V>
796
0
    static void AssignMapped(std::true_type, mapped_type& mapped, V&& v) {
797
0
      mapped = std::forward<V>(v);
798
0
    }
Unexecuted instantiation: void google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::AssignMapped<safepower_agent_proto::NodeState const&>(std::__1::integral_constant<bool, true>, safepower_agent_proto::NodeState&, safepower_agent_proto::NodeState const&)
Unexecuted instantiation: void google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::AssignMapped<safepower_agent_proto::DaemonState const&>(std::__1::integral_constant<bool, true>, safepower_agent_proto::DaemonState&, safepower_agent_proto::DaemonState const&)
Unexecuted instantiation: void google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::AssignMapped<safepower_agent_proto::SystemdUnitState const&>(std::__1::integral_constant<bool, true>, safepower_agent_proto::SystemdUnitState&, safepower_agent_proto::SystemdUnitState const&)
799
    template <typename... Args>
800
    static void AssignMapped(std::false_type, mapped_type& mapped,
801
                             Args&&... args) {
802
      mapped = mapped_type(std::forward<Args>(args)...);
803
    }
804
805
    // Case 1: `mapped_type` is arena constructible. A temporary object is
806
    // created and then (if `Args` are not empty) assigned to a mapped value
807
    // that was created with the arena.
808
    template <typename K>
809
284k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
284k
      return TryEmplaceInternal(std::forward<K>(k));
812
284k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::ArenaAwareTryEmplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::integral_constant<bool, true>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
809
10.5k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
10.5k
      return TryEmplaceInternal(std::forward<K>(k));
812
10.5k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::ArenaAwareTryEmplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::integral_constant<bool, true>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
809
110k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
110k
      return TryEmplaceInternal(std::forward<K>(k));
812
110k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::ArenaAwareTryEmplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::integral_constant<bool, true>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
809
3.98k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
3.98k
      return TryEmplaceInternal(std::forward<K>(k));
812
3.98k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::ArenaAwareTryEmplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::integral_constant<bool, true>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
809
1.81k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
1.81k
      return TryEmplaceInternal(std::forward<K>(k));
812
1.81k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::ArenaAwareTryEmplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::integral_constant<bool, true>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
809
76.3k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
76.3k
      return TryEmplaceInternal(std::forward<K>(k));
812
76.3k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::ArenaAwareTryEmplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(std::__1::integral_constant<bool, true>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
809
81.7k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
81.7k
      return TryEmplaceInternal(std::forward<K>(k));
812
81.7k
    }
813
    template <typename K, typename... Args>
814
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k,
815
0
                                                   Args&&... args) {
816
      // case 1.2: "default" constructed + copy/move assignment
817
0
      auto p = TryEmplaceInternal(std::forward<K>(k));
818
0
      if (p.second) {
819
0
        AssignMapped(std::is_same<void(typename std::decay<Args>::type...),
820
0
                                  void(mapped_type)>(),
821
0
                     p.first->second, std::forward<Args>(args)...);
822
0
      }
823
0
      return p;
824
0
    }
Unexecuted instantiation: std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::ArenaAwareTryEmplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::NodeState const&>(std::__1::integral_constant<bool, true>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::NodeState const&)
Unexecuted instantiation: std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::ArenaAwareTryEmplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::DaemonState const&>(std::__1::integral_constant<bool, true>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::DaemonState const&)
Unexecuted instantiation: std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> >, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::ArenaAwareTryEmplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::SystemdUnitState const&>(std::__1::integral_constant<bool, true>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::SystemdUnitState const&)
825
    // Case 2: `mapped_type` is not arena constructible. Using in-place
826
    // construction.
827
    template <typename... Args>
828
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::false_type,
829
                                                   Args&&... args) {
830
      return TryEmplaceInternal(std::forward<Args>(args)...);
831
    }
832
833
0
    const_iterator find(const Key& k, TreeIterator* it) const {
834
0
      return FindHelper(k, it).first;
835
0
    }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::find(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >*) const
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::find(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >*) const
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::find(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >*) const
836
    template <typename K>
837
796k
    std::pair<const_iterator, size_type> FindHelper(const K& k) const {
838
796k
      return FindHelper(k, nullptr);
839
796k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const>, unsigned long> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::FindHelper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
837
348k
    std::pair<const_iterator, size_type> FindHelper(const K& k) const {
838
348k
      return FindHelper(k, nullptr);
839
348k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const>, unsigned long> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::FindHelper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
837
215k
    std::pair<const_iterator, size_type> FindHelper(const K& k) const {
838
215k
      return FindHelper(k, nullptr);
839
215k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const>, unsigned long> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::FindHelper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
837
231k
    std::pair<const_iterator, size_type> FindHelper(const K& k) const {
838
231k
      return FindHelper(k, nullptr);
839
231k
    }
840
    template <typename K>
841
    std::pair<const_iterator, size_type> FindHelper(const K& k,
842
796k
                                                    TreeIterator* it) const {
843
796k
      size_type b = BucketNumber(k);
844
796k
      if (TableEntryIsNonEmptyList(b)) {
845
365k
        Node* node = static_cast<Node*>(table_[b]);
846
418k
        do {
847
418k
          if (internal::TransparentSupport<Key>::Equals(node->kv.first, k)) {
848
297k
            return std::make_pair(const_iterator(node, this, b), b);
849
297k
          } else {
850
120k
            node = node->next;
851
120k
          }
852
418k
        } while (node != nullptr);
853
430k
      } else if (TableEntryIsTree(b)) {
854
0
        GOOGLE_DCHECK_EQ(table_[b], table_[b ^ 1]);
855
0
        b &= ~static_cast<size_t>(1);
856
0
        Tree* tree = static_cast<Tree*>(table_[b]);
857
0
        auto tree_it = tree->find(k);
858
0
        if (tree_it != tree->end()) {
859
0
          if (it != nullptr) *it = tree_it;
860
0
          return std::make_pair(const_iterator(tree_it, this, b), b);
861
0
        }
862
0
      }
863
498k
      return std::make_pair(end(), b);
864
796k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const>, unsigned long> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::FindHelper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >*) const
Line
Count
Source
842
348k
                                                    TreeIterator* it) const {
843
348k
      size_type b = BucketNumber(k);
844
348k
      if (TableEntryIsNonEmptyList(b)) {
845
229k
        Node* node = static_cast<Node*>(table_[b]);
846
263k
        do {
847
263k
          if (internal::TransparentSupport<Key>::Equals(node->kv.first, k)) {
848
202k
            return std::make_pair(const_iterator(node, this, b), b);
849
202k
          } else {
850
60.9k
            node = node->next;
851
60.9k
          }
852
263k
        } while (node != nullptr);
853
229k
      } else if (TableEntryIsTree(b)) {
854
0
        GOOGLE_DCHECK_EQ(table_[b], table_[b ^ 1]);
855
0
        b &= ~static_cast<size_t>(1);
856
0
        Tree* tree = static_cast<Tree*>(table_[b]);
857
0
        auto tree_it = tree->find(k);
858
0
        if (tree_it != tree->end()) {
859
0
          if (it != nullptr) *it = tree_it;
860
0
          return std::make_pair(const_iterator(tree_it, this, b), b);
861
0
        }
862
0
      }
863
145k
      return std::make_pair(end(), b);
864
348k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const>, unsigned long> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::FindHelper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >*) const
Line
Count
Source
842
215k
                                                    TreeIterator* it) const {
843
215k
      size_type b = BucketNumber(k);
844
215k
      if (TableEntryIsNonEmptyList(b)) {
845
66.8k
        Node* node = static_cast<Node*>(table_[b]);
846
78.0k
        do {
847
78.0k
          if (internal::TransparentSupport<Key>::Equals(node->kv.first, k)) {
848
43.4k
            return std::make_pair(const_iterator(node, this, b), b);
849
43.4k
          } else {
850
34.6k
            node = node->next;
851
34.6k
          }
852
78.0k
        } while (node != nullptr);
853
148k
      } else if (TableEntryIsTree(b)) {
854
0
        GOOGLE_DCHECK_EQ(table_[b], table_[b ^ 1]);
855
0
        b &= ~static_cast<size_t>(1);
856
0
        Tree* tree = static_cast<Tree*>(table_[b]);
857
0
        auto tree_it = tree->find(k);
858
0
        if (tree_it != tree->end()) {
859
0
          if (it != nullptr) *it = tree_it;
860
0
          return std::make_pair(const_iterator(tree_it, this, b), b);
861
0
        }
862
0
      }
863
171k
      return std::make_pair(end(), b);
864
215k
    }
std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const>, unsigned long> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::FindHelper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, std::__1::__tree_node<std::__1::__value_type<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*>, void*>*, long> >*) const
Line
Count
Source
842
231k
                                                    TreeIterator* it) const {
843
231k
      size_type b = BucketNumber(k);
844
231k
      if (TableEntryIsNonEmptyList(b)) {
845
68.8k
        Node* node = static_cast<Node*>(table_[b]);
846
76.2k
        do {
847
76.2k
          if (internal::TransparentSupport<Key>::Equals(node->kv.first, k)) {
848
51.2k
            return std::make_pair(const_iterator(node, this, b), b);
849
51.2k
          } else {
850
24.9k
            node = node->next;
851
24.9k
          }
852
76.2k
        } while (node != nullptr);
853
162k
      } else if (TableEntryIsTree(b)) {
854
0
        GOOGLE_DCHECK_EQ(table_[b], table_[b ^ 1]);
855
0
        b &= ~static_cast<size_t>(1);
856
0
        Tree* tree = static_cast<Tree*>(table_[b]);
857
0
        auto tree_it = tree->find(k);
858
0
        if (tree_it != tree->end()) {
859
0
          if (it != nullptr) *it = tree_it;
860
0
          return std::make_pair(const_iterator(tree_it, this, b), b);
861
0
        }
862
0
      }
863
180k
      return std::make_pair(end(), b);
864
231k
    }
865
866
    // Insert the given Node in bucket b.  If that would make bucket b too big,
867
    // and bucket b is not a tree, create a tree for buckets b and b^1 to share.
868
    // Requires count(*KeyPtrFromNodePtr(node)) == 0 and that b is the correct
869
    // bucket.  num_elements_ is not modified.
870
219k
    iterator InsertUnique(size_type b, Node* node) {
871
219k
      GOOGLE_DCHECK(index_of_first_non_null_ == num_buckets_ ||
872
219k
             table_[index_of_first_non_null_] != nullptr);
873
      // In practice, the code that led to this point may have already
874
      // determined whether we are inserting into an empty list, a short list,
875
      // or whatever.  But it's probably cheap enough to recompute that here;
876
      // it's likely that we're inserting into an empty or short list.
877
219k
      iterator result;
878
219k
      GOOGLE_DCHECK(find(node->kv.first) == end());
879
219k
      if (TableEntryIsEmpty(b)) {
880
182k
        result = InsertUniqueInList(b, node);
881
182k
      } else if (TableEntryIsNonEmptyList(b)) {
882
36.5k
        if (PROTOBUF_PREDICT_FALSE(TableEntryIsTooLong(b))) {
883
0
          TreeConvert(b);
884
0
          result = InsertUniqueInTree(b, node);
885
0
          GOOGLE_DCHECK_EQ(result.bucket_index_, b & ~static_cast<size_type>(1));
886
36.5k
        } else {
887
          // Insert into a pre-existing list.  This case cannot modify
888
          // index_of_first_non_null_, so we skip the code to update it.
889
36.5k
          return InsertUniqueInList(b, node);
890
36.5k
        }
891
36.5k
      } else {
892
        // Insert into a pre-existing tree.  This case cannot modify
893
        // index_of_first_non_null_, so we skip the code to update it.
894
0
        return InsertUniqueInTree(b, node);
895
0
      }
896
      // parentheses around (std::min) prevents macro expansion of min(...)
897
182k
      index_of_first_non_null_ =
898
182k
          (std::min)(index_of_first_non_null_, result.bucket_index_);
899
182k
      return result;
900
219k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::InsertUnique(unsigned long, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Node*)
Line
Count
Source
870
70.4k
    iterator InsertUnique(size_type b, Node* node) {
871
70.4k
      GOOGLE_DCHECK(index_of_first_non_null_ == num_buckets_ ||
872
70.4k
             table_[index_of_first_non_null_] != nullptr);
873
      // In practice, the code that led to this point may have already
874
      // determined whether we are inserting into an empty list, a short list,
875
      // or whatever.  But it's probably cheap enough to recompute that here;
876
      // it's likely that we're inserting into an empty or short list.
877
70.4k
      iterator result;
878
70.4k
      GOOGLE_DCHECK(find(node->kv.first) == end());
879
70.4k
      if (TableEntryIsEmpty(b)) {
880
55.5k
        result = InsertUniqueInList(b, node);
881
55.5k
      } else if (TableEntryIsNonEmptyList(b)) {
882
14.9k
        if (PROTOBUF_PREDICT_FALSE(TableEntryIsTooLong(b))) {
883
0
          TreeConvert(b);
884
0
          result = InsertUniqueInTree(b, node);
885
0
          GOOGLE_DCHECK_EQ(result.bucket_index_, b & ~static_cast<size_type>(1));
886
14.9k
        } else {
887
          // Insert into a pre-existing list.  This case cannot modify
888
          // index_of_first_non_null_, so we skip the code to update it.
889
14.9k
          return InsertUniqueInList(b, node);
890
14.9k
        }
891
14.9k
      } else {
892
        // Insert into a pre-existing tree.  This case cannot modify
893
        // index_of_first_non_null_, so we skip the code to update it.
894
0
        return InsertUniqueInTree(b, node);
895
0
      }
896
      // parentheses around (std::min) prevents macro expansion of min(...)
897
55.5k
      index_of_first_non_null_ =
898
55.5k
          (std::min)(index_of_first_non_null_, result.bucket_index_);
899
55.5k
      return result;
900
70.4k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::InsertUnique(unsigned long, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Node*)
Line
Count
Source
870
75.3k
    iterator InsertUnique(size_type b, Node* node) {
871
75.3k
      GOOGLE_DCHECK(index_of_first_non_null_ == num_buckets_ ||
872
75.3k
             table_[index_of_first_non_null_] != nullptr);
873
      // In practice, the code that led to this point may have already
874
      // determined whether we are inserting into an empty list, a short list,
875
      // or whatever.  But it's probably cheap enough to recompute that here;
876
      // it's likely that we're inserting into an empty or short list.
877
75.3k
      iterator result;
878
75.3k
      GOOGLE_DCHECK(find(node->kv.first) == end());
879
75.3k
      if (TableEntryIsEmpty(b)) {
880
62.9k
        result = InsertUniqueInList(b, node);
881
62.9k
      } else if (TableEntryIsNonEmptyList(b)) {
882
12.3k
        if (PROTOBUF_PREDICT_FALSE(TableEntryIsTooLong(b))) {
883
0
          TreeConvert(b);
884
0
          result = InsertUniqueInTree(b, node);
885
0
          GOOGLE_DCHECK_EQ(result.bucket_index_, b & ~static_cast<size_type>(1));
886
12.3k
        } else {
887
          // Insert into a pre-existing list.  This case cannot modify
888
          // index_of_first_non_null_, so we skip the code to update it.
889
12.3k
          return InsertUniqueInList(b, node);
890
12.3k
        }
891
12.3k
      } else {
892
        // Insert into a pre-existing tree.  This case cannot modify
893
        // index_of_first_non_null_, so we skip the code to update it.
894
0
        return InsertUniqueInTree(b, node);
895
0
      }
896
      // parentheses around (std::min) prevents macro expansion of min(...)
897
62.9k
      index_of_first_non_null_ =
898
62.9k
          (std::min)(index_of_first_non_null_, result.bucket_index_);
899
62.9k
      return result;
900
75.3k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::InsertUnique(unsigned long, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Node*)
Line
Count
Source
870
73.3k
    iterator InsertUnique(size_type b, Node* node) {
871
73.3k
      GOOGLE_DCHECK(index_of_first_non_null_ == num_buckets_ ||
872
73.3k
             table_[index_of_first_non_null_] != nullptr);
873
      // In practice, the code that led to this point may have already
874
      // determined whether we are inserting into an empty list, a short list,
875
      // or whatever.  But it's probably cheap enough to recompute that here;
876
      // it's likely that we're inserting into an empty or short list.
877
73.3k
      iterator result;
878
73.3k
      GOOGLE_DCHECK(find(node->kv.first) == end());
879
73.3k
      if (TableEntryIsEmpty(b)) {
880
64.1k
        result = InsertUniqueInList(b, node);
881
64.1k
      } else if (TableEntryIsNonEmptyList(b)) {
882
9.18k
        if (PROTOBUF_PREDICT_FALSE(TableEntryIsTooLong(b))) {
883
0
          TreeConvert(b);
884
0
          result = InsertUniqueInTree(b, node);
885
0
          GOOGLE_DCHECK_EQ(result.bucket_index_, b & ~static_cast<size_type>(1));
886
9.18k
        } else {
887
          // Insert into a pre-existing list.  This case cannot modify
888
          // index_of_first_non_null_, so we skip the code to update it.
889
9.18k
          return InsertUniqueInList(b, node);
890
9.18k
        }
891
9.18k
      } else {
892
        // Insert into a pre-existing tree.  This case cannot modify
893
        // index_of_first_non_null_, so we skip the code to update it.
894
0
        return InsertUniqueInTree(b, node);
895
0
      }
896
      // parentheses around (std::min) prevents macro expansion of min(...)
897
64.1k
      index_of_first_non_null_ =
898
64.1k
          (std::min)(index_of_first_non_null_, result.bucket_index_);
899
64.1k
      return result;
900
73.3k
    }
901
902
    // Returns whether we should insert after the head of the list. For
903
    // non-optimized builds, we randomly decide whether to insert right at the
904
    // head of the list or just after the head. This helps add a little bit of
905
    // non-determinism to the map ordering.
906
36.5k
    bool ShouldInsertAfterHead(void* node) {
907
#ifdef NDEBUG
908
      (void)node;
909
      return false;
910
#else
911
      // Doing modulo with a prime mixes the bits more.
912
36.5k
      return (reinterpret_cast<uintptr_t>(node) ^ seed_) % 13 > 6;
913
36.5k
#endif
914
36.5k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::ShouldInsertAfterHead(void*)
Line
Count
Source
906
14.9k
    bool ShouldInsertAfterHead(void* node) {
907
#ifdef NDEBUG
908
      (void)node;
909
      return false;
910
#else
911
      // Doing modulo with a prime mixes the bits more.
912
14.9k
      return (reinterpret_cast<uintptr_t>(node) ^ seed_) % 13 > 6;
913
14.9k
#endif
914
14.9k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::ShouldInsertAfterHead(void*)
Line
Count
Source
906
12.3k
    bool ShouldInsertAfterHead(void* node) {
907
#ifdef NDEBUG
908
      (void)node;
909
      return false;
910
#else
911
      // Doing modulo with a prime mixes the bits more.
912
12.3k
      return (reinterpret_cast<uintptr_t>(node) ^ seed_) % 13 > 6;
913
12.3k
#endif
914
12.3k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::ShouldInsertAfterHead(void*)
Line
Count
Source
906
9.18k
    bool ShouldInsertAfterHead(void* node) {
907
#ifdef NDEBUG
908
      (void)node;
909
      return false;
910
#else
911
      // Doing modulo with a prime mixes the bits more.
912
9.18k
      return (reinterpret_cast<uintptr_t>(node) ^ seed_) % 13 > 6;
913
9.18k
#endif
914
9.18k
    }
915
916
    // Helper for InsertUnique.  Handles the case where bucket b is a
917
    // not-too-long linked list.
918
219k
    iterator InsertUniqueInList(size_type b, Node* node) {
919
219k
      if (table_[b] != nullptr && ShouldInsertAfterHead(node)) {
920
18.9k
        Node* first = static_cast<Node*>(table_[b]);
921
18.9k
        node->next = first->next;
922
18.9k
        first->next = node;
923
18.9k
        return iterator(node, this, b);
924
18.9k
      }
925
926
200k
      node->next = static_cast<Node*>(table_[b]);
927
200k
      table_[b] = static_cast<void*>(node);
928
200k
      return iterator(node, this, b);
929
219k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::InsertUniqueInList(unsigned long, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Node*)
Line
Count
Source
918
70.4k
    iterator InsertUniqueInList(size_type b, Node* node) {
919
70.4k
      if (table_[b] != nullptr && ShouldInsertAfterHead(node)) {
920
7.83k
        Node* first = static_cast<Node*>(table_[b]);
921
7.83k
        node->next = first->next;
922
7.83k
        first->next = node;
923
7.83k
        return iterator(node, this, b);
924
7.83k
      }
925
926
62.6k
      node->next = static_cast<Node*>(table_[b]);
927
62.6k
      table_[b] = static_cast<void*>(node);
928
62.6k
      return iterator(node, this, b);
929
70.4k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::InsertUniqueInList(unsigned long, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Node*)
Line
Count
Source
918
75.3k
    iterator InsertUniqueInList(size_type b, Node* node) {
919
75.3k
      if (table_[b] != nullptr && ShouldInsertAfterHead(node)) {
920
6.57k
        Node* first = static_cast<Node*>(table_[b]);
921
6.57k
        node->next = first->next;
922
6.57k
        first->next = node;
923
6.57k
        return iterator(node, this, b);
924
6.57k
      }
925
926
68.7k
      node->next = static_cast<Node*>(table_[b]);
927
68.7k
      table_[b] = static_cast<void*>(node);
928
68.7k
      return iterator(node, this, b);
929
75.3k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::InsertUniqueInList(unsigned long, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Node*)
Line
Count
Source
918
73.3k
    iterator InsertUniqueInList(size_type b, Node* node) {
919
73.3k
      if (table_[b] != nullptr && ShouldInsertAfterHead(node)) {
920
4.56k
        Node* first = static_cast<Node*>(table_[b]);
921
4.56k
        node->next = first->next;
922
4.56k
        first->next = node;
923
4.56k
        return iterator(node, this, b);
924
4.56k
      }
925
926
68.8k
      node->next = static_cast<Node*>(table_[b]);
927
68.8k
      table_[b] = static_cast<void*>(node);
928
68.8k
      return iterator(node, this, b);
929
73.3k
    }
930
931
    // Helper for InsertUnique.  Handles the case where bucket b points to a
932
    // Tree.
933
0
    iterator InsertUniqueInTree(size_type b, Node* node) {
934
0
      GOOGLE_DCHECK_EQ(table_[b], table_[b ^ 1]);
935
      // Maintain the invariant that node->next is null for all Nodes in Trees.
936
0
      node->next = nullptr;
937
0
      return iterator(
938
0
          static_cast<Tree*>(table_[b])->insert({node->kv.first, node}).first,
939
0
          this, b & ~static_cast<size_t>(1));
940
0
    }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::InsertUniqueInTree(unsigned long, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Node*)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::InsertUniqueInTree(unsigned long, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Node*)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::InsertUniqueInTree(unsigned long, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Node*)
941
942
    // Returns whether it did resize.  Currently this is only used when
943
    // num_elements_ increases, though it could be used in other situations.
944
    // It checks for load too low as well as load too high: because any number
945
    // of erases can occur between inserts, the load could be as low as 0 here.
946
    // Resizing to a lower size is not always helpful, but failing to do so can
947
    // destroy the expected big-O bounds for some operations. By having the
948
    // policy that sometimes we resize down as well as up, clients can easily
949
    // keep O(size()) = O(number of buckets) if they want that.
950
158k
    bool ResizeIfLoadIsOutOfRange(size_type new_size) {
951
158k
      const size_type kMaxMapLoadTimes16 = 12;  // controls RAM vs CPU tradeoff
952
158k
      const size_type hi_cutoff = num_buckets_ * kMaxMapLoadTimes16 / 16;
953
158k
      const size_type lo_cutoff = hi_cutoff / 4;
954
      // We don't care how many elements are in trees.  If a lot are,
955
      // we may resize even though there are many empty buckets.  In
956
      // practice, this seems fine.
957
158k
      if (PROTOBUF_PREDICT_FALSE(new_size >= hi_cutoff)) {
958
78.2k
        if (num_buckets_ <= max_size() / 2) {
959
78.2k
          Resize(num_buckets_ * 2);
960
78.2k
          return true;
961
78.2k
        }
962
79.7k
      } else if (PROTOBUF_PREDICT_FALSE(new_size <= lo_cutoff &&
963
79.7k
                                        num_buckets_ > kMinTableSize)) {
964
0
        size_type lg2_of_size_reduction_factor = 1;
965
        // It's possible we want to shrink a lot here... size() could even be 0.
966
        // So, estimate how much to shrink by making sure we don't shrink so
967
        // much that we would need to grow the table after a few inserts.
968
0
        const size_type hypothetical_size = new_size * 5 / 4 + 1;
969
0
        while ((hypothetical_size << lg2_of_size_reduction_factor) <
970
0
               hi_cutoff) {
971
0
          ++lg2_of_size_reduction_factor;
972
0
        }
973
0
        size_type new_num_buckets = std::max<size_type>(
974
0
            kMinTableSize, num_buckets_ >> lg2_of_size_reduction_factor);
975
0
        if (new_num_buckets != num_buckets_) {
976
0
          Resize(new_num_buckets);
977
0
          return true;
978
0
        }
979
0
      }
980
79.7k
      return false;
981
158k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::ResizeIfLoadIsOutOfRange(unsigned long)
Line
Count
Source
950
43.7k
    bool ResizeIfLoadIsOutOfRange(size_type new_size) {
951
43.7k
      const size_type kMaxMapLoadTimes16 = 12;  // controls RAM vs CPU tradeoff
952
43.7k
      const size_type hi_cutoff = num_buckets_ * kMaxMapLoadTimes16 / 16;
953
43.7k
      const size_type lo_cutoff = hi_cutoff / 4;
954
      // We don't care how many elements are in trees.  If a lot are,
955
      // we may resize even though there are many empty buckets.  In
956
      // practice, this seems fine.
957
43.7k
      if (PROTOBUF_PREDICT_FALSE(new_size >= hi_cutoff)) {
958
12.5k
        if (num_buckets_ <= max_size() / 2) {
959
12.5k
          Resize(num_buckets_ * 2);
960
12.5k
          return true;
961
12.5k
        }
962
31.2k
      } else if (PROTOBUF_PREDICT_FALSE(new_size <= lo_cutoff &&
963
31.2k
                                        num_buckets_ > kMinTableSize)) {
964
0
        size_type lg2_of_size_reduction_factor = 1;
965
        // It's possible we want to shrink a lot here... size() could even be 0.
966
        // So, estimate how much to shrink by making sure we don't shrink so
967
        // much that we would need to grow the table after a few inserts.
968
0
        const size_type hypothetical_size = new_size * 5 / 4 + 1;
969
0
        while ((hypothetical_size << lg2_of_size_reduction_factor) <
970
0
               hi_cutoff) {
971
0
          ++lg2_of_size_reduction_factor;
972
0
        }
973
0
        size_type new_num_buckets = std::max<size_type>(
974
0
            kMinTableSize, num_buckets_ >> lg2_of_size_reduction_factor);
975
0
        if (new_num_buckets != num_buckets_) {
976
0
          Resize(new_num_buckets);
977
0
          return true;
978
0
        }
979
0
      }
980
31.2k
      return false;
981
43.7k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::ResizeIfLoadIsOutOfRange(unsigned long)
Line
Count
Source
950
54.3k
    bool ResizeIfLoadIsOutOfRange(size_type new_size) {
951
54.3k
      const size_type kMaxMapLoadTimes16 = 12;  // controls RAM vs CPU tradeoff
952
54.3k
      const size_type hi_cutoff = num_buckets_ * kMaxMapLoadTimes16 / 16;
953
54.3k
      const size_type lo_cutoff = hi_cutoff / 4;
954
      // We don't care how many elements are in trees.  If a lot are,
955
      // we may resize even though there are many empty buckets.  In
956
      // practice, this seems fine.
957
54.3k
      if (PROTOBUF_PREDICT_FALSE(new_size >= hi_cutoff)) {
958
27.6k
        if (num_buckets_ <= max_size() / 2) {
959
27.6k
          Resize(num_buckets_ * 2);
960
27.6k
          return true;
961
27.6k
        }
962
27.6k
      } else if (PROTOBUF_PREDICT_FALSE(new_size <= lo_cutoff &&
963
26.7k
                                        num_buckets_ > kMinTableSize)) {
964
0
        size_type lg2_of_size_reduction_factor = 1;
965
        // It's possible we want to shrink a lot here... size() could even be 0.
966
        // So, estimate how much to shrink by making sure we don't shrink so
967
        // much that we would need to grow the table after a few inserts.
968
0
        const size_type hypothetical_size = new_size * 5 / 4 + 1;
969
0
        while ((hypothetical_size << lg2_of_size_reduction_factor) <
970
0
               hi_cutoff) {
971
0
          ++lg2_of_size_reduction_factor;
972
0
        }
973
0
        size_type new_num_buckets = std::max<size_type>(
974
0
            kMinTableSize, num_buckets_ >> lg2_of_size_reduction_factor);
975
0
        if (new_num_buckets != num_buckets_) {
976
0
          Resize(new_num_buckets);
977
0
          return true;
978
0
        }
979
0
      }
980
26.7k
      return false;
981
54.3k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::ResizeIfLoadIsOutOfRange(unsigned long)
Line
Count
Source
950
59.8k
    bool ResizeIfLoadIsOutOfRange(size_type new_size) {
951
59.8k
      const size_type kMaxMapLoadTimes16 = 12;  // controls RAM vs CPU tradeoff
952
59.8k
      const size_type hi_cutoff = num_buckets_ * kMaxMapLoadTimes16 / 16;
953
59.8k
      const size_type lo_cutoff = hi_cutoff / 4;
954
      // We don't care how many elements are in trees.  If a lot are,
955
      // we may resize even though there are many empty buckets.  In
956
      // practice, this seems fine.
957
59.8k
      if (PROTOBUF_PREDICT_FALSE(new_size >= hi_cutoff)) {
958
38.0k
        if (num_buckets_ <= max_size() / 2) {
959
38.0k
          Resize(num_buckets_ * 2);
960
38.0k
          return true;
961
38.0k
        }
962
38.0k
      } else if (PROTOBUF_PREDICT_FALSE(new_size <= lo_cutoff &&
963
21.8k
                                        num_buckets_ > kMinTableSize)) {
964
0
        size_type lg2_of_size_reduction_factor = 1;
965
        // It's possible we want to shrink a lot here... size() could even be 0.
966
        // So, estimate how much to shrink by making sure we don't shrink so
967
        // much that we would need to grow the table after a few inserts.
968
0
        const size_type hypothetical_size = new_size * 5 / 4 + 1;
969
0
        while ((hypothetical_size << lg2_of_size_reduction_factor) <
970
0
               hi_cutoff) {
971
0
          ++lg2_of_size_reduction_factor;
972
0
        }
973
0
        size_type new_num_buckets = std::max<size_type>(
974
0
            kMinTableSize, num_buckets_ >> lg2_of_size_reduction_factor);
975
0
        if (new_num_buckets != num_buckets_) {
976
0
          Resize(new_num_buckets);
977
0
          return true;
978
0
        }
979
0
      }
980
21.8k
      return false;
981
59.8k
    }
982
983
    // Resize to the given number of buckets.
984
78.2k
    void Resize(size_t new_num_buckets) {
985
78.2k
      if (num_buckets_ == internal::kGlobalEmptyTableSize) {
986
        // This is the global empty array.
987
        // Just overwrite with a new one. No need to transfer or free anything.
988
72.7k
        num_buckets_ = index_of_first_non_null_ = kMinTableSize;
989
72.7k
        table_ = CreateEmptyTable(num_buckets_);
990
72.7k
        seed_ = Seed();
991
72.7k
        return;
992
72.7k
      }
993
994
5.55k
      GOOGLE_DCHECK_GE(new_num_buckets, kMinTableSize);
995
5.55k
      void** const old_table = table_;
996
5.55k
      const size_type old_table_size = num_buckets_;
997
5.55k
      num_buckets_ = new_num_buckets;
998
5.55k
      table_ = CreateEmptyTable(num_buckets_);
999
5.55k
      const size_type start = index_of_first_non_null_;
1000
5.55k
      index_of_first_non_null_ = num_buckets_;
1001
89.5k
      for (size_type i = start; i < old_table_size; i++) {
1002
84.0k
        if (internal::TableEntryIsNonEmptyList(old_table, i)) {
1003
45.2k
          TransferList(old_table, i);
1004
45.2k
        } else if (internal::TableEntryIsTree(old_table, i)) {
1005
0
          TransferTree(old_table, i++);
1006
0
        }
1007
84.0k
      }
1008
5.55k
      Dealloc<void*>(old_table, old_table_size);
1009
5.55k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Resize(unsigned long)
Line
Count
Source
984
12.5k
    void Resize(size_t new_num_buckets) {
985
12.5k
      if (num_buckets_ == internal::kGlobalEmptyTableSize) {
986
        // This is the global empty array.
987
        // Just overwrite with a new one. No need to transfer or free anything.
988
10.9k
        num_buckets_ = index_of_first_non_null_ = kMinTableSize;
989
10.9k
        table_ = CreateEmptyTable(num_buckets_);
990
10.9k
        seed_ = Seed();
991
10.9k
        return;
992
10.9k
      }
993
994
1.55k
      GOOGLE_DCHECK_GE(new_num_buckets, kMinTableSize);
995
1.55k
      void** const old_table = table_;
996
1.55k
      const size_type old_table_size = num_buckets_;
997
1.55k
      num_buckets_ = new_num_buckets;
998
1.55k
      table_ = CreateEmptyTable(num_buckets_);
999
1.55k
      const size_type start = index_of_first_non_null_;
1000
1.55k
      index_of_first_non_null_ = num_buckets_;
1001
37.8k
      for (size_type i = start; i < old_table_size; i++) {
1002
36.2k
        if (internal::TableEntryIsNonEmptyList(old_table, i)) {
1003
19.3k
          TransferList(old_table, i);
1004
19.3k
        } else if (internal::TableEntryIsTree(old_table, i)) {
1005
0
          TransferTree(old_table, i++);
1006
0
        }
1007
36.2k
      }
1008
1.55k
      Dealloc<void*>(old_table, old_table_size);
1009
1.55k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Resize(unsigned long)
Line
Count
Source
984
27.6k
    void Resize(size_t new_num_buckets) {
985
27.6k
      if (num_buckets_ == internal::kGlobalEmptyTableSize) {
986
        // This is the global empty array.
987
        // Just overwrite with a new one. No need to transfer or free anything.
988
25.5k
        num_buckets_ = index_of_first_non_null_ = kMinTableSize;
989
25.5k
        table_ = CreateEmptyTable(num_buckets_);
990
25.5k
        seed_ = Seed();
991
25.5k
        return;
992
25.5k
      }
993
994
2.14k
      GOOGLE_DCHECK_GE(new_num_buckets, kMinTableSize);
995
2.14k
      void** const old_table = table_;
996
2.14k
      const size_type old_table_size = num_buckets_;
997
2.14k
      num_buckets_ = new_num_buckets;
998
2.14k
      table_ = CreateEmptyTable(num_buckets_);
999
2.14k
      const size_type start = index_of_first_non_null_;
1000
2.14k
      index_of_first_non_null_ = num_buckets_;
1001
31.0k
      for (size_type i = start; i < old_table_size; i++) {
1002
28.9k
        if (internal::TableEntryIsNonEmptyList(old_table, i)) {
1003
15.6k
          TransferList(old_table, i);
1004
15.6k
        } else if (internal::TableEntryIsTree(old_table, i)) {
1005
0
          TransferTree(old_table, i++);
1006
0
        }
1007
28.9k
      }
1008
2.14k
      Dealloc<void*>(old_table, old_table_size);
1009
2.14k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Resize(unsigned long)
Line
Count
Source
984
38.0k
    void Resize(size_t new_num_buckets) {
985
38.0k
      if (num_buckets_ == internal::kGlobalEmptyTableSize) {
986
        // This is the global empty array.
987
        // Just overwrite with a new one. No need to transfer or free anything.
988
36.2k
        num_buckets_ = index_of_first_non_null_ = kMinTableSize;
989
36.2k
        table_ = CreateEmptyTable(num_buckets_);
990
36.2k
        seed_ = Seed();
991
36.2k
        return;
992
36.2k
      }
993
994
1.85k
      GOOGLE_DCHECK_GE(new_num_buckets, kMinTableSize);
995
1.85k
      void** const old_table = table_;
996
1.85k
      const size_type old_table_size = num_buckets_;
997
1.85k
      num_buckets_ = new_num_buckets;
998
1.85k
      table_ = CreateEmptyTable(num_buckets_);
999
1.85k
      const size_type start = index_of_first_non_null_;
1000
1.85k
      index_of_first_non_null_ = num_buckets_;
1001
20.6k
      for (size_type i = start; i < old_table_size; i++) {
1002
18.8k
        if (internal::TableEntryIsNonEmptyList(old_table, i)) {
1003
10.3k
          TransferList(old_table, i);
1004
10.3k
        } else if (internal::TableEntryIsTree(old_table, i)) {
1005
0
          TransferTree(old_table, i++);
1006
0
        }
1007
18.8k
      }
1008
1.85k
      Dealloc<void*>(old_table, old_table_size);
1009
1.85k
    }
1010
1011
45.2k
    void TransferList(void* const* table, size_type index) {
1012
45.2k
      Node* node = static_cast<Node*>(table[index]);
1013
61.1k
      do {
1014
61.1k
        Node* next = node->next;
1015
61.1k
        InsertUnique(BucketNumber(node->kv.first), node);
1016
61.1k
        node = next;
1017
61.1k
      } while (node != nullptr);
1018
45.2k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::TransferList(void* const*, unsigned long)
Line
Count
Source
1011
19.3k
    void TransferList(void* const* table, size_type index) {
1012
19.3k
      Node* node = static_cast<Node*>(table[index]);
1013
26.7k
      do {
1014
26.7k
        Node* next = node->next;
1015
26.7k
        InsertUnique(BucketNumber(node->kv.first), node);
1016
26.7k
        node = next;
1017
26.7k
      } while (node != nullptr);
1018
19.3k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::TransferList(void* const*, unsigned long)
Line
Count
Source
1011
15.6k
    void TransferList(void* const* table, size_type index) {
1012
15.6k
      Node* node = static_cast<Node*>(table[index]);
1013
20.9k
      do {
1014
20.9k
        Node* next = node->next;
1015
20.9k
        InsertUnique(BucketNumber(node->kv.first), node);
1016
20.9k
        node = next;
1017
20.9k
      } while (node != nullptr);
1018
15.6k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::TransferList(void* const*, unsigned long)
Line
Count
Source
1011
10.3k
    void TransferList(void* const* table, size_type index) {
1012
10.3k
      Node* node = static_cast<Node*>(table[index]);
1013
13.5k
      do {
1014
13.5k
        Node* next = node->next;
1015
13.5k
        InsertUnique(BucketNumber(node->kv.first), node);
1016
13.5k
        node = next;
1017
13.5k
      } while (node != nullptr);
1018
10.3k
    }
1019
1020
0
    void TransferTree(void* const* table, size_type index) {
1021
0
      Tree* tree = static_cast<Tree*>(table[index]);
1022
0
      typename Tree::iterator tree_it = tree->begin();
1023
0
      do {
1024
0
        InsertUnique(BucketNumber(std::cref(tree_it->first).get()),
1025
0
                     NodeFromTreeIterator(tree_it));
1026
0
      } while (++tree_it != tree->end());
1027
0
      DestroyTree(tree);
1028
0
    }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::TransferTree(void* const*, unsigned long)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::TransferTree(void* const*, unsigned long)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::TransferTree(void* const*, unsigned long)
1029
1030
32.9k
    Node* EraseFromLinkedList(Node* item, Node* head) {
1031
32.9k
      if (head == item) {
1032
28.6k
        return head->next;
1033
28.6k
      } else {
1034
4.31k
        head->next = EraseFromLinkedList(item, head->next);
1035
4.31k
        return head;
1036
4.31k
      }
1037
32.9k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::EraseFromLinkedList(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Node*, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Node*)
Line
Count
Source
1030
12.1k
    Node* EraseFromLinkedList(Node* item, Node* head) {
1031
12.1k
      if (head == item) {
1032
10.8k
        return head->next;
1033
10.8k
      } else {
1034
1.34k
        head->next = EraseFromLinkedList(item, head->next);
1035
1.34k
        return head;
1036
1.34k
      }
1037
12.1k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::EraseFromLinkedList(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Node*, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Node*)
Line
Count
Source
1030
10.5k
    Node* EraseFromLinkedList(Node* item, Node* head) {
1031
10.5k
      if (head == item) {
1032
8.91k
        return head->next;
1033
8.91k
      } else {
1034
1.60k
        head->next = EraseFromLinkedList(item, head->next);
1035
1.60k
        return head;
1036
1.60k
      }
1037
10.5k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::EraseFromLinkedList(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Node*, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Node*)
Line
Count
Source
1030
10.2k
    Node* EraseFromLinkedList(Node* item, Node* head) {
1031
10.2k
      if (head == item) {
1032
8.85k
        return head->next;
1033
8.85k
      } else {
1034
1.36k
        head->next = EraseFromLinkedList(item, head->next);
1035
1.36k
        return head;
1036
1.36k
      }
1037
10.2k
    }
1038
1039
219k
    bool TableEntryIsEmpty(size_type b) const {
1040
219k
      return internal::TableEntryIsEmpty(table_, b);
1041
219k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::TableEntryIsEmpty(unsigned long) const
Line
Count
Source
1039
70.4k
    bool TableEntryIsEmpty(size_type b) const {
1040
70.4k
      return internal::TableEntryIsEmpty(table_, b);
1041
70.4k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::TableEntryIsEmpty(unsigned long) const
Line
Count
Source
1039
75.3k
    bool TableEntryIsEmpty(size_type b) const {
1040
75.3k
      return internal::TableEntryIsEmpty(table_, b);
1041
75.3k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::TableEntryIsEmpty(unsigned long) const
Line
Count
Source
1039
73.3k
    bool TableEntryIsEmpty(size_type b) const {
1040
73.3k
      return internal::TableEntryIsEmpty(table_, b);
1041
73.3k
    }
1042
1.97M
    bool TableEntryIsNonEmptyList(size_type b) const {
1043
1.97M
      return internal::TableEntryIsNonEmptyList(table_, b);
1044
1.97M
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::TableEntryIsNonEmptyList(unsigned long) const
Line
Count
Source
1042
580k
    bool TableEntryIsNonEmptyList(size_type b) const {
1043
580k
      return internal::TableEntryIsNonEmptyList(table_, b);
1044
580k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::TableEntryIsNonEmptyList(unsigned long) const
Line
Count
Source
1042
639k
    bool TableEntryIsNonEmptyList(size_type b) const {
1043
639k
      return internal::TableEntryIsNonEmptyList(table_, b);
1044
639k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::TableEntryIsNonEmptyList(unsigned long) const
Line
Count
Source
1042
752k
    bool TableEntryIsNonEmptyList(size_type b) const {
1043
752k
      return internal::TableEntryIsNonEmptyList(table_, b);
1044
752k
    }
1045
1.30M
    bool TableEntryIsTree(size_type b) const {
1046
1.30M
      return internal::TableEntryIsTree(table_, b);
1047
1.30M
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::TableEntryIsTree(unsigned long) const
Line
Count
Source
1045
273k
    bool TableEntryIsTree(size_type b) const {
1046
273k
      return internal::TableEntryIsTree(table_, b);
1047
273k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::TableEntryIsTree(unsigned long) const
Line
Count
Source
1045
462k
    bool TableEntryIsTree(size_type b) const {
1046
462k
      return internal::TableEntryIsTree(table_, b);
1047
462k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::TableEntryIsTree(unsigned long) const
Line
Count
Source
1045
570k
    bool TableEntryIsTree(size_type b) const {
1046
570k
      return internal::TableEntryIsTree(table_, b);
1047
570k
    }
1048
0
    bool TableEntryIsList(size_type b) const {
1049
0
      return internal::TableEntryIsList(table_, b);
1050
0
    }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::TableEntryIsList(unsigned long) const
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::TableEntryIsList(unsigned long) const
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::TableEntryIsList(unsigned long) const
1051
1052
0
    void TreeConvert(size_type b) {
1053
0
      GOOGLE_DCHECK(!TableEntryIsTree(b) && !TableEntryIsTree(b ^ 1));
1054
0
      Tree* tree =
1055
0
          Arena::Create<Tree>(alloc_.arena(), typename Tree::key_compare(),
1056
0
                              typename Tree::allocator_type(alloc_));
1057
0
      size_type count = CopyListToTree(b, tree) + CopyListToTree(b ^ 1, tree);
1058
0
      GOOGLE_DCHECK_EQ(count, tree->size());
1059
0
      table_[b] = table_[b ^ 1] = static_cast<void*>(tree);
1060
0
    }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::TreeConvert(unsigned long)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::TreeConvert(unsigned long)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::TreeConvert(unsigned long)
1061
1062
    // Copy a linked list in the given bucket to a tree.
1063
    // Returns the number of things it copied.
1064
0
    size_type CopyListToTree(size_type b, Tree* tree) {
1065
0
      size_type count = 0;
1066
0
      Node* node = static_cast<Node*>(table_[b]);
1067
0
      while (node != nullptr) {
1068
0
        tree->insert({node->kv.first, node});
1069
0
        ++count;
1070
0
        Node* next = node->next;
1071
0
        node->next = nullptr;
1072
0
        node = next;
1073
0
      }
1074
0
      return count;
1075
0
    }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::CopyListToTree(unsigned long, std::__1::map<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*, google::protobuf::internal::TransparentSupport<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::less, google::protobuf::internal::MapAllocator<std::__1::pair<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const, void*> > >*)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::CopyListToTree(unsigned long, std::__1::map<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*, google::protobuf::internal::TransparentSupport<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::less, google::protobuf::internal::MapAllocator<std::__1::pair<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const, void*> > >*)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::CopyListToTree(unsigned long, std::__1::map<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*, google::protobuf::internal::TransparentSupport<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::less, google::protobuf::internal::MapAllocator<std::__1::pair<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const, void*> > >*)
1076
1077
    // Return whether table_[b] is a linked list that seems awfully long.
1078
    // Requires table_[b] to point to a non-empty linked list.
1079
36.5k
    bool TableEntryIsTooLong(size_type b) {
1080
36.5k
      const size_type kMaxLength = 8;
1081
36.5k
      size_type count = 0;
1082
36.5k
      Node* node = static_cast<Node*>(table_[b]);
1083
43.5k
      do {
1084
43.5k
        ++count;
1085
43.5k
        node = node->next;
1086
43.5k
      } while (node != nullptr);
1087
      // Invariant: no linked list ever is more than kMaxLength in length.
1088
36.5k
      GOOGLE_DCHECK_LE(count, kMaxLength);
1089
36.5k
      return count >= kMaxLength;
1090
36.5k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::TableEntryIsTooLong(unsigned long)
Line
Count
Source
1079
14.9k
    bool TableEntryIsTooLong(size_type b) {
1080
14.9k
      const size_type kMaxLength = 8;
1081
14.9k
      size_type count = 0;
1082
14.9k
      Node* node = static_cast<Node*>(table_[b]);
1083
18.1k
      do {
1084
18.1k
        ++count;
1085
18.1k
        node = node->next;
1086
18.1k
      } while (node != nullptr);
1087
      // Invariant: no linked list ever is more than kMaxLength in length.
1088
14.9k
      GOOGLE_DCHECK_LE(count, kMaxLength);
1089
14.9k
      return count >= kMaxLength;
1090
14.9k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::TableEntryIsTooLong(unsigned long)
Line
Count
Source
1079
12.3k
    bool TableEntryIsTooLong(size_type b) {
1080
12.3k
      const size_type kMaxLength = 8;
1081
12.3k
      size_type count = 0;
1082
12.3k
      Node* node = static_cast<Node*>(table_[b]);
1083
14.6k
      do {
1084
14.6k
        ++count;
1085
14.6k
        node = node->next;
1086
14.6k
      } while (node != nullptr);
1087
      // Invariant: no linked list ever is more than kMaxLength in length.
1088
12.3k
      GOOGLE_DCHECK_LE(count, kMaxLength);
1089
12.3k
      return count >= kMaxLength;
1090
12.3k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::TableEntryIsTooLong(unsigned long)
Line
Count
Source
1079
9.18k
    bool TableEntryIsTooLong(size_type b) {
1080
9.18k
      const size_type kMaxLength = 8;
1081
9.18k
      size_type count = 0;
1082
9.18k
      Node* node = static_cast<Node*>(table_[b]);
1083
10.7k
      do {
1084
10.7k
        ++count;
1085
10.7k
        node = node->next;
1086
10.7k
      } while (node != nullptr);
1087
      // Invariant: no linked list ever is more than kMaxLength in length.
1088
9.18k
      GOOGLE_DCHECK_LE(count, kMaxLength);
1089
9.18k
      return count >= kMaxLength;
1090
9.18k
    }
1091
1092
    template <typename K>
1093
857k
    size_type BucketNumber(const K& k) const {
1094
      // We xor the hash value against the random seed so that we effectively
1095
      // have a random hash function.
1096
857k
      uint64_t h = hash_function()(k) ^ seed_;
1097
1098
      // We use the multiplication method to determine the bucket number from
1099
      // the hash value. The constant kPhi (suggested by Knuth) is roughly
1100
      // (sqrt(5) - 1) / 2 * 2^64.
1101
857k
      constexpr uint64_t kPhi = uint64_t{0x9e3779b97f4a7c15};
1102
857k
      return ((kPhi * h) >> 32) & (num_buckets_ - 1);
1103
857k
    }
unsigned long google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::BucketNumber<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
1093
375k
    size_type BucketNumber(const K& k) const {
1094
      // We xor the hash value against the random seed so that we effectively
1095
      // have a random hash function.
1096
375k
      uint64_t h = hash_function()(k) ^ seed_;
1097
1098
      // We use the multiplication method to determine the bucket number from
1099
      // the hash value. The constant kPhi (suggested by Knuth) is roughly
1100
      // (sqrt(5) - 1) / 2 * 2^64.
1101
375k
      constexpr uint64_t kPhi = uint64_t{0x9e3779b97f4a7c15};
1102
375k
      return ((kPhi * h) >> 32) & (num_buckets_ - 1);
1103
375k
    }
unsigned long google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::BucketNumber<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
1093
236k
    size_type BucketNumber(const K& k) const {
1094
      // We xor the hash value against the random seed so that we effectively
1095
      // have a random hash function.
1096
236k
      uint64_t h = hash_function()(k) ^ seed_;
1097
1098
      // We use the multiplication method to determine the bucket number from
1099
      // the hash value. The constant kPhi (suggested by Knuth) is roughly
1100
      // (sqrt(5) - 1) / 2 * 2^64.
1101
236k
      constexpr uint64_t kPhi = uint64_t{0x9e3779b97f4a7c15};
1102
236k
      return ((kPhi * h) >> 32) & (num_buckets_ - 1);
1103
236k
    }
unsigned long google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::BucketNumber<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
1093
245k
    size_type BucketNumber(const K& k) const {
1094
      // We xor the hash value against the random seed so that we effectively
1095
      // have a random hash function.
1096
245k
      uint64_t h = hash_function()(k) ^ seed_;
1097
1098
      // We use the multiplication method to determine the bucket number from
1099
      // the hash value. The constant kPhi (suggested by Knuth) is roughly
1100
      // (sqrt(5) - 1) / 2 * 2^64.
1101
245k
      constexpr uint64_t kPhi = uint64_t{0x9e3779b97f4a7c15};
1102
245k
      return ((kPhi * h) >> 32) & (num_buckets_ - 1);
1103
245k
    }
1104
1105
    // Return a power of two no less than max(kMinTableSize, n).
1106
    // Assumes either n < kMinTableSize or n is a power of two.
1107
    size_type TableSize(size_type n) {
1108
      return n < static_cast<size_type>(kMinTableSize)
1109
                 ? static_cast<size_type>(kMinTableSize)
1110
                 : n;
1111
    }
1112
1113
    // Use alloc_ to allocate an array of n objects of type U.
1114
    template <typename U>
1115
236k
    U* Alloc(size_type n) {
1116
236k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
236k
      return alloc_type(alloc_).allocate(n);
1118
236k
    }
void** google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Alloc<void*>(unsigned long)
Line
Count
Source
1115
12.5k
    U* Alloc(size_type n) {
1116
12.5k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
12.5k
      return alloc_type(alloc_).allocate(n);
1118
12.5k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Node* google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Alloc<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Node>(unsigned long)
Line
Count
Source
1115
43.7k
    U* Alloc(size_type n) {
1116
43.7k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
43.7k
      return alloc_type(alloc_).allocate(n);
1118
43.7k
    }
void** google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Alloc<void*>(unsigned long)
Line
Count
Source
1115
27.6k
    U* Alloc(size_type n) {
1116
27.6k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
27.6k
      return alloc_type(alloc_).allocate(n);
1118
27.6k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Node* google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Alloc<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Node>(unsigned long)
Line
Count
Source
1115
54.3k
    U* Alloc(size_type n) {
1116
54.3k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
54.3k
      return alloc_type(alloc_).allocate(n);
1118
54.3k
    }
void** google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Alloc<void*>(unsigned long)
Line
Count
Source
1115
38.0k
    U* Alloc(size_type n) {
1116
38.0k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
38.0k
      return alloc_type(alloc_).allocate(n);
1118
38.0k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Node* google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Alloc<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Node>(unsigned long)
Line
Count
Source
1115
59.8k
    U* Alloc(size_type n) {
1116
59.8k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
59.8k
      return alloc_type(alloc_).allocate(n);
1118
59.8k
    }
1119
1120
    // Use alloc_ to deallocate an array of n objects of type U.
1121
    template <typename U>
1122
78.2k
    void Dealloc(U* t, size_type n) {
1123
78.2k
      using alloc_type = typename Allocator::template rebind<U>::other;
1124
78.2k
      alloc_type(alloc_).deallocate(t, n);
1125
78.2k
    }
void google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Dealloc<void*>(void**, unsigned long)
Line
Count
Source
1122
12.5k
    void Dealloc(U* t, size_type n) {
1123
12.5k
      using alloc_type = typename Allocator::template rebind<U>::other;
1124
12.5k
      alloc_type(alloc_).deallocate(t, n);
1125
12.5k
    }
void google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Dealloc<void*>(void**, unsigned long)
Line
Count
Source
1122
27.6k
    void Dealloc(U* t, size_type n) {
1123
27.6k
      using alloc_type = typename Allocator::template rebind<U>::other;
1124
27.6k
      alloc_type(alloc_).deallocate(t, n);
1125
27.6k
    }
void google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Dealloc<void*>(void**, unsigned long)
Line
Count
Source
1122
38.0k
    void Dealloc(U* t, size_type n) {
1123
38.0k
      using alloc_type = typename Allocator::template rebind<U>::other;
1124
38.0k
      alloc_type(alloc_).deallocate(t, n);
1125
38.0k
    }
1126
1127
158k
    void DestroyNode(Node* node) {
1128
158k
      if (alloc_.arena() == nullptr) {
1129
158k
        delete node;
1130
158k
      }
1131
158k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::DestroyNode(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Node*)
Line
Count
Source
1127
43.7k
    void DestroyNode(Node* node) {
1128
43.7k
      if (alloc_.arena() == nullptr) {
1129
43.7k
        delete node;
1130
43.7k
      }
1131
43.7k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::DestroyNode(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Node*)
Line
Count
Source
1127
54.3k
    void DestroyNode(Node* node) {
1128
54.3k
      if (alloc_.arena() == nullptr) {
1129
54.3k
        delete node;
1130
54.3k
      }
1131
54.3k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::DestroyNode(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Node*)
Line
Count
Source
1127
59.8k
    void DestroyNode(Node* node) {
1128
59.8k
      if (alloc_.arena() == nullptr) {
1129
59.8k
        delete node;
1130
59.8k
      }
1131
59.8k
    }
1132
1133
0
    void DestroyTree(Tree* tree) {
1134
0
      if (alloc_.arena() == nullptr) {
1135
0
        delete tree;
1136
0
      }
1137
0
    }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::DestroyTree(std::__1::map<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*, google::protobuf::internal::TransparentSupport<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::less, google::protobuf::internal::MapAllocator<std::__1::pair<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const, void*> > >*)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::DestroyTree(std::__1::map<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*, google::protobuf::internal::TransparentSupport<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::less, google::protobuf::internal::MapAllocator<std::__1::pair<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const, void*> > >*)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::DestroyTree(std::__1::map<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, void*, google::protobuf::internal::TransparentSupport<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::less, google::protobuf::internal::MapAllocator<std::__1::pair<std::__1::reference_wrapper<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> const, void*> > >*)
1138
1139
78.2k
    void** CreateEmptyTable(size_type n) {
1140
78.2k
      GOOGLE_DCHECK(n >= kMinTableSize);
1141
78.2k
      GOOGLE_DCHECK_EQ(n & (n - 1), 0u);
1142
78.2k
      void** result = Alloc<void*>(n);
1143
78.2k
      memset(result, 0, n * sizeof(result[0]));
1144
78.2k
      return result;
1145
78.2k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::CreateEmptyTable(unsigned long)
Line
Count
Source
1139
12.5k
    void** CreateEmptyTable(size_type n) {
1140
12.5k
      GOOGLE_DCHECK(n >= kMinTableSize);
1141
12.5k
      GOOGLE_DCHECK_EQ(n & (n - 1), 0u);
1142
12.5k
      void** result = Alloc<void*>(n);
1143
12.5k
      memset(result, 0, n * sizeof(result[0]));
1144
12.5k
      return result;
1145
12.5k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::CreateEmptyTable(unsigned long)
Line
Count
Source
1139
27.6k
    void** CreateEmptyTable(size_type n) {
1140
27.6k
      GOOGLE_DCHECK(n >= kMinTableSize);
1141
27.6k
      GOOGLE_DCHECK_EQ(n & (n - 1), 0u);
1142
27.6k
      void** result = Alloc<void*>(n);
1143
27.6k
      memset(result, 0, n * sizeof(result[0]));
1144
27.6k
      return result;
1145
27.6k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::CreateEmptyTable(unsigned long)
Line
Count
Source
1139
38.0k
    void** CreateEmptyTable(size_type n) {
1140
38.0k
      GOOGLE_DCHECK(n >= kMinTableSize);
1141
38.0k
      GOOGLE_DCHECK_EQ(n & (n - 1), 0u);
1142
38.0k
      void** result = Alloc<void*>(n);
1143
38.0k
      memset(result, 0, n * sizeof(result[0]));
1144
38.0k
      return result;
1145
38.0k
    }
1146
1147
    // Return a randomish value.
1148
72.7k
    size_type Seed() const {
1149
      // We get a little bit of randomness from the address of the map. The
1150
      // lower bits are not very random, due to alignment, so we discard them
1151
      // and shift the higher bits into their place.
1152
72.7k
      size_type s = reinterpret_cast<uintptr_t>(this) >> 4;
1153
72.7k
#if !defined(GOOGLE_PROTOBUF_NO_RDTSC)
1154
#if defined(__APPLE__)
1155
      // Use a commpage-based fast time function on Apple environments (MacOS,
1156
      // iOS, tvOS, watchOS, etc).
1157
      s += mach_absolute_time();
1158
#elif defined(__x86_64__) && defined(__GNUC__)
1159
      uint32_t hi, lo;
1160
72.7k
      asm volatile("rdtsc" : "=a"(lo), "=d"(hi));
1161
72.7k
      s += ((static_cast<uint64_t>(hi) << 32) | lo);
1162
#elif defined(__aarch64__) && defined(__GNUC__)
1163
      // There is no rdtsc on ARMv8. CNTVCT_EL0 is the virtual counter of the
1164
      // system timer. It runs at a different frequency than the CPU's, but is
1165
      // the best source of time-based entropy we get.
1166
      uint64_t virtual_timer_value;
1167
      asm volatile("mrs %0, cntvct_el0" : "=r"(virtual_timer_value));
1168
      s += virtual_timer_value;
1169
#endif
1170
72.7k
#endif  // !defined(GOOGLE_PROTOBUF_NO_RDTSC)
1171
72.7k
      return s;
1172
72.7k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::Seed() const
Line
Count
Source
1148
10.9k
    size_type Seed() const {
1149
      // We get a little bit of randomness from the address of the map. The
1150
      // lower bits are not very random, due to alignment, so we discard them
1151
      // and shift the higher bits into their place.
1152
10.9k
      size_type s = reinterpret_cast<uintptr_t>(this) >> 4;
1153
10.9k
#if !defined(GOOGLE_PROTOBUF_NO_RDTSC)
1154
#if defined(__APPLE__)
1155
      // Use a commpage-based fast time function on Apple environments (MacOS,
1156
      // iOS, tvOS, watchOS, etc).
1157
      s += mach_absolute_time();
1158
#elif defined(__x86_64__) && defined(__GNUC__)
1159
      uint32_t hi, lo;
1160
10.9k
      asm volatile("rdtsc" : "=a"(lo), "=d"(hi));
1161
10.9k
      s += ((static_cast<uint64_t>(hi) << 32) | lo);
1162
#elif defined(__aarch64__) && defined(__GNUC__)
1163
      // There is no rdtsc on ARMv8. CNTVCT_EL0 is the virtual counter of the
1164
      // system timer. It runs at a different frequency than the CPU's, but is
1165
      // the best source of time-based entropy we get.
1166
      uint64_t virtual_timer_value;
1167
      asm volatile("mrs %0, cntvct_el0" : "=r"(virtual_timer_value));
1168
      s += virtual_timer_value;
1169
#endif
1170
10.9k
#endif  // !defined(GOOGLE_PROTOBUF_NO_RDTSC)
1171
10.9k
      return s;
1172
10.9k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::Seed() const
Line
Count
Source
1148
25.5k
    size_type Seed() const {
1149
      // We get a little bit of randomness from the address of the map. The
1150
      // lower bits are not very random, due to alignment, so we discard them
1151
      // and shift the higher bits into their place.
1152
25.5k
      size_type s = reinterpret_cast<uintptr_t>(this) >> 4;
1153
25.5k
#if !defined(GOOGLE_PROTOBUF_NO_RDTSC)
1154
#if defined(__APPLE__)
1155
      // Use a commpage-based fast time function on Apple environments (MacOS,
1156
      // iOS, tvOS, watchOS, etc).
1157
      s += mach_absolute_time();
1158
#elif defined(__x86_64__) && defined(__GNUC__)
1159
      uint32_t hi, lo;
1160
25.5k
      asm volatile("rdtsc" : "=a"(lo), "=d"(hi));
1161
25.5k
      s += ((static_cast<uint64_t>(hi) << 32) | lo);
1162
#elif defined(__aarch64__) && defined(__GNUC__)
1163
      // There is no rdtsc on ARMv8. CNTVCT_EL0 is the virtual counter of the
1164
      // system timer. It runs at a different frequency than the CPU's, but is
1165
      // the best source of time-based entropy we get.
1166
      uint64_t virtual_timer_value;
1167
      asm volatile("mrs %0, cntvct_el0" : "=r"(virtual_timer_value));
1168
      s += virtual_timer_value;
1169
#endif
1170
25.5k
#endif  // !defined(GOOGLE_PROTOBUF_NO_RDTSC)
1171
25.5k
      return s;
1172
25.5k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::Seed() const
Line
Count
Source
1148
36.2k
    size_type Seed() const {
1149
      // We get a little bit of randomness from the address of the map. The
1150
      // lower bits are not very random, due to alignment, so we discard them
1151
      // and shift the higher bits into their place.
1152
36.2k
      size_type s = reinterpret_cast<uintptr_t>(this) >> 4;
1153
36.2k
#if !defined(GOOGLE_PROTOBUF_NO_RDTSC)
1154
#if defined(__APPLE__)
1155
      // Use a commpage-based fast time function on Apple environments (MacOS,
1156
      // iOS, tvOS, watchOS, etc).
1157
      s += mach_absolute_time();
1158
#elif defined(__x86_64__) && defined(__GNUC__)
1159
      uint32_t hi, lo;
1160
36.2k
      asm volatile("rdtsc" : "=a"(lo), "=d"(hi));
1161
36.2k
      s += ((static_cast<uint64_t>(hi) << 32) | lo);
1162
#elif defined(__aarch64__) && defined(__GNUC__)
1163
      // There is no rdtsc on ARMv8. CNTVCT_EL0 is the virtual counter of the
1164
      // system timer. It runs at a different frequency than the CPU's, but is
1165
      // the best source of time-based entropy we get.
1166
      uint64_t virtual_timer_value;
1167
      asm volatile("mrs %0, cntvct_el0" : "=r"(virtual_timer_value));
1168
      s += virtual_timer_value;
1169
#endif
1170
36.2k
#endif  // !defined(GOOGLE_PROTOBUF_NO_RDTSC)
1171
36.2k
      return s;
1172
36.2k
    }
1173
1174
    friend class Arena;
1175
    using InternalArenaConstructable_ = void;
1176
    using DestructorSkippable_ = void;
1177
1178
    size_type num_elements_;
1179
    size_type num_buckets_;
1180
    size_type seed_;
1181
    size_type index_of_first_non_null_;
1182
    void** table_;  // an array with num_buckets_ entries
1183
    Allocator alloc_;
1184
    GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(InnerMap);
1185
  };  // end of class InnerMap
1186
1187
  template <typename LookupKey>
1188
  using key_arg = typename internal::TransparentSupport<
1189
      key_type>::template key_arg<LookupKey>;
1190
1191
 public:
1192
  // Iterators
1193
  class const_iterator {
1194
    using InnerIt = typename InnerMap::const_iterator;
1195
1196
   public:
1197
    using iterator_category = std::forward_iterator_tag;
1198
    using value_type = typename Map::value_type;
1199
    using difference_type = ptrdiff_t;
1200
    using pointer = const value_type*;
1201
    using reference = const value_type&;
1202
1203
58.0k
    const_iterator() {}
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator::const_iterator()
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator::const_iterator()
Line
Count
Source
1203
29.8k
    const_iterator() {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator::const_iterator()
Line
Count
Source
1203
28.2k
    const_iterator() {}
1204
881k
    explicit const_iterator(const InnerIt& it) : it_(it) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator::const_iterator(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const> const&)
Line
Count
Source
1204
282k
    explicit const_iterator(const InnerIt& it) : it_(it) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator::const_iterator(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const> const&)
Line
Count
Source
1204
298k
    explicit const_iterator(const InnerIt& it) : it_(it) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator::const_iterator(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const> const&)
Line
Count
Source
1204
300k
    explicit const_iterator(const InnerIt& it) : it_(it) {}
1205
1206
275k
    const_reference operator*() const { return *it_; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator::operator*() const
Line
Count
Source
1206
136k
    const_reference operator*() const { return *it_; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator::operator*() const
Line
Count
Source
1206
66.6k
    const_reference operator*() const { return *it_; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator::operator*() const
Line
Count
Source
1206
72.4k
    const_reference operator*() const { return *it_; }
1207
224k
    const_pointer operator->() const { return &(operator*()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator::operator->() const
Line
Count
Source
1207
136k
    const_pointer operator->() const { return &(operator*()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator::operator->() const
Line
Count
Source
1207
43.5k
    const_pointer operator->() const { return &(operator*()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator::operator->() const
Line
Count
Source
1207
44.4k
    const_pointer operator->() const { return &(operator*()); }
1208
1209
91.0k
    const_iterator& operator++() {
1210
91.0k
      ++it_;
1211
91.0k
      return *this;
1212
91.0k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator::operator++()
Line
Count
Source
1209
10.5k
    const_iterator& operator++() {
1210
10.5k
      ++it_;
1211
10.5k
      return *this;
1212
10.5k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator::operator++()
Line
Count
Source
1209
39.8k
    const_iterator& operator++() {
1210
39.8k
      ++it_;
1211
39.8k
      return *this;
1212
39.8k
    }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator::operator++()
Line
Count
Source
1209
40.5k
    const_iterator& operator++() {
1210
40.5k
      ++it_;
1211
40.5k
      return *this;
1212
40.5k
    }
1213
    const_iterator operator++(int) { return const_iterator(it_++); }
1214
1215
530k
    friend bool operator==(const const_iterator& a, const const_iterator& b) {
1216
530k
      return a.it_ == b.it_;
1217
530k
    }
google::protobuf::operator==(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator const&)
Line
Count
Source
1215
144k
    friend bool operator==(const const_iterator& a, const const_iterator& b) {
1216
144k
      return a.it_ == b.it_;
1217
144k
    }
google::protobuf::operator==(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator const&)
Line
Count
Source
1215
191k
    friend bool operator==(const const_iterator& a, const const_iterator& b) {
1216
191k
      return a.it_ == b.it_;
1217
191k
    }
google::protobuf::operator==(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator const&)
Line
Count
Source
1215
194k
    friend bool operator==(const const_iterator& a, const const_iterator& b) {
1216
194k
      return a.it_ == b.it_;
1217
194k
    }
1218
268k
    friend bool operator!=(const const_iterator& a, const const_iterator& b) {
1219
268k
      return !(a == b);
1220
268k
    }
google::protobuf::operator!=(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator const&)
Line
Count
Source
1218
17.0k
    friend bool operator!=(const const_iterator& a, const const_iterator& b) {
1219
17.0k
      return !(a == b);
1220
17.0k
    }
google::protobuf::operator!=(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator const&)
Line
Count
Source
1218
124k
    friend bool operator!=(const const_iterator& a, const const_iterator& b) {
1219
124k
      return !(a == b);
1220
124k
    }
google::protobuf::operator!=(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator const&)
Line
Count
Source
1218
127k
    friend bool operator!=(const const_iterator& a, const const_iterator& b) {
1219
127k
      return !(a == b);
1220
127k
    }
1221
1222
   private:
1223
    InnerIt it_;
1224
  };
1225
1226
  class iterator {
1227
    using InnerIt = typename InnerMap::iterator;
1228
1229
   public:
1230
    using iterator_category = std::forward_iterator_tag;
1231
    using value_type = typename Map::value_type;
1232
    using difference_type = ptrdiff_t;
1233
    using pointer = value_type*;
1234
    using reference = value_type&;
1235
1236
    iterator() {}
1237
98.8k
    explicit iterator(const InnerIt& it) : it_(it) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::iterator::iterator(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> > const&)
Line
Count
Source
1237
45.4k
    explicit iterator(const InnerIt& it) : it_(it) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::iterator::iterator(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> > const&)
Line
Count
Source
1237
26.7k
    explicit iterator(const InnerIt& it) : it_(it) {}
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::iterator::iterator(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InnerMap::iterator_base<google::protobuf::MapPair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> > const&)
Line
Count
Source
1237
26.5k
    explicit iterator(const InnerIt& it) : it_(it) {}
1238
1239
3.66k
    reference operator*() const { return *it_; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::iterator::operator*() const
Line
Count
Source
1239
3.66k
    reference operator*() const { return *it_; }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::iterator::operator*() const
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::iterator::operator*() const
1240
3.66k
    pointer operator->() const { return &(operator*()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::iterator::operator->() const
Line
Count
Source
1240
3.66k
    pointer operator->() const { return &(operator*()); }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::iterator::operator->() const
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::iterator::operator->() const
1241
1242
    iterator& operator++() {
1243
      ++it_;
1244
      return *this;
1245
    }
1246
28.6k
    iterator operator++(int) { return iterator(it_++); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::iterator::operator++(int)
Line
Count
Source
1246
10.8k
    iterator operator++(int) { return iterator(it_++); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::iterator::operator++(int)
Line
Count
Source
1246
8.91k
    iterator operator++(int) { return iterator(it_++); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::iterator::operator++(int)
Line
Count
Source
1246
8.85k
    iterator operator++(int) { return iterator(it_++); }
1247
1248
    // Allow implicit conversion to const_iterator.
1249
    operator const_iterator() const {  // NOLINT(runtime/explicit)
1250
      return const_iterator(typename InnerMap::const_iterator(it_));
1251
    }
1252
1253
35.1k
    friend bool operator==(const iterator& a, const iterator& b) {
1254
35.1k
      return a.it_ == b.it_;
1255
35.1k
    }
google::protobuf::operator==(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::iterator const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::iterator const&)
Line
Count
Source
1253
17.3k
    friend bool operator==(const iterator& a, const iterator& b) {
1254
17.3k
      return a.it_ == b.it_;
1255
17.3k
    }
google::protobuf::operator==(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::iterator const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::iterator const&)
Line
Count
Source
1253
8.91k
    friend bool operator==(const iterator& a, const iterator& b) {
1254
8.91k
      return a.it_ == b.it_;
1255
8.91k
    }
google::protobuf::operator==(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::iterator const&, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::iterator const&)
Line
Count
Source
1253
8.85k
    friend bool operator==(const iterator& a, const iterator& b) {
1254
8.85k
      return a.it_ == b.it_;
1255
8.85k
    }
1256
    friend bool operator!=(const iterator& a, const iterator& b) {
1257
      return !(a == b);
1258
    }
1259
1260
   private:
1261
    friend class Map;
1262
1263
    InnerIt it_;
1264
  };
1265
1266
  iterator begin() { return iterator(elements_.begin()); }
1267
35.1k
  iterator end() { return iterator(elements_.end()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::end()
Line
Count
Source
1267
17.3k
  iterator end() { return iterator(elements_.end()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::end()
Line
Count
Source
1267
8.91k
  iterator end() { return iterator(elements_.end()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::end()
Line
Count
Source
1267
8.85k
  iterator end() { return iterator(elements_.end()); }
1268
222k
  const_iterator begin() const { return const_iterator(elements_.begin()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::begin() const
Line
Count
Source
1268
10.1k
  const_iterator begin() const { return const_iterator(elements_.begin()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::begin() const
Line
Count
Source
1268
106k
  const_iterator begin() const { return const_iterator(elements_.begin()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::begin() const
Line
Count
Source
1268
106k
  const_iterator begin() const { return const_iterator(elements_.begin()); }
1269
480k
  const_iterator end() const { return const_iterator(elements_.end()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::end() const
Line
Count
Source
1269
144k
  const_iterator end() const { return const_iterator(elements_.end()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::end() const
Line
Count
Source
1269
168k
  const_iterator end() const { return const_iterator(elements_.end()); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::end() const
Line
Count
Source
1269
166k
  const_iterator end() const { return const_iterator(elements_.end()); }
1270
  const_iterator cbegin() const { return begin(); }
1271
  const_iterator cend() const { return end(); }
1272
1273
  // Capacity
1274
672k
  size_type size() const { return elements_.size(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::size() const
Line
Count
Source
1274
61.6k
  size_type size() const { return elements_.size(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::size() const
Line
Count
Source
1274
305k
  size_type size() const { return elements_.size(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::size() const
Line
Count
Source
1274
305k
  size_type size() const { return elements_.size(); }
1275
515k
  bool empty() const { return size() == 0; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::empty() const
Line
Count
Source
1275
35.2k
  bool empty() const { return size() == 0; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::empty() const
Line
Count
Source
1275
240k
  bool empty() const { return size() == 0; }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::empty() const
Line
Count
Source
1275
240k
  bool empty() const { return size() == 0; }
1276
1277
  // Element access
1278
  template <typename K = key_type>
1279
16.3k
  T& operator[](const key_arg<K>& key) {
1280
16.3k
    return elements_[key].second;
1281
16.3k
  }
safepower_agent_proto::NodeState& google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::operator[]<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
1279
10.5k
  T& operator[](const key_arg<K>& key) {
1280
10.5k
    return elements_[key].second;
1281
10.5k
  }
safepower_agent_proto::DaemonState& google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::operator[]<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
1279
3.98k
  T& operator[](const key_arg<K>& key) {
1280
3.98k
    return elements_[key].second;
1281
3.98k
  }
safepower_agent_proto::SystemdUnitState& google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::operator[]<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
1279
1.81k
  T& operator[](const key_arg<K>& key) {
1280
1.81k
    return elements_[key].second;
1281
1.81k
  }
1282
  template <
1283
      typename K = key_type,
1284
      // Disable for integral types to reduce code bloat.
1285
      typename = typename std::enable_if<!std::is_integral<K>::value>::type>
1286
268k
  T& operator[](key_arg<K>&& key) {
1287
268k
    return elements_[std::forward<K>(key)].second;
1288
268k
  }
safepower_agent_proto::NodeState& google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::operator[]<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
1286
110k
  T& operator[](key_arg<K>&& key) {
1287
110k
    return elements_[std::forward<K>(key)].second;
1288
110k
  }
safepower_agent_proto::DaemonState& google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::operator[]<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
1286
76.3k
  T& operator[](key_arg<K>&& key) {
1287
76.3k
    return elements_[std::forward<K>(key)].second;
1288
76.3k
  }
safepower_agent_proto::SystemdUnitState& google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::operator[]<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
1286
81.7k
  T& operator[](key_arg<K>&& key) {
1287
81.7k
    return elements_[std::forward<K>(key)].second;
1288
81.7k
  }
1289
1290
  template <typename K = key_type>
1291
  const T& at(const key_arg<K>& key) const {
1292
    const_iterator it = find(key);
1293
    GOOGLE_CHECK(it != end()) << "key not found: " << static_cast<Key>(key);
1294
    return it->second;
1295
  }
1296
1297
  template <typename K = key_type>
1298
  T& at(const key_arg<K>& key) {
1299
    iterator it = find(key);
1300
    GOOGLE_CHECK(it != end()) << "key not found: " << static_cast<Key>(key);
1301
    return it->second;
1302
  }
1303
1304
  // Lookup
1305
  template <typename K = key_type>
1306
  size_type count(const key_arg<K>& key) const {
1307
    return find(key) == end() ? 0 : 1;
1308
  }
1309
1310
  template <typename K = key_type>
1311
178k
  const_iterator find(const key_arg<K>& key) const {
1312
178k
    return const_iterator(elements_.find(key));
1313
178k
  }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
1311
127k
  const_iterator find(const key_arg<K>& key) const {
1312
127k
    return const_iterator(elements_.find(key));
1313
127k
  }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
1311
23.0k
  const_iterator find(const key_arg<K>& key) const {
1312
23.0k
    return const_iterator(elements_.find(key));
1313
23.0k
  }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
1311
27.9k
  const_iterator find(const key_arg<K>& key) const {
1312
27.9k
    return const_iterator(elements_.find(key));
1313
27.9k
  }
1314
  template <typename K = key_type>
1315
35.1k
  iterator find(const key_arg<K>& key) {
1316
35.1k
    return iterator(elements_.find(key));
1317
35.1k
  }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::iterator google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
1315
17.3k
  iterator find(const key_arg<K>& key) {
1316
17.3k
    return iterator(elements_.find(key));
1317
17.3k
  }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::iterator google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
1315
8.91k
  iterator find(const key_arg<K>& key) {
1316
8.91k
    return iterator(elements_.find(key));
1317
8.91k
  }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::iterator google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
1315
8.85k
  iterator find(const key_arg<K>& key) {
1316
8.85k
    return iterator(elements_.find(key));
1317
8.85k
  }
1318
1319
  template <typename K = key_type>
1320
  bool contains(const key_arg<K>& key) const {
1321
    return find(key) != end();
1322
  }
1323
1324
  template <typename K = key_type>
1325
  std::pair<const_iterator, const_iterator> equal_range(
1326
      const key_arg<K>& key) const {
1327
    const_iterator it = find(key);
1328
    if (it == end()) {
1329
      return std::pair<const_iterator, const_iterator>(it, it);
1330
    } else {
1331
      const_iterator begin = it++;
1332
      return std::pair<const_iterator, const_iterator>(begin, it);
1333
    }
1334
  }
1335
1336
  template <typename K = key_type>
1337
  std::pair<iterator, iterator> equal_range(const key_arg<K>& key) {
1338
    iterator it = find(key);
1339
    if (it == end()) {
1340
      return std::pair<iterator, iterator>(it, it);
1341
    } else {
1342
      iterator begin = it++;
1343
      return std::pair<iterator, iterator>(begin, it);
1344
    }
1345
  }
1346
1347
  // insert
1348
  template <typename K, typename... Args>
1349
0
  std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
1350
0
    auto p =
1351
0
        elements_.try_emplace(std::forward<K>(k), std::forward<Args>(args)...);
1352
0
    return std::pair<iterator, bool>(iterator(p.first), p.second);
1353
0
  }
Unexecuted instantiation: std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::iterator, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::try_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::NodeState const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::NodeState const&)
Unexecuted instantiation: std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::iterator, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::try_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::DaemonState const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::DaemonState const&)
Unexecuted instantiation: std::__1::pair<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::iterator, bool> google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::try_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::SystemdUnitState const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, safepower_agent_proto::SystemdUnitState const&)
1354
  std::pair<iterator, bool> insert(const value_type& value) {
1355
    return try_emplace(value.first, value.second);
1356
  }
1357
  std::pair<iterator, bool> insert(value_type&& value) {
1358
    return try_emplace(value.first, std::move(value.second));
1359
  }
1360
  template <typename... Args>
1361
  std::pair<iterator, bool> emplace(Args&&... args) {
1362
    return insert(value_type(std::forward<Args>(args)...));
1363
  }
1364
  template <class InputIt>
1365
0
  void insert(InputIt first, InputIt last) {
1366
0
    for (; first != last; ++first) {
1367
0
      try_emplace(first->first, first->second);
1368
0
    }
1369
0
  }
Unexecuted instantiation: void google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::insert<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator>(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::const_iterator)
Unexecuted instantiation: void google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::insert<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator>(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::const_iterator)
Unexecuted instantiation: void google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::insert<google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator>(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator, google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::const_iterator)
1370
  void insert(std::initializer_list<value_type> values) {
1371
    insert(values.begin(), values.end());
1372
  }
1373
1374
  // Erase and clear
1375
  template <typename K = key_type>
1376
28.6k
  size_type erase(const key_arg<K>& key) {
1377
28.6k
    iterator it = find(key);
1378
28.6k
    if (it == end()) {
1379
0
      return 0;
1380
28.6k
    } else {
1381
28.6k
      erase(it);
1382
28.6k
      return 1;
1383
28.6k
    }
1384
28.6k
  }
unsigned long google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::erase<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
1376
10.8k
  size_type erase(const key_arg<K>& key) {
1377
10.8k
    iterator it = find(key);
1378
10.8k
    if (it == end()) {
1379
0
      return 0;
1380
10.8k
    } else {
1381
10.8k
      erase(it);
1382
10.8k
      return 1;
1383
10.8k
    }
1384
10.8k
  }
unsigned long google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::erase<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
1376
8.91k
  size_type erase(const key_arg<K>& key) {
1377
8.91k
    iterator it = find(key);
1378
8.91k
    if (it == end()) {
1379
0
      return 0;
1380
8.91k
    } else {
1381
8.91k
      erase(it);
1382
8.91k
      return 1;
1383
8.91k
    }
1384
8.91k
  }
unsigned long google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::erase<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
1376
8.85k
  size_type erase(const key_arg<K>& key) {
1377
8.85k
    iterator it = find(key);
1378
8.85k
    if (it == end()) {
1379
0
      return 0;
1380
8.85k
    } else {
1381
8.85k
      erase(it);
1382
8.85k
      return 1;
1383
8.85k
    }
1384
8.85k
  }
1385
28.6k
  iterator erase(iterator pos) {
1386
28.6k
    iterator i = pos++;
1387
28.6k
    elements_.erase(i.it_);
1388
28.6k
    return pos;
1389
28.6k
  }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::erase(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::iterator)
Line
Count
Source
1385
10.8k
  iterator erase(iterator pos) {
1386
10.8k
    iterator i = pos++;
1387
10.8k
    elements_.erase(i.it_);
1388
10.8k
    return pos;
1389
10.8k
  }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::erase(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::iterator)
Line
Count
Source
1385
8.91k
  iterator erase(iterator pos) {
1386
8.91k
    iterator i = pos++;
1387
8.91k
    elements_.erase(i.it_);
1388
8.91k
    return pos;
1389
8.91k
  }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::erase(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::iterator)
Line
Count
Source
1385
8.85k
  iterator erase(iterator pos) {
1386
8.85k
    iterator i = pos++;
1387
8.85k
    elements_.erase(i.it_);
1388
8.85k
    return pos;
1389
8.85k
  }
1390
  void erase(iterator first, iterator last) {
1391
    while (first != last) {
1392
      first = erase(first);
1393
    }
1394
  }
1395
42.5k
  void clear() { elements_.clear(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::clear()
Line
Count
Source
1395
21.3k
  void clear() { elements_.clear(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::clear()
Line
Count
Source
1395
10.5k
  void clear() { elements_.clear(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::clear()
Line
Count
Source
1395
10.5k
  void clear() { elements_.clear(); }
1396
1397
  // Assign
1398
0
  Map& operator=(const Map& other) {
1399
0
    if (this != &other) {
1400
0
      clear();
1401
0
      insert(other.begin(), other.end());
1402
0
    }
1403
0
    return *this;
1404
0
  }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::operator=(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState> const&)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::operator=(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState> const&)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::operator=(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState> const&)
1405
1406
0
  void swap(Map& other) {
1407
0
    if (arena() == other.arena()) {
1408
0
      InternalSwap(other);
1409
0
    } else {
1410
      // TODO(zuguang): optimize this. The temporary copy can be allocated
1411
      // in the same arena as the other message, and the "other = copy" can
1412
      // be replaced with the fast-path swap above.
1413
0
      Map copy = *this;
1414
0
      *this = other;
1415
0
      other = copy;
1416
0
    }
1417
0
  }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::swap(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>&)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::swap(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>&)
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::swap(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>&)
1418
1419
724k
  void InternalSwap(Map& other) { elements_.Swap(&other.elements_); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::InternalSwap(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>&)
Line
Count
Source
1419
28.7k
  void InternalSwap(Map& other) { elements_.Swap(&other.elements_); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::InternalSwap(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>&)
Line
Count
Source
1419
348k
  void InternalSwap(Map& other) { elements_.Swap(&other.elements_); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::InternalSwap(google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>&)
Line
Count
Source
1419
348k
  void InternalSwap(Map& other) { elements_.Swap(&other.elements_); }
1420
1421
  // Access to hasher.  Currently this returns a copy, but it may
1422
  // be modified to return a const reference in the future.
1423
  hasher hash_function() const { return elements_.hash_function(); }
1424
1425
0
  size_t SpaceUsedExcludingSelfLong() const {
1426
0
    if (empty()) return 0;
1427
0
    return elements_.SpaceUsedInternal() + internal::SpaceUsedInValues(this);
1428
0
  }
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::SpaceUsedExcludingSelfLong() const
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::SpaceUsedExcludingSelfLong() const
Unexecuted instantiation: google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::SpaceUsedExcludingSelfLong() const
1429
1430
 private:
1431
1.26M
  Arena* arena() const { return elements_.arena(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::DaemonState>::arena() const
Line
Count
Source
1431
546k
  Arena* arena() const { return elements_.arena(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::NodeState>::arena() const
Line
Count
Source
1431
162k
  Arena* arena() const { return elements_.arena(); }
google::protobuf::Map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, safepower_agent_proto::SystemdUnitState>::arena() const
Line
Count
Source
1431
552k
  Arena* arena() const { return elements_.arena(); }
1432
  InnerMap elements_;
1433
1434
  friend class Arena;
1435
  using InternalArenaConstructable_ = void;
1436
  using DestructorSkippable_ = void;
1437
  template <typename Derived, typename K, typename V,
1438
            internal::WireFormatLite::FieldType key_wire_type,
1439
            internal::WireFormatLite::FieldType value_wire_type>
1440
  friend class internal::MapFieldLite;
1441
};
1442
1443
}  // namespace protobuf
1444
}  // namespace google
1445
1446
#include <google/protobuf/port_undef.inc>
1447
1448
#endif  // GOOGLE_PROTOBUF_MAP_H__