Coverage Report

Created: 2026-09-24 06:30

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
952k
  explicit constexpr MapAllocator(Arena* arena) : arena_(arena) {}
117
  template <typename X>
118
  MapAllocator(const MapAllocator<X>& allocator)  // NOLINT(runtime/explicit)
119
168k
      : 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
45.3k
      : 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
59.8k
      : 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
62.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
250k
  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
250k
    if (arena_ == nullptr) {
130
250k
      return static_cast<pointer>(::operator new(n * sizeof(value_type)));
131
250k
    } else {
132
0
      return reinterpret_cast<pointer>(
133
0
          Arena::CreateArray<uint8_t>(arena_, n * sizeof(value_type)));
134
0
    }
135
250k
  }
google::protobuf::internal::MapAllocator<void*>::allocate(unsigned long, void const*)
Line
Count
Source
126
82.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
82.7k
    if (arena_ == nullptr) {
130
82.7k
      return static_cast<pointer>(::operator new(n * sizeof(value_type)));
131
82.7k
    } else {
132
0
      return reinterpret_cast<pointer>(
133
0
          Arena::CreateArray<uint8_t>(arena_, n * sizeof(value_type)));
134
0
    }
135
82.7k
  }
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
45.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
45.3k
    if (arena_ == nullptr) {
130
45.3k
      return static_cast<pointer>(::operator new(n * sizeof(value_type)));
131
45.3k
    } else {
132
0
      return reinterpret_cast<pointer>(
133
0
          Arena::CreateArray<uint8_t>(arena_, n * sizeof(value_type)));
134
0
    }
135
45.3k
  }
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
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
  }
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
62.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
62.8k
    if (arena_ == nullptr) {
130
62.8k
      return static_cast<pointer>(::operator new(n * sizeof(value_type)));
131
62.8k
    } else {
132
0
      return reinterpret_cast<pointer>(
133
0
          Arena::CreateArray<uint8_t>(arena_, n * sizeof(value_type)));
134
0
    }
135
62.8k
  }
136
137
82.7k
  void deallocate(pointer p, size_type n) {
138
82.7k
    if (arena_ == nullptr) {
139
82.7k
      internal::SizedDelete(p, n * sizeof(value_type));
140
82.7k
    }
141
82.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*> >::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
82.7k
  void deallocate(pointer p, size_type n) {
138
82.7k
    if (arena_ == nullptr) {
139
82.7k
      internal::SizedDelete(p, n * sizeof(value_type));
140
82.7k
    }
141
82.7k
  }
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.32M
  Arena* arena() const { return arena_; }
google::protobuf::internal::MapAllocator<void*>::arena() const
Line
Count
Source
188
2.32M
  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.64M
  static std::string_view ImplicitConvert(const std::string& str) {
228
1.64M
    return str;
229
1.64M
  }
230
231
  struct hash : private std::hash<std::string_view> {
232
    using is_transparent = void;
233
234
    template <typename T>
235
879k
    size_t operator()(const T& str) const {
236
879k
      return base()(ImplicitConvert(str));
237
879k
    }
238
239
   private:
240
879k
    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
383k
  static bool Equals(const T& t, const U& u) {
253
383k
    return ImplicitConvert(t) == ImplicitConvert(u);
254
383k
  }
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.68M
inline bool TableEntryIsEmpty(void* const* table, size_t b) {
267
1.68M
  return table[b] == nullptr;
268
1.68M
}
269
2.17M
inline bool TableEntryIsNonEmptyList(void* const* table, size_t b) {
270
2.17M
  return table[b] != nullptr && table[b] != table[b ^ 1];
271
2.17M
}
272
1.44M
inline bool TableEntryIsTree(void* const* table, size_t b) {
273
1.44M
  return !TableEntryIsEmpty(table, b) && !TableEntryIsNonEmptyList(table, b);
274
1.44M
}
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
168k
  ~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
45.3k
  ~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
59.8k
  ~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
62.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.79k
  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.79k
  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
946k
  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
52.5k
  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
446k
  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
446k
  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
476k
  ~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
29.6k
  ~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
223k
  ~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
223k
  ~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
952k
        : hasher(),
462
952k
          num_elements_(0),
463
952k
          num_buckets_(internal::kGlobalEmptyTableSize),
464
952k
          seed_(0),
465
952k
          index_of_first_non_null_(internal::kGlobalEmptyTableSize),
466
952k
          table_(const_cast<void**>(internal::kGlobalEmptyTable)),
467
952k
          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
59.3k
        : hasher(),
462
59.3k
          num_elements_(0),
463
59.3k
          num_buckets_(internal::kGlobalEmptyTableSize),
464
59.3k
          seed_(0),
465
59.3k
          index_of_first_non_null_(internal::kGlobalEmptyTableSize),
466
59.3k
          table_(const_cast<void**>(internal::kGlobalEmptyTable)),
467
59.3k
          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
446k
        : hasher(),
462
446k
          num_elements_(0),
463
446k
          num_buckets_(internal::kGlobalEmptyTableSize),
464
446k
          seed_(0),
465
446k
          index_of_first_non_null_(internal::kGlobalEmptyTableSize),
466
446k
          table_(const_cast<void**>(internal::kGlobalEmptyTable)),
467
446k
          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
446k
        : hasher(),
462
446k
          num_elements_(0),
463
446k
          num_buckets_(internal::kGlobalEmptyTableSize),
464
446k
          seed_(0),
465
446k
          index_of_first_non_null_(internal::kGlobalEmptyTableSize),
466
446k
          table_(const_cast<void**>(internal::kGlobalEmptyTable)),
467
446k
          alloc_(arena) {}
468
469
476k
    ~InnerMap() {
470
476k
      if (alloc_.arena() == nullptr &&
471
476k
          num_buckets_ != internal::kGlobalEmptyTableSize) {
472
76.8k
        clear();
473
76.8k
        Dealloc<void*>(table_, num_buckets_);
474
76.8k
      }
475
476k
    }
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
29.6k
    ~InnerMap() {
470
29.6k
      if (alloc_.arena() == nullptr &&
471
29.6k
          num_buckets_ != internal::kGlobalEmptyTableSize) {
472
11.2k
        clear();
473
11.2k
        Dealloc<void*>(table_, num_buckets_);
474
11.2k
      }
475
29.6k
    }
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
223k
    ~InnerMap() {
470
223k
      if (alloc_.arena() == nullptr &&
471
223k
          num_buckets_ != internal::kGlobalEmptyTableSize) {
472
28.0k
        clear();
473
28.0k
        Dealloc<void*>(table_, num_buckets_);
474
28.0k
      }
475
223k
    }
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
223k
    ~InnerMap() {
470
223k
      if (alloc_.arena() == nullptr &&
471
223k
          num_buckets_ != internal::kGlobalEmptyTableSize) {
472
37.5k
        clear();
473
37.5k
        Dealloc<void*>(table_, num_buckets_);
474
37.5k
      }
475
223k
    }
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.61M
      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
293k
      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
166k
      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
421k
      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
182k
      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
389k
      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
164k
      iterator_base() : node_(nullptr), m_(nullptr), bucket_index_(0) {}
513
514
232k
      explicit iterator_base(const InnerMap* m) : m_(m) {
515
232k
        SearchFrom(m->index_of_first_non_null_);
516
232k
      }
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.5k
      explicit iterator_base(const InnerMap* m) : m_(m) {
515
10.5k
        SearchFrom(m->index_of_first_non_null_);
516
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> 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
111k
      explicit iterator_base(const InnerMap* m) : m_(m) {
515
111k
        SearchFrom(m->index_of_first_non_null_);
516
111k
      }
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
109k
      explicit iterator_base(const InnerMap* m) : m_(m) {
515
109k
        SearchFrom(m->index_of_first_non_null_);
516
109k
      }
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
371k
          : 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
145k
          : 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
119k
          : 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
107k
          : node_(it.node_), m_(it.m_), bucket_index_(it.bucket_index_) {}
524
525
      iterator_base(Node* n, const InnerMap* m, size_type index)
526
514k
          : 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
180k
          : 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
75.0k
          : 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
45.0k
          : 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
86.9k
          : 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
49.6k
          : 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
77.8k
          : 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
351k
      void SearchFrom(size_type start_bucket) {
538
351k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
351k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
351k
        node_ = nullptr;
541
659k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
425k
             bucket_index_++) {
543
425k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
117k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
117k
            break;
546
307k
          } 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
425k
        }
553
351k
      }
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
7.91k
      void SearchFrom(size_type start_bucket) {
538
7.91k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
7.91k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
7.91k
        node_ = nullptr;
541
19.0k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
17.4k
             bucket_index_++) {
543
17.4k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
6.34k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
6.34k
            break;
546
11.1k
          } 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.4k
        }
553
7.91k
      }
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
20.5k
      void SearchFrom(size_type start_bucket) {
538
20.5k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
20.5k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
20.5k
        node_ = nullptr;
541
41.7k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
35.0k
             bucket_index_++) {
543
35.0k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
13.7k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
13.7k
            break;
546
21.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
35.0k
        }
553
20.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> >::SearchFrom(unsigned long)
Line
Count
Source
537
6.72k
      void SearchFrom(size_type start_bucket) {
538
6.72k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
6.72k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
6.72k
        node_ = nullptr;
541
17.4k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
14.9k
             bucket_index_++) {
543
14.9k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
4.22k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
4.22k
            break;
546
10.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
14.9k
        }
553
6.72k
      }
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
7.14k
      void SearchFrom(size_type start_bucket) {
538
7.14k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
7.14k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
7.14k
        node_ = nullptr;
541
20.5k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
18.0k
             bucket_index_++) {
543
18.0k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
4.69k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
4.69k
            break;
546
13.3k
          } 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
18.0k
        }
553
7.14k
      }
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
157k
      void SearchFrom(size_type start_bucket) {
538
157k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
157k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
157k
        node_ = nullptr;
541
278k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
167k
             bucket_index_++) {
543
167k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
46.5k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
46.5k
            break;
546
120k
          } 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
167k
        }
553
157k
      }
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
151k
      void SearchFrom(size_type start_bucket) {
538
151k
        GOOGLE_DCHECK(m_->index_of_first_non_null_ == m_->num_buckets_ ||
539
151k
               m_->table_[m_->index_of_first_non_null_] != nullptr);
540
151k
        node_ = nullptr;
541
282k
        for (bucket_index_ = start_bucket; bucket_index_ < m_->num_buckets_;
542
172k
             bucket_index_++) {
543
172k
          if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
544
41.9k
            node_ = static_cast<Node*>(m_->table_[bucket_index_]);
545
41.9k
            break;
546
130k
          } 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
172k
        }
553
151k
      }
554
555
573k
      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
102k
      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
140k
      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
84.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.1k
      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
86.1k
      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
77.3k
      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
839k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
839k
        return a.node_ == b.node_;
560
839k
      }
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
91.7k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
91.7k
        return a.node_ == b.node_;
560
91.7k
      }
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
95.3k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
95.3k
        return a.node_ == b.node_;
560
95.3k
      }
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
86.8k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
86.8k
        return a.node_ == b.node_;
560
86.8k
      }
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
218k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
218k
        return a.node_ == b.node_;
560
218k
      }
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
202k
      friend bool operator==(const iterator_base& a, const iterator_base& b) {
559
202k
        return a.node_ == b.node_;
560
202k
      }
561
      friend bool operator!=(const iterator_base& a, const iterator_base& b) {
562
        return a.node_ != b.node_;
563
      }
564
565
132k
      iterator_base& operator++() {
566
132k
        if (node_->next == nullptr) {
567
119k
          TreeIterator tree_it;
568
119k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
119k
          if (is_list) {
570
119k
            SearchFrom(bucket_index_ + 1);
571
119k
          } 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
119k
        } else {
581
13.6k
          node_ = node_->next;
582
13.6k
        }
583
132k
        return *this;
584
132k
      }
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
9.85k
      iterator_base& operator++() {
566
9.85k
        if (node_->next == nullptr) {
567
7.91k
          TreeIterator tree_it;
568
7.91k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
7.91k
          if (is_list) {
570
7.91k
            SearchFrom(bucket_index_ + 1);
571
7.91k
          } 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.91k
        } else {
581
1.94k
          node_ = node_->next;
582
1.94k
        }
583
9.85k
        return *this;
584
9.85k
      }
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
11.7k
      iterator_base& operator++() {
566
11.7k
        if (node_->next == nullptr) {
567
9.96k
          TreeIterator tree_it;
568
9.96k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
9.96k
          if (is_list) {
570
9.96k
            SearchFrom(bucket_index_ + 1);
571
9.96k
          } 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.96k
        } else {
581
1.80k
          node_ = node_->next;
582
1.80k
        }
583
11.7k
        return *this;
584
11.7k
      }
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.44k
      iterator_base& operator++() {
566
8.44k
        if (node_->next == nullptr) {
567
6.72k
          TreeIterator tree_it;
568
6.72k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
6.72k
          if (is_list) {
570
6.72k
            SearchFrom(bucket_index_ + 1);
571
6.72k
          } 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.72k
        } else {
581
1.71k
          node_ = node_->next;
582
1.71k
        }
583
8.44k
        return *this;
584
8.44k
      }
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
9.01k
      iterator_base& operator++() {
566
9.01k
        if (node_->next == nullptr) {
567
7.14k
          TreeIterator tree_it;
568
7.14k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
7.14k
          if (is_list) {
570
7.14k
            SearchFrom(bucket_index_ + 1);
571
7.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
7.14k
        } else {
581
1.87k
          node_ = node_->next;
582
1.87k
        }
583
9.01k
        return *this;
584
9.01k
      }
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
50.4k
      iterator_base& operator++() {
566
50.4k
        if (node_->next == nullptr) {
567
45.7k
          TreeIterator tree_it;
568
45.7k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
45.7k
          if (is_list) {
570
45.7k
            SearchFrom(bucket_index_ + 1);
571
45.7k
          } 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
45.7k
        } else {
581
4.71k
          node_ = node_->next;
582
4.71k
        }
583
50.4k
        return *this;
584
50.4k
      }
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
43.2k
      iterator_base& operator++() {
566
43.2k
        if (node_->next == nullptr) {
567
41.6k
          TreeIterator tree_it;
568
41.6k
          const bool is_list = revalidate_if_necessary(&tree_it);
569
41.6k
          if (is_list) {
570
41.6k
            SearchFrom(bucket_index_ + 1);
571
41.6k
          } 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
41.6k
        } else {
581
1.62k
          node_ = node_->next;
582
1.62k
        }
583
43.2k
        return *this;
584
43.2k
      }
585
586
27.3k
      iterator_base operator++(int /* unused */) {
587
27.3k
        iterator_base tmp = *this;
588
27.3k
        ++*this;
589
27.3k
        return tmp;
590
27.3k
      }
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
9.85k
      iterator_base operator++(int /* unused */) {
587
9.85k
        iterator_base tmp = *this;
588
9.85k
        ++*this;
589
9.85k
        return tmp;
590
9.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> >::operator++(int)
Line
Count
Source
586
8.44k
      iterator_base operator++(int /* unused */) {
587
8.44k
        iterator_base tmp = *this;
588
8.44k
        ++*this;
589
8.44k
        return tmp;
590
8.44k
      }
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
9.01k
      iterator_base operator++(int /* unused */) {
587
9.01k
        iterator_base tmp = *this;
588
9.01k
        ++*this;
589
9.01k
        return tmp;
590
9.01k
      }
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
146k
      bool revalidate_if_necessary(TreeIterator* it) {
597
146k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
146k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
146k
        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.6k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
13.6k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
14.7k
          while ((l = l->next) != nullptr) {
607
14.7k
            if (l == node_) {
608
13.6k
              return true;
609
13.6k
            }
610
14.7k
          }
611
13.6k
        }
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.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> >::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
17.7k
      bool revalidate_if_necessary(TreeIterator* it) {
597
17.7k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
17.7k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
17.7k
        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.48k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
2.48k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
2.48k
          while ((l = l->next) != nullptr) {
607
2.48k
            if (l == node_) {
608
2.48k
              return true;
609
2.48k
            }
610
2.48k
          }
611
2.48k
        }
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.48k
      }
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.96k
      bool revalidate_if_necessary(TreeIterator* it) {
597
9.96k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
9.96k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
9.96k
        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.52k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
1.52k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
1.80k
          while ((l = l->next) != nullptr) {
607
1.80k
            if (l == node_) {
608
1.52k
              return true;
609
1.52k
            }
610
1.80k
          }
611
1.52k
        }
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.52k
      }
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
15.1k
      bool revalidate_if_necessary(TreeIterator* it) {
597
15.1k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
15.1k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
15.1k
        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.79k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
1.79k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
1.79k
          while ((l = l->next) != nullptr) {
607
1.79k
            if (l == node_) {
608
1.79k
              return true;
609
1.79k
            }
610
1.79k
          }
611
1.79k
        }
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.79k
      }
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
16.1k
      bool revalidate_if_necessary(TreeIterator* it) {
597
16.1k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
16.1k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
16.1k
        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.28k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
2.28k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
2.28k
          while ((l = l->next) != nullptr) {
607
2.28k
            if (l == node_) {
608
2.28k
              return true;
609
2.28k
            }
610
2.28k
          }
611
2.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
2.28k
      }
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
45.7k
      bool revalidate_if_necessary(TreeIterator* it) {
597
45.7k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
45.7k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
45.7k
        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
4.09k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
4.09k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
4.71k
          while ((l = l->next) != nullptr) {
607
4.71k
            if (l == node_) {
608
4.09k
              return true;
609
4.09k
            }
610
4.71k
          }
611
4.09k
        }
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
4.09k
      }
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
41.6k
      bool revalidate_if_necessary(TreeIterator* it) {
597
41.6k
        GOOGLE_DCHECK(node_ != nullptr && m_ != nullptr);
598
        // Force bucket_index_ to be in range.
599
41.6k
        bucket_index_ &= (m_->num_buckets_ - 1);
600
        // Common case: the bucket we think is relevant points to node_.
601
41.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
1.43k
        if (m_->TableEntryIsNonEmptyList(bucket_index_)) {
605
1.43k
          Node* l = static_cast<Node*>(m_->table_[bucket_index_]);
606
1.62k
          while ((l = l->next) != nullptr) {
607
1.62k
            if (l == node_) {
608
1.43k
              return true;
609
1.43k
            }
610
1.62k
          }
611
1.43k
        }
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.43k
      }
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.17M
    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
517k
    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
141k
    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
517k
    Arena* arena() const { return alloc_.arena(); }
631
632
645k
    void Swap(InnerMap* other) {
633
645k
      std::swap(num_elements_, other->num_elements_);
634
645k
      std::swap(num_buckets_, other->num_buckets_);
635
645k
      std::swap(seed_, other->seed_);
636
645k
      std::swap(index_of_first_non_null_, other->index_of_first_non_null_);
637
645k
      std::swap(table_, other->table_);
638
645k
      std::swap(alloc_, other->alloc_);
639
645k
    }
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
29.6k
    void Swap(InnerMap* other) {
633
29.6k
      std::swap(num_elements_, other->num_elements_);
634
29.6k
      std::swap(num_buckets_, other->num_buckets_);
635
29.6k
      std::swap(seed_, other->seed_);
636
29.6k
      std::swap(index_of_first_non_null_, other->index_of_first_non_null_);
637
29.6k
      std::swap(table_, other->table_);
638
29.6k
      std::swap(alloc_, other->alloc_);
639
29.6k
    }
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
308k
    void Swap(InnerMap* other) {
633
308k
      std::swap(num_elements_, other->num_elements_);
634
308k
      std::swap(num_buckets_, other->num_buckets_);
635
308k
      std::swap(seed_, other->seed_);
636
308k
      std::swap(index_of_first_non_null_, other->index_of_first_non_null_);
637
308k
      std::swap(table_, other->table_);
638
308k
      std::swap(alloc_, other->alloc_);
639
308k
    }
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
308k
    void Swap(InnerMap* other) {
633
308k
      std::swap(num_elements_, other->num_elements_);
634
308k
      std::swap(num_buckets_, other->num_buckets_);
635
308k
      std::swap(seed_, other->seed_);
636
308k
      std::swap(index_of_first_non_null_, other->index_of_first_non_null_);
637
308k
      std::swap(table_, other->table_);
638
308k
      std::swap(alloc_, other->alloc_);
639
308k
    }
640
641
    iterator begin() { return iterator(this); }
642
273k
    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
91.7k
    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
95.3k
    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
86.8k
    iterator end() { return iterator(); }
643
232k
    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.5k
    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
111k
    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
109k
    const_iterator begin() const { return const_iterator(this); }
644
1.04M
    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
293k
    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
384k
    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
362k
    const_iterator end() const { return const_iterator(); }
645
646
122k
    void clear() {
647
885k
      for (size_type b = 0; b < num_buckets_; b++) {
648
763k
        if (TableEntryIsNonEmptyList(b)) {
649
127k
          Node* node = static_cast<Node*>(table_[b]);
650
127k
          table_[b] = nullptr;
651
140k
          do {
652
140k
            Node* next = node->next;
653
140k
            DestroyNode(node);
654
140k
            node = next;
655
140k
          } while (node != nullptr);
656
636k
        } 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
763k
      }
673
122k
      num_elements_ = 0;
674
122k
      index_of_first_non_null_ = num_buckets_;
675
122k
    }
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
33.0k
    void clear() {
647
186k
      for (size_type b = 0; b < num_buckets_; b++) {
648
153k
        if (TableEntryIsNonEmptyList(b)) {
649
30.1k
          Node* node = static_cast<Node*>(table_[b]);
650
30.1k
          table_[b] = nullptr;
651
35.4k
          do {
652
35.4k
            Node* next = node->next;
653
35.4k
            DestroyNode(node);
654
35.4k
            node = next;
655
35.4k
          } while (node != nullptr);
656
123k
        } 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
153k
      }
673
33.0k
      num_elements_ = 0;
674
33.0k
      index_of_first_non_null_ = num_buckets_;
675
33.0k
    }
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
39.8k
    void clear() {
647
315k
      for (size_type b = 0; b < num_buckets_; b++) {
648
275k
        if (TableEntryIsNonEmptyList(b)) {
649
46.5k
          Node* node = static_cast<Node*>(table_[b]);
650
46.5k
          table_[b] = nullptr;
651
51.4k
          do {
652
51.4k
            Node* next = node->next;
653
51.4k
            DestroyNode(node);
654
51.4k
            node = next;
655
51.4k
          } while (node != nullptr);
656
228k
        } 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
275k
      }
673
39.8k
      num_elements_ = 0;
674
39.8k
      index_of_first_non_null_ = num_buckets_;
675
39.8k
    }
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
49.3k
    void clear() {
647
384k
      for (size_type b = 0; b < num_buckets_; b++) {
648
334k
        if (TableEntryIsNonEmptyList(b)) {
649
50.6k
          Node* node = static_cast<Node*>(table_[b]);
650
50.6k
          table_[b] = nullptr;
651
53.8k
          do {
652
53.8k
            Node* next = node->next;
653
53.8k
            DestroyNode(node);
654
53.8k
            node = next;
655
53.8k
          } while (node != nullptr);
656
284k
        } 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
334k
      }
673
49.3k
      num_elements_ = 0;
674
49.3k
      index_of_first_non_null_ = num_buckets_;
675
49.3k
    }
676
677
879k
    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
359k
    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
265k
    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
254k
    const hasher& hash_function() const { return *this; }
678
679
82.7k
    static size_type max_size() {
680
82.7k
      return static_cast<size_type>(1) << (sizeof(void**) >= 8 ? 60 : 28);
681
82.7k
    }
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.8k
    static size_type max_size() {
680
12.8k
      return static_cast<size_type>(1) << (sizeof(void**) >= 8 ? 60 : 28);
681
12.8k
    }
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
30.3k
    static size_type max_size() {
680
30.3k
      return static_cast<size_type>(1) << (sizeof(void**) >= 8 ? 60 : 28);
681
30.3k
    }
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
39.6k
    static size_type max_size() {
680
39.6k
      return static_cast<size_type>(1) << (sizeof(void**) >= 8 ? 60 : 28);
681
39.6k
    }
682
629k
    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
60.2k
    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
284k
    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
283k
    size_type size() const { return num_elements_; }
683
    bool empty() const { return size() == 0; }
684
685
    template <typename K>
686
273k
    iterator find(const K& k) {
687
273k
      return iterator(FindHelper(k).first);
688
273k
    }
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
91.7k
    iterator find(const K& k) {
687
91.7k
      return iterator(FindHelper(k).first);
688
91.7k
    }
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
95.3k
    iterator find(const K& k) {
687
95.3k
      return iterator(FindHelper(k).first);
688
95.3k
    }
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
86.8k
    iterator find(const K& k) {
687
86.8k
      return iterator(FindHelper(k).first);
688
86.8k
    }
689
690
    template <typename K>
691
184k
    const_iterator find(const K& k) const {
692
184k
      return FindHelper(k).first;
693
184k
    }
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
126k
    const_iterator find(const K& k) const {
692
126k
      return FindHelper(k).first;
693
126k
    }
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
28.5k
    const_iterator find(const K& k) const {
692
28.5k
      return FindHelper(k).first;
693
28.5k
    }
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
30.2k
    const_iterator find(const K& k) const {
692
30.2k
      return FindHelper(k).first;
693
30.2k
    }
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
266k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
266k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
266k
                                  std::forward<K>(k),
706
266k
                                  std::forward<Args>(args)...);
707
266k
    }
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
11.7k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
11.7k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
11.7k
                                  std::forward<K>(k),
706
11.7k
                                  std::forward<Args>(args)...);
707
11.7k
    }
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
86.8k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
86.8k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
86.8k
                                  std::forward<K>(k),
706
86.8k
                                  std::forward<Args>(args)...);
707
86.8k
    }
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
4.21k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
4.21k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
4.21k
                                  std::forward<K>(k),
706
4.21k
                                  std::forward<Args>(args)...);
707
4.21k
    }
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
2.38k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
2.38k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
2.38k
                                  std::forward<K>(k),
706
2.38k
                                  std::forward<Args>(args)...);
707
2.38k
    }
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
80.1k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
80.1k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
80.1k
                                  std::forward<K>(k),
706
80.1k
                                  std::forward<Args>(args)...);
707
80.1k
    }
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
80.7k
    std::pair<iterator, bool> try_emplace(K&& k, Args&&... args) {
704
80.7k
      return ArenaAwareTryEmplace(Arena::is_arena_constructable<mapped_type>(),
705
80.7k
                                  std::forward<K>(k),
706
80.7k
                                  std::forward<Args>(args)...);
707
80.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
266k
    value_type& operator[](K&& k) {
718
266k
      return *try_emplace(std::forward<K>(k)).first;
719
266k
    }
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
11.7k
    value_type& operator[](K&& k) {
718
11.7k
      return *try_emplace(std::forward<K>(k)).first;
719
11.7k
    }
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
86.8k
    value_type& operator[](K&& k) {
718
86.8k
      return *try_emplace(std::forward<K>(k)).first;
719
86.8k
    }
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
4.21k
    value_type& operator[](K&& k) {
718
4.21k
      return *try_emplace(std::forward<K>(k)).first;
719
4.21k
    }
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
2.38k
    value_type& operator[](K&& k) {
718
2.38k
      return *try_emplace(std::forward<K>(k)).first;
719
2.38k
    }
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
80.1k
    value_type& operator[](K&& k) {
718
80.1k
      return *try_emplace(std::forward<K>(k)).first;
719
80.1k
    }
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
80.7k
    value_type& operator[](K&& k) {
718
80.7k
      return *try_emplace(std::forward<K>(k)).first;
719
80.7k
    }
720
721
27.3k
    void erase(iterator it) {
722
27.3k
      GOOGLE_DCHECK_EQ(it.m_, this);
723
27.3k
      typename Tree::iterator tree_it;
724
27.3k
      const bool is_list = it.revalidate_if_necessary(&tree_it);
725
27.3k
      size_type b = it.bucket_index_;
726
27.3k
      Node* const item = it.node_;
727
27.3k
      if (is_list) {
728
27.3k
        GOOGLE_DCHECK(TableEntryIsNonEmptyList(b));
729
27.3k
        Node* head = static_cast<Node*>(table_[b]);
730
27.3k
        head = EraseFromLinkedList(item, head);
731
27.3k
        table_[b] = static_cast<void*>(head);
732
27.3k
      } 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
27.3k
      DestroyNode(item);
745
27.3k
      --num_elements_;
746
27.3k
      if (PROTOBUF_PREDICT_FALSE(b == index_of_first_non_null_)) {
747
26.1k
        while (index_of_first_non_null_ < num_buckets_ &&
748
24.5k
               table_[index_of_first_non_null_] == nullptr) {
749
18.2k
          ++index_of_first_non_null_;
750
18.2k
        }
751
7.94k
      }
752
27.3k
    }
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
9.85k
    void erase(iterator it) {
722
9.85k
      GOOGLE_DCHECK_EQ(it.m_, this);
723
9.85k
      typename Tree::iterator tree_it;
724
9.85k
      const bool is_list = it.revalidate_if_necessary(&tree_it);
725
9.85k
      size_type b = it.bucket_index_;
726
9.85k
      Node* const item = it.node_;
727
9.85k
      if (is_list) {
728
9.85k
        GOOGLE_DCHECK(TableEntryIsNonEmptyList(b));
729
9.85k
        Node* head = static_cast<Node*>(table_[b]);
730
9.85k
        head = EraseFromLinkedList(item, head);
731
9.85k
        table_[b] = static_cast<void*>(head);
732
9.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
9.85k
      DestroyNode(item);
745
9.85k
      --num_elements_;
746
9.85k
      if (PROTOBUF_PREDICT_FALSE(b == index_of_first_non_null_)) {
747
5.67k
        while (index_of_first_non_null_ < num_buckets_ &&
748
5.44k
               table_[index_of_first_non_null_] == nullptr) {
749
3.82k
          ++index_of_first_non_null_;
750
3.82k
        }
751
1.84k
      }
752
9.85k
    }
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.44k
    void erase(iterator it) {
722
8.44k
      GOOGLE_DCHECK_EQ(it.m_, this);
723
8.44k
      typename Tree::iterator tree_it;
724
8.44k
      const bool is_list = it.revalidate_if_necessary(&tree_it);
725
8.44k
      size_type b = it.bucket_index_;
726
8.44k
      Node* const item = it.node_;
727
8.44k
      if (is_list) {
728
8.44k
        GOOGLE_DCHECK(TableEntryIsNonEmptyList(b));
729
8.44k
        Node* head = static_cast<Node*>(table_[b]);
730
8.44k
        head = EraseFromLinkedList(item, head);
731
8.44k
        table_[b] = static_cast<void*>(head);
732
8.44k
      } 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.44k
      DestroyNode(item);
745
8.44k
      --num_elements_;
746
8.44k
      if (PROTOBUF_PREDICT_FALSE(b == index_of_first_non_null_)) {
747
10.4k
        while (index_of_first_non_null_ < num_buckets_ &&
748
9.69k
               table_[index_of_first_non_null_] == nullptr) {
749
7.28k
          ++index_of_first_non_null_;
750
7.28k
        }
751
3.16k
      }
752
8.44k
    }
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
9.01k
    void erase(iterator it) {
722
9.01k
      GOOGLE_DCHECK_EQ(it.m_, this);
723
9.01k
      typename Tree::iterator tree_it;
724
9.01k
      const bool is_list = it.revalidate_if_necessary(&tree_it);
725
9.01k
      size_type b = it.bucket_index_;
726
9.01k
      Node* const item = it.node_;
727
9.01k
      if (is_list) {
728
9.01k
        GOOGLE_DCHECK(TableEntryIsNonEmptyList(b));
729
9.01k
        Node* head = static_cast<Node*>(table_[b]);
730
9.01k
        head = EraseFromLinkedList(item, head);
731
9.01k
        table_[b] = static_cast<void*>(head);
732
9.01k
      } 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
9.01k
      DestroyNode(item);
745
9.01k
      --num_elements_;
746
9.01k
      if (PROTOBUF_PREDICT_FALSE(b == index_of_first_non_null_)) {
747
10.0k
        while (index_of_first_non_null_ < num_buckets_ &&
748
9.36k
               table_[index_of_first_non_null_] == nullptr) {
749
7.10k
          ++index_of_first_non_null_;
750
7.10k
        }
751
2.94k
      }
752
9.01k
    }
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
266k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
266k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
266k
      if (p.first.node_ != nullptr)
765
97.9k
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
168k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
82.7k
        p = FindHelper(k);
769
82.7k
      }
770
168k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
168k
      using TypeToInit = typename std::conditional<
773
168k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
168k
          key_type>::type;
775
168k
      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
168k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
168k
                                  alloc_.arena(),
782
168k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
168k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
168k
                                  std::forward<Args>(args)...);
786
787
168k
      iterator result = InsertUnique(b, node);
788
168k
      ++num_elements_;
789
168k
      return std::make_pair(result, true);
790
266k
    }
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
11.7k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
11.7k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
11.7k
      if (p.first.node_ != nullptr)
765
0
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
11.7k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
4.26k
        p = FindHelper(k);
769
4.26k
      }
770
11.7k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
11.7k
      using TypeToInit = typename std::conditional<
773
11.7k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
11.7k
          key_type>::type;
775
11.7k
      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
11.7k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
11.7k
                                  alloc_.arena(),
782
11.7k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
11.7k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
11.7k
                                  std::forward<Args>(args)...);
786
787
11.7k
      iterator result = InsertUnique(b, node);
788
11.7k
      ++num_elements_;
789
11.7k
      return std::make_pair(result, true);
790
11.7k
    }
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
86.8k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
86.8k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
86.8k
      if (p.first.node_ != nullptr)
765
53.2k
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
33.5k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
8.56k
        p = FindHelper(k);
769
8.56k
      }
770
33.5k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
33.5k
      using TypeToInit = typename std::conditional<
773
33.5k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
33.5k
          key_type>::type;
775
33.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
33.5k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
33.5k
                                  alloc_.arena(),
782
33.5k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
33.5k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
33.5k
                                  std::forward<Args>(args)...);
786
787
33.5k
      iterator result = InsertUnique(b, node);
788
33.5k
      ++num_elements_;
789
33.5k
      return std::make_pair(result, true);
790
86.8k
    }
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
4.21k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
4.21k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
4.21k
      if (p.first.node_ != nullptr)
765
0
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
4.21k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
1.89k
        p = FindHelper(k);
769
1.89k
      }
770
4.21k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
4.21k
      using TypeToInit = typename std::conditional<
773
4.21k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
4.21k
          key_type>::type;
775
4.21k
      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
4.21k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
4.21k
                                  alloc_.arena(),
782
4.21k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
4.21k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
4.21k
                                  std::forward<Args>(args)...);
786
787
4.21k
      iterator result = InsertUnique(b, node);
788
4.21k
      ++num_elements_;
789
4.21k
      return std::make_pair(result, true);
790
4.21k
    }
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
2.38k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
2.38k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
2.38k
      if (p.first.node_ != nullptr)
765
0
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
2.38k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
1.19k
        p = FindHelper(k);
769
1.19k
      }
770
2.38k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
2.38k
      using TypeToInit = typename std::conditional<
773
2.38k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
2.38k
          key_type>::type;
775
2.38k
      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
2.38k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
2.38k
                                  alloc_.arena(),
782
2.38k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
2.38k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
2.38k
                                  std::forward<Args>(args)...);
786
787
2.38k
      iterator result = InsertUnique(b, node);
788
2.38k
      ++num_elements_;
789
2.38k
      return std::make_pair(result, true);
790
2.38k
    }
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
80.1k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
80.1k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
80.1k
      if (p.first.node_ != nullptr)
765
24.4k
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
55.6k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
28.4k
        p = FindHelper(k);
769
28.4k
      }
770
55.6k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
55.6k
      using TypeToInit = typename std::conditional<
773
55.6k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
55.6k
          key_type>::type;
775
55.6k
      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
55.6k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
55.6k
                                  alloc_.arena(),
782
55.6k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
55.6k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
55.6k
                                  std::forward<Args>(args)...);
786
787
55.6k
      iterator result = InsertUnique(b, node);
788
55.6k
      ++num_elements_;
789
55.6k
      return std::make_pair(result, true);
790
80.1k
    }
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
80.7k
    std::pair<iterator, bool> TryEmplaceInternal(K&& k, Args&&... args) {
762
80.7k
      std::pair<const_iterator, size_type> p = FindHelper(k);
763
      // Case 1: key was already present.
764
80.7k
      if (p.first.node_ != nullptr)
765
20.2k
        return std::make_pair(iterator(p.first), false);
766
      // Case 2: insert.
767
60.5k
      if (ResizeIfLoadIsOutOfRange(num_elements_ + 1)) {
768
38.4k
        p = FindHelper(k);
769
38.4k
      }
770
60.5k
      const size_type b = p.second;  // bucket number
771
      // If K is not key_type, make the conversion to key_type explicit.
772
60.5k
      using TypeToInit = typename std::conditional<
773
60.5k
          std::is_same<typename std::decay<K>::type, key_type>::value, K&&,
774
60.5k
          key_type>::type;
775
60.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
60.5k
      Arena::CreateInArenaStorage(const_cast<Key*>(&node->kv.first),
781
60.5k
                                  alloc_.arena(),
782
60.5k
                                  static_cast<TypeToInit>(std::forward<K>(k)));
783
      // Note: if `T` is arena constructible, `Args` needs to be empty.
784
60.5k
      Arena::CreateInArenaStorage(&node->kv.second, alloc_.arena(),
785
60.5k
                                  std::forward<Args>(args)...);
786
787
60.5k
      iterator result = InsertUnique(b, node);
788
60.5k
      ++num_elements_;
789
60.5k
      return std::make_pair(result, true);
790
80.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
266k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
266k
      return TryEmplaceInternal(std::forward<K>(k));
812
266k
    }
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
11.7k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
11.7k
      return TryEmplaceInternal(std::forward<K>(k));
812
11.7k
    }
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
86.8k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
86.8k
      return TryEmplaceInternal(std::forward<K>(k));
812
86.8k
    }
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
4.21k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
4.21k
      return TryEmplaceInternal(std::forward<K>(k));
812
4.21k
    }
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
2.38k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
2.38k
      return TryEmplaceInternal(std::forward<K>(k));
812
2.38k
    }
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
80.1k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
80.1k
      return TryEmplaceInternal(std::forward<K>(k));
812
80.1k
    }
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
80.7k
    std::pair<iterator, bool> ArenaAwareTryEmplace(std::true_type, K&& k) {
810
      // case 1.1: "default" constructed (e.g. from arena only).
811
80.7k
      return TryEmplaceInternal(std::forward<K>(k));
812
80.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
807k
    std::pair<const_iterator, size_type> FindHelper(const K& k) const {
838
807k
      return FindHelper(k, nullptr);
839
807k
    }
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
329k
    std::pair<const_iterator, size_type> FindHelper(const K& k) const {
838
329k
      return FindHelper(k, nullptr);
839
329k
    }
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
238k
    std::pair<const_iterator, size_type> FindHelper(const K& k) const {
838
238k
      return FindHelper(k, nullptr);
839
238k
    }
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
239k
    std::pair<const_iterator, size_type> FindHelper(const K& k) const {
838
239k
      return FindHelper(k, nullptr);
839
239k
    }
840
    template <typename K>
841
    std::pair<const_iterator, size_type> FindHelper(const K& k,
842
807k
                                                    TreeIterator* it) const {
843
807k
      size_type b = BucketNumber(k);
844
807k
      if (TableEntryIsNonEmptyList(b)) {
845
350k
        Node* node = static_cast<Node*>(table_[b]);
846
383k
        do {
847
383k
          if (internal::TransparentSupport<Key>::Equals(node->kv.first, k)) {
848
274k
            return std::make_pair(const_iterator(node, this, b), b);
849
274k
          } else {
850
108k
            node = node->next;
851
108k
          }
852
383k
        } while (node != nullptr);
853
457k
      } 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
533k
      return std::make_pair(end(), b);
864
807k
    }
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
329k
                                                    TreeIterator* it) const {
843
329k
      size_type b = BucketNumber(k);
844
329k
      if (TableEntryIsNonEmptyList(b)) {
845
209k
        Node* node = static_cast<Node*>(table_[b]);
846
226k
        do {
847
226k
          if (internal::TransparentSupport<Key>::Equals(node->kv.first, k)) {
848
180k
            return std::make_pair(const_iterator(node, this, b), b);
849
180k
          } else {
850
46.2k
            node = node->next;
851
46.2k
          }
852
226k
        } while (node != nullptr);
853
209k
      } 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
149k
      return std::make_pair(end(), b);
864
329k
    }
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
238k
                                                    TreeIterator* it) const {
843
238k
      size_type b = BucketNumber(k);
844
238k
      if (TableEntryIsNonEmptyList(b)) {
845
72.4k
        Node* node = static_cast<Node*>(table_[b]);
846
82.4k
        do {
847
82.4k
          if (internal::TransparentSupport<Key>::Equals(node->kv.first, k)) {
848
45.0k
            return std::make_pair(const_iterator(node, this, b), b);
849
45.0k
          } else {
850
37.4k
            node = node->next;
851
37.4k
          }
852
82.4k
        } while (node != nullptr);
853
166k
      } 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
193k
      return std::make_pair(end(), b);
864
238k
    }
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
239k
                                                    TreeIterator* it) const {
843
239k
      size_type b = BucketNumber(k);
844
239k
      if (TableEntryIsNonEmptyList(b)) {
845
68.4k
        Node* node = static_cast<Node*>(table_[b]);
846
74.4k
        do {
847
74.4k
          if (internal::TransparentSupport<Key>::Equals(node->kv.first, k)) {
848
49.6k
            return std::make_pair(const_iterator(node, this, b), b);
849
49.6k
          } else {
850
24.8k
            node = node->next;
851
24.8k
          }
852
74.4k
        } while (node != nullptr);
853
171k
      } 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
190k
      return std::make_pair(end(), b);
864
239k
    }
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
239k
    iterator InsertUnique(size_type b, Node* node) {
871
239k
      GOOGLE_DCHECK(index_of_first_non_null_ == num_buckets_ ||
872
239k
             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
239k
      iterator result;
878
239k
      GOOGLE_DCHECK(find(node->kv.first) == end());
879
239k
      if (TableEntryIsEmpty(b)) {
880
198k
        result = InsertUniqueInList(b, node);
881
198k
      } else if (TableEntryIsNonEmptyList(b)) {
882
40.8k
        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
40.8k
        } 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
40.8k
          return InsertUniqueInList(b, node);
890
40.8k
        }
891
40.8k
      } 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
198k
      index_of_first_non_null_ =
898
198k
          (std::min)(index_of_first_non_null_, result.bucket_index_);
899
198k
      return result;
900
239k
    }
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
75.0k
    iterator InsertUnique(size_type b, Node* node) {
871
75.0k
      GOOGLE_DCHECK(index_of_first_non_null_ == num_buckets_ ||
872
75.0k
             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.0k
      iterator result;
878
75.0k
      GOOGLE_DCHECK(find(node->kv.first) == end());
879
75.0k
      if (TableEntryIsEmpty(b)) {
880
58.6k
        result = InsertUniqueInList(b, node);
881
58.6k
      } else if (TableEntryIsNonEmptyList(b)) {
882
16.4k
        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
16.4k
        } 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
16.4k
          return InsertUniqueInList(b, node);
890
16.4k
        }
891
16.4k
      } 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
58.6k
      index_of_first_non_null_ =
898
58.6k
          (std::min)(index_of_first_non_null_, result.bucket_index_);
899
58.6k
      return result;
900
75.0k
    }
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
86.9k
    iterator InsertUnique(size_type b, Node* node) {
871
86.9k
      GOOGLE_DCHECK(index_of_first_non_null_ == num_buckets_ ||
872
86.9k
             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
86.9k
      iterator result;
878
86.9k
      GOOGLE_DCHECK(find(node->kv.first) == end());
879
86.9k
      if (TableEntryIsEmpty(b)) {
880
72.3k
        result = InsertUniqueInList(b, node);
881
72.3k
      } else if (TableEntryIsNonEmptyList(b)) {
882
14.6k
        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.6k
        } 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.6k
          return InsertUniqueInList(b, node);
890
14.6k
        }
891
14.6k
      } 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
72.3k
      index_of_first_non_null_ =
898
72.3k
          (std::min)(index_of_first_non_null_, result.bucket_index_);
899
72.3k
      return result;
900
86.9k
    }
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
77.8k
    iterator InsertUnique(size_type b, Node* node) {
871
77.8k
      GOOGLE_DCHECK(index_of_first_non_null_ == num_buckets_ ||
872
77.8k
             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
77.8k
      iterator result;
878
77.8k
      GOOGLE_DCHECK(find(node->kv.first) == end());
879
77.8k
      if (TableEntryIsEmpty(b)) {
880
68.0k
        result = InsertUniqueInList(b, node);
881
68.0k
      } else if (TableEntryIsNonEmptyList(b)) {
882
9.79k
        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.79k
        } 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.79k
          return InsertUniqueInList(b, node);
890
9.79k
        }
891
9.79k
      } 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
68.0k
      index_of_first_non_null_ =
898
68.0k
          (std::min)(index_of_first_non_null_, result.bucket_index_);
899
68.0k
      return result;
900
77.8k
    }
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
40.8k
    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
40.8k
      return (reinterpret_cast<uintptr_t>(node) ^ seed_) % 13 > 6;
913
40.8k
#endif
914
40.8k
    }
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
16.4k
    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
16.4k
      return (reinterpret_cast<uintptr_t>(node) ^ seed_) % 13 > 6;
913
16.4k
#endif
914
16.4k
    }
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
14.6k
    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.6k
      return (reinterpret_cast<uintptr_t>(node) ^ seed_) % 13 > 6;
913
14.6k
#endif
914
14.6k
    }
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.79k
    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.79k
      return (reinterpret_cast<uintptr_t>(node) ^ seed_) % 13 > 6;
913
9.79k
#endif
914
9.79k
    }
915
916
    // Helper for InsertUnique.  Handles the case where bucket b is a
917
    // not-too-long linked list.
918
239k
    iterator InsertUniqueInList(size_type b, Node* node) {
919
239k
      if (table_[b] != nullptr && ShouldInsertAfterHead(node)) {
920
20.5k
        Node* first = static_cast<Node*>(table_[b]);
921
20.5k
        node->next = first->next;
922
20.5k
        first->next = node;
923
20.5k
        return iterator(node, this, b);
924
20.5k
      }
925
926
219k
      node->next = static_cast<Node*>(table_[b]);
927
219k
      table_[b] = static_cast<void*>(node);
928
219k
      return iterator(node, this, b);
929
239k
    }
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
75.0k
    iterator InsertUniqueInList(size_type b, Node* node) {
919
75.0k
      if (table_[b] != nullptr && ShouldInsertAfterHead(node)) {
920
8.55k
        Node* first = static_cast<Node*>(table_[b]);
921
8.55k
        node->next = first->next;
922
8.55k
        first->next = node;
923
8.55k
        return iterator(node, this, b);
924
8.55k
      }
925
926
66.5k
      node->next = static_cast<Node*>(table_[b]);
927
66.5k
      table_[b] = static_cast<void*>(node);
928
66.5k
      return iterator(node, this, b);
929
75.0k
    }
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
86.9k
    iterator InsertUniqueInList(size_type b, Node* node) {
919
86.9k
      if (table_[b] != nullptr && ShouldInsertAfterHead(node)) {
920
7.24k
        Node* first = static_cast<Node*>(table_[b]);
921
7.24k
        node->next = first->next;
922
7.24k
        first->next = node;
923
7.24k
        return iterator(node, this, b);
924
7.24k
      }
925
926
79.6k
      node->next = static_cast<Node*>(table_[b]);
927
79.6k
      table_[b] = static_cast<void*>(node);
928
79.6k
      return iterator(node, this, b);
929
86.9k
    }
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
77.8k
    iterator InsertUniqueInList(size_type b, Node* node) {
919
77.8k
      if (table_[b] != nullptr && ShouldInsertAfterHead(node)) {
920
4.76k
        Node* first = static_cast<Node*>(table_[b]);
921
4.76k
        node->next = first->next;
922
4.76k
        first->next = node;
923
4.76k
        return iterator(node, this, b);
924
4.76k
      }
925
926
73.0k
      node->next = static_cast<Node*>(table_[b]);
927
73.0k
      table_[b] = static_cast<void*>(node);
928
73.0k
      return iterator(node, this, b);
929
77.8k
    }
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
168k
    bool ResizeIfLoadIsOutOfRange(size_type new_size) {
951
168k
      const size_type kMaxMapLoadTimes16 = 12;  // controls RAM vs CPU tradeoff
952
168k
      const size_type hi_cutoff = num_buckets_ * kMaxMapLoadTimes16 / 16;
953
168k
      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
168k
      if (PROTOBUF_PREDICT_FALSE(new_size >= hi_cutoff)) {
958
82.7k
        if (num_buckets_ <= max_size() / 2) {
959
82.7k
          Resize(num_buckets_ * 2);
960
82.7k
          return true;
961
82.7k
        }
962
85.3k
      } else if (PROTOBUF_PREDICT_FALSE(new_size <= lo_cutoff &&
963
85.3k
                                        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
85.3k
      return false;
981
168k
    }
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
45.3k
    bool ResizeIfLoadIsOutOfRange(size_type new_size) {
951
45.3k
      const size_type kMaxMapLoadTimes16 = 12;  // controls RAM vs CPU tradeoff
952
45.3k
      const size_type hi_cutoff = num_buckets_ * kMaxMapLoadTimes16 / 16;
953
45.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
45.3k
      if (PROTOBUF_PREDICT_FALSE(new_size >= hi_cutoff)) {
958
12.8k
        if (num_buckets_ <= max_size() / 2) {
959
12.8k
          Resize(num_buckets_ * 2);
960
12.8k
          return true;
961
12.8k
        }
962
32.4k
      } else if (PROTOBUF_PREDICT_FALSE(new_size <= lo_cutoff &&
963
32.4k
                                        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
32.4k
      return false;
981
45.3k
    }
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
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
30.3k
        if (num_buckets_ <= max_size() / 2) {
959
30.3k
          Resize(num_buckets_ * 2);
960
30.3k
          return true;
961
30.3k
        }
962
30.3k
      } else if (PROTOBUF_PREDICT_FALSE(new_size <= lo_cutoff &&
963
29.5k
                                        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
29.5k
      return false;
981
59.8k
    }
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
62.8k
    bool ResizeIfLoadIsOutOfRange(size_type new_size) {
951
62.8k
      const size_type kMaxMapLoadTimes16 = 12;  // controls RAM vs CPU tradeoff
952
62.8k
      const size_type hi_cutoff = num_buckets_ * kMaxMapLoadTimes16 / 16;
953
62.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
62.8k
      if (PROTOBUF_PREDICT_FALSE(new_size >= hi_cutoff)) {
958
39.6k
        if (num_buckets_ <= max_size() / 2) {
959
39.6k
          Resize(num_buckets_ * 2);
960
39.6k
          return true;
961
39.6k
        }
962
39.6k
      } else if (PROTOBUF_PREDICT_FALSE(new_size <= lo_cutoff &&
963
23.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
23.2k
      return false;
981
62.8k
    }
982
983
    // Resize to the given number of buckets.
984
82.7k
    void Resize(size_t new_num_buckets) {
985
82.7k
      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
76.8k
        num_buckets_ = index_of_first_non_null_ = kMinTableSize;
989
76.8k
        table_ = CreateEmptyTable(num_buckets_);
990
76.8k
        seed_ = Seed();
991
76.8k
        return;
992
76.8k
      }
993
994
5.95k
      GOOGLE_DCHECK_GE(new_num_buckets, kMinTableSize);
995
5.95k
      void** const old_table = table_;
996
5.95k
      const size_type old_table_size = num_buckets_;
997
5.95k
      num_buckets_ = new_num_buckets;
998
5.95k
      table_ = CreateEmptyTable(num_buckets_);
999
5.95k
      const size_type start = index_of_first_non_null_;
1000
5.95k
      index_of_first_non_null_ = num_buckets_;
1001
104k
      for (size_type i = start; i < old_table_size; i++) {
1002
98.5k
        if (internal::TableEntryIsNonEmptyList(old_table, i)) {
1003
52.8k
          TransferList(old_table, i);
1004
52.8k
        } else if (internal::TableEntryIsTree(old_table, i)) {
1005
0
          TransferTree(old_table, i++);
1006
0
        }
1007
98.5k
      }
1008
5.95k
      Dealloc<void*>(old_table, old_table_size);
1009
5.95k
    }
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.8k
    void Resize(size_t new_num_buckets) {
985
12.8k
      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
11.2k
        num_buckets_ = index_of_first_non_null_ = kMinTableSize;
989
11.2k
        table_ = CreateEmptyTable(num_buckets_);
990
11.2k
        seed_ = Seed();
991
11.2k
        return;
992
11.2k
      }
993
994
1.59k
      GOOGLE_DCHECK_GE(new_num_buckets, kMinTableSize);
995
1.59k
      void** const old_table = table_;
996
1.59k
      const size_type old_table_size = num_buckets_;
997
1.59k
      num_buckets_ = new_num_buckets;
998
1.59k
      table_ = CreateEmptyTable(num_buckets_);
999
1.59k
      const size_type start = index_of_first_non_null_;
1000
1.59k
      index_of_first_non_null_ = num_buckets_;
1001
41.9k
      for (size_type i = start; i < old_table_size; i++) {
1002
40.4k
        if (internal::TableEntryIsNonEmptyList(old_table, i)) {
1003
21.5k
          TransferList(old_table, i);
1004
21.5k
        } else if (internal::TableEntryIsTree(old_table, i)) {
1005
0
          TransferTree(old_table, i++);
1006
0
        }
1007
40.4k
      }
1008
1.59k
      Dealloc<void*>(old_table, old_table_size);
1009
1.59k
    }
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
30.3k
    void Resize(size_t new_num_buckets) {
985
30.3k
      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
28.0k
        num_buckets_ = index_of_first_non_null_ = kMinTableSize;
989
28.0k
        table_ = CreateEmptyTable(num_buckets_);
990
28.0k
        seed_ = Seed();
991
28.0k
        return;
992
28.0k
      }
993
994
2.25k
      GOOGLE_DCHECK_GE(new_num_buckets, kMinTableSize);
995
2.25k
      void** const old_table = table_;
996
2.25k
      const size_type old_table_size = num_buckets_;
997
2.25k
      num_buckets_ = new_num_buckets;
998
2.25k
      table_ = CreateEmptyTable(num_buckets_);
999
2.25k
      const size_type start = index_of_first_non_null_;
1000
2.25k
      index_of_first_non_null_ = num_buckets_;
1001
39.4k
      for (size_type i = start; i < old_table_size; i++) {
1002
37.1k
        if (internal::TableEntryIsNonEmptyList(old_table, i)) {
1003
19.8k
          TransferList(old_table, i);
1004
19.8k
        } else if (internal::TableEntryIsTree(old_table, i)) {
1005
0
          TransferTree(old_table, i++);
1006
0
        }
1007
37.1k
      }
1008
2.25k
      Dealloc<void*>(old_table, old_table_size);
1009
2.25k
    }
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
39.6k
    void Resize(size_t new_num_buckets) {
985
39.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
37.5k
        num_buckets_ = index_of_first_non_null_ = kMinTableSize;
989
37.5k
        table_ = CreateEmptyTable(num_buckets_);
990
37.5k
        seed_ = Seed();
991
37.5k
        return;
992
37.5k
      }
993
994
2.09k
      GOOGLE_DCHECK_GE(new_num_buckets, kMinTableSize);
995
2.09k
      void** const old_table = table_;
996
2.09k
      const size_type old_table_size = num_buckets_;
997
2.09k
      num_buckets_ = new_num_buckets;
998
2.09k
      table_ = CreateEmptyTable(num_buckets_);
999
2.09k
      const size_type start = index_of_first_non_null_;
1000
2.09k
      index_of_first_non_null_ = num_buckets_;
1001
23.0k
      for (size_type i = start; i < old_table_size; i++) {
1002
21.0k
        if (internal::TableEntryIsNonEmptyList(old_table, i)) {
1003
11.3k
          TransferList(old_table, i);
1004
11.3k
        } else if (internal::TableEntryIsTree(old_table, i)) {
1005
0
          TransferTree(old_table, i++);
1006
0
        }
1007
21.0k
      }
1008
2.09k
      Dealloc<void*>(old_table, old_table_size);
1009
2.09k
    }
1010
1011
52.8k
    void TransferList(void* const* table, size_type index) {
1012
52.8k
      Node* node = static_cast<Node*>(table[index]);
1013
71.7k
      do {
1014
71.7k
        Node* next = node->next;
1015
71.7k
        InsertUnique(BucketNumber(node->kv.first), node);
1016
71.7k
        node = next;
1017
71.7k
      } while (node != nullptr);
1018
52.8k
    }
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
21.5k
    void TransferList(void* const* table, size_type index) {
1012
21.5k
      Node* node = static_cast<Node*>(table[index]);
1013
29.7k
      do {
1014
29.7k
        Node* next = node->next;
1015
29.7k
        InsertUnique(BucketNumber(node->kv.first), node);
1016
29.7k
        node = next;
1017
29.7k
      } while (node != nullptr);
1018
21.5k
    }
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
19.8k
    void TransferList(void* const* table, size_type index) {
1012
19.8k
      Node* node = static_cast<Node*>(table[index]);
1013
27.0k
      do {
1014
27.0k
        Node* next = node->next;
1015
27.0k
        InsertUnique(BucketNumber(node->kv.first), node);
1016
27.0k
        node = next;
1017
27.0k
      } while (node != nullptr);
1018
19.8k
    }
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
11.3k
    void TransferList(void* const* table, size_type index) {
1012
11.3k
      Node* node = static_cast<Node*>(table[index]);
1013
14.9k
      do {
1014
14.9k
        Node* next = node->next;
1015
14.9k
        InsertUnique(BucketNumber(node->kv.first), node);
1016
14.9k
        node = next;
1017
14.9k
      } while (node != nullptr);
1018
11.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
30.8k
    Node* EraseFromLinkedList(Node* item, Node* head) {
1031
30.8k
      if (head == item) {
1032
27.3k
        return head->next;
1033
27.3k
      } else {
1034
3.54k
        head->next = EraseFromLinkedList(item, head->next);
1035
3.54k
        return head;
1036
3.54k
      }
1037
30.8k
    }
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
11.2k
    Node* EraseFromLinkedList(Node* item, Node* head) {
1031
11.2k
      if (head == item) {
1032
9.85k
        return head->next;
1033
9.85k
      } else {
1034
1.41k
        head->next = EraseFromLinkedList(item, head->next);
1035
1.41k
        return head;
1036
1.41k
      }
1037
11.2k
    }
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
9.38k
    Node* EraseFromLinkedList(Node* item, Node* head) {
1031
9.38k
      if (head == item) {
1032
8.44k
        return head->next;
1033
8.44k
      } else {
1034
947
        head->next = EraseFromLinkedList(item, head->next);
1035
947
        return head;
1036
947
      }
1037
9.38k
    }
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
9.01k
        return head->next;
1033
9.01k
      } else {
1034
1.18k
        head->next = EraseFromLinkedList(item, head->next);
1035
1.18k
        return head;
1036
1.18k
      }
1037
10.2k
    }
1038
1039
239k
    bool TableEntryIsEmpty(size_type b) const {
1040
239k
      return internal::TableEntryIsEmpty(table_, b);
1041
239k
    }
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
75.0k
    bool TableEntryIsEmpty(size_type b) const {
1040
75.0k
      return internal::TableEntryIsEmpty(table_, b);
1041
75.0k
    }
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
86.9k
    bool TableEntryIsEmpty(size_type b) const {
1040
86.9k
      return internal::TableEntryIsEmpty(table_, b);
1041
86.9k
    }
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
77.8k
    bool TableEntryIsEmpty(size_type b) const {
1040
77.8k
      return internal::TableEntryIsEmpty(table_, b);
1041
77.8k
    }
1042
2.07M
    bool TableEntryIsNonEmptyList(size_type b) const {
1043
2.07M
      return internal::TableEntryIsNonEmptyList(table_, b);
1044
2.07M
    }
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
565k
    bool TableEntryIsNonEmptyList(size_type b) const {
1043
565k
      return internal::TableEntryIsNonEmptyList(table_, b);
1044
565k
    }
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
725k
    bool TableEntryIsNonEmptyList(size_type b) const {
1043
725k
      return internal::TableEntryIsNonEmptyList(table_, b);
1044
725k
    }
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
787k
    bool TableEntryIsNonEmptyList(size_type b) const {
1043
787k
      return internal::TableEntryIsNonEmptyList(table_, b);
1044
787k
    }
1045
1.40M
    bool TableEntryIsTree(size_type b) const {
1046
1.40M
      return internal::TableEntryIsTree(table_, b);
1047
1.40M
    }
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
275k
    bool TableEntryIsTree(size_type b) const {
1046
275k
      return internal::TableEntryIsTree(table_, b);
1047
275k
    }
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
526k
    bool TableEntryIsTree(size_type b) const {
1046
526k
      return internal::TableEntryIsTree(table_, b);
1047
526k
    }
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
599k
    bool TableEntryIsTree(size_type b) const {
1046
599k
      return internal::TableEntryIsTree(table_, b);
1047
599k
    }
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
40.8k
    bool TableEntryIsTooLong(size_type b) {
1080
40.8k
      const size_type kMaxLength = 8;
1081
40.8k
      size_type count = 0;
1082
40.8k
      Node* node = static_cast<Node*>(table_[b]);
1083
48.4k
      do {
1084
48.4k
        ++count;
1085
48.4k
        node = node->next;
1086
48.4k
      } while (node != nullptr);
1087
      // Invariant: no linked list ever is more than kMaxLength in length.
1088
40.8k
      GOOGLE_DCHECK_LE(count, kMaxLength);
1089
40.8k
      return count >= kMaxLength;
1090
40.8k
    }
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
16.4k
    bool TableEntryIsTooLong(size_type b) {
1080
16.4k
      const size_type kMaxLength = 8;
1081
16.4k
      size_type count = 0;
1082
16.4k
      Node* node = static_cast<Node*>(table_[b]);
1083
19.9k
      do {
1084
19.9k
        ++count;
1085
19.9k
        node = node->next;
1086
19.9k
      } while (node != nullptr);
1087
      // Invariant: no linked list ever is more than kMaxLength in length.
1088
16.4k
      GOOGLE_DCHECK_LE(count, kMaxLength);
1089
16.4k
      return count >= kMaxLength;
1090
16.4k
    }
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
14.6k
    bool TableEntryIsTooLong(size_type b) {
1080
14.6k
      const size_type kMaxLength = 8;
1081
14.6k
      size_type count = 0;
1082
14.6k
      Node* node = static_cast<Node*>(table_[b]);
1083
17.4k
      do {
1084
17.4k
        ++count;
1085
17.4k
        node = node->next;
1086
17.4k
      } while (node != nullptr);
1087
      // Invariant: no linked list ever is more than kMaxLength in length.
1088
14.6k
      GOOGLE_DCHECK_LE(count, kMaxLength);
1089
14.6k
      return count >= kMaxLength;
1090
14.6k
    }
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.79k
    bool TableEntryIsTooLong(size_type b) {
1080
9.79k
      const size_type kMaxLength = 8;
1081
9.79k
      size_type count = 0;
1082
9.79k
      Node* node = static_cast<Node*>(table_[b]);
1083
11.0k
      do {
1084
11.0k
        ++count;
1085
11.0k
        node = node->next;
1086
11.0k
      } while (node != nullptr);
1087
      // Invariant: no linked list ever is more than kMaxLength in length.
1088
9.79k
      GOOGLE_DCHECK_LE(count, kMaxLength);
1089
9.79k
      return count >= kMaxLength;
1090
9.79k
    }
1091
1092
    template <typename K>
1093
879k
    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
879k
      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
879k
      constexpr uint64_t kPhi = uint64_t{0x9e3779b97f4a7c15};
1102
879k
      return ((kPhi * h) >> 32) & (num_buckets_ - 1);
1103
879k
    }
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
359k
    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
359k
      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
359k
      constexpr uint64_t kPhi = uint64_t{0x9e3779b97f4a7c15};
1102
359k
      return ((kPhi * h) >> 32) & (num_buckets_ - 1);
1103
359k
    }
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
265k
    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
265k
      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
265k
      constexpr uint64_t kPhi = uint64_t{0x9e3779b97f4a7c15};
1102
265k
      return ((kPhi * h) >> 32) & (num_buckets_ - 1);
1103
265k
    }
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
254k
    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
254k
      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
254k
      constexpr uint64_t kPhi = uint64_t{0x9e3779b97f4a7c15};
1102
254k
      return ((kPhi * h) >> 32) & (num_buckets_ - 1);
1103
254k
    }
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
250k
    U* Alloc(size_type n) {
1116
250k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
250k
      return alloc_type(alloc_).allocate(n);
1118
250k
    }
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.8k
    U* Alloc(size_type n) {
1116
12.8k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
12.8k
      return alloc_type(alloc_).allocate(n);
1118
12.8k
    }
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
45.3k
    U* Alloc(size_type n) {
1116
45.3k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
45.3k
      return alloc_type(alloc_).allocate(n);
1118
45.3k
    }
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
30.3k
    U* Alloc(size_type n) {
1116
30.3k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
30.3k
      return alloc_type(alloc_).allocate(n);
1118
30.3k
    }
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
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
    }
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
39.6k
    U* Alloc(size_type n) {
1116
39.6k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
39.6k
      return alloc_type(alloc_).allocate(n);
1118
39.6k
    }
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
62.8k
    U* Alloc(size_type n) {
1116
62.8k
      using alloc_type = typename Allocator::template rebind<U>::other;
1117
62.8k
      return alloc_type(alloc_).allocate(n);
1118
62.8k
    }
1119
1120
    // Use alloc_ to deallocate an array of n objects of type U.
1121
    template <typename U>
1122
82.7k
    void Dealloc(U* t, size_type n) {
1123
82.7k
      using alloc_type = typename Allocator::template rebind<U>::other;
1124
82.7k
      alloc_type(alloc_).deallocate(t, n);
1125
82.7k
    }
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.8k
    void Dealloc(U* t, size_type n) {
1123
12.8k
      using alloc_type = typename Allocator::template rebind<U>::other;
1124
12.8k
      alloc_type(alloc_).deallocate(t, n);
1125
12.8k
    }
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
30.3k
    void Dealloc(U* t, size_type n) {
1123
30.3k
      using alloc_type = typename Allocator::template rebind<U>::other;
1124
30.3k
      alloc_type(alloc_).deallocate(t, n);
1125
30.3k
    }
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
39.6k
    void Dealloc(U* t, size_type n) {
1123
39.6k
      using alloc_type = typename Allocator::template rebind<U>::other;
1124
39.6k
      alloc_type(alloc_).deallocate(t, n);
1125
39.6k
    }
1126
1127
168k
    void DestroyNode(Node* node) {
1128
168k
      if (alloc_.arena() == nullptr) {
1129
168k
        delete node;
1130
168k
      }
1131
168k
    }
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
45.3k
    void DestroyNode(Node* node) {
1128
45.3k
      if (alloc_.arena() == nullptr) {
1129
45.3k
        delete node;
1130
45.3k
      }
1131
45.3k
    }
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
59.8k
    void DestroyNode(Node* node) {
1128
59.8k
      if (alloc_.arena() == nullptr) {
1129
59.8k
        delete node;
1130
59.8k
      }
1131
59.8k
    }
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
62.8k
    void DestroyNode(Node* node) {
1128
62.8k
      if (alloc_.arena() == nullptr) {
1129
62.8k
        delete node;
1130
62.8k
      }
1131
62.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
82.7k
    void** CreateEmptyTable(size_type n) {
1140
82.7k
      GOOGLE_DCHECK(n >= kMinTableSize);
1141
82.7k
      GOOGLE_DCHECK_EQ(n & (n - 1), 0u);
1142
82.7k
      void** result = Alloc<void*>(n);
1143
82.7k
      memset(result, 0, n * sizeof(result[0]));
1144
82.7k
      return result;
1145
82.7k
    }
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.8k
    void** CreateEmptyTable(size_type n) {
1140
12.8k
      GOOGLE_DCHECK(n >= kMinTableSize);
1141
12.8k
      GOOGLE_DCHECK_EQ(n & (n - 1), 0u);
1142
12.8k
      void** result = Alloc<void*>(n);
1143
12.8k
      memset(result, 0, n * sizeof(result[0]));
1144
12.8k
      return result;
1145
12.8k
    }
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
30.3k
    void** CreateEmptyTable(size_type n) {
1140
30.3k
      GOOGLE_DCHECK(n >= kMinTableSize);
1141
30.3k
      GOOGLE_DCHECK_EQ(n & (n - 1), 0u);
1142
30.3k
      void** result = Alloc<void*>(n);
1143
30.3k
      memset(result, 0, n * sizeof(result[0]));
1144
30.3k
      return result;
1145
30.3k
    }
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
39.6k
    void** CreateEmptyTable(size_type n) {
1140
39.6k
      GOOGLE_DCHECK(n >= kMinTableSize);
1141
39.6k
      GOOGLE_DCHECK_EQ(n & (n - 1), 0u);
1142
39.6k
      void** result = Alloc<void*>(n);
1143
39.6k
      memset(result, 0, n * sizeof(result[0]));
1144
39.6k
      return result;
1145
39.6k
    }
1146
1147
    // Return a randomish value.
1148
76.8k
    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
76.8k
      size_type s = reinterpret_cast<uintptr_t>(this) >> 4;
1153
76.8k
#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
76.8k
      asm volatile("rdtsc" : "=a"(lo), "=d"(hi));
1161
76.8k
      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
76.8k
#endif  // !defined(GOOGLE_PROTOBUF_NO_RDTSC)
1171
76.8k
      return s;
1172
76.8k
    }
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
11.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
11.2k
      size_type s = reinterpret_cast<uintptr_t>(this) >> 4;
1153
11.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
11.2k
      asm volatile("rdtsc" : "=a"(lo), "=d"(hi));
1161
11.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
11.2k
#endif  // !defined(GOOGLE_PROTOBUF_NO_RDTSC)
1171
11.2k
      return s;
1172
11.2k
    }
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
28.0k
    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
28.0k
      size_type s = reinterpret_cast<uintptr_t>(this) >> 4;
1153
28.0k
#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
28.0k
      asm volatile("rdtsc" : "=a"(lo), "=d"(hi));
1161
28.0k
      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
28.0k
#endif  // !defined(GOOGLE_PROTOBUF_NO_RDTSC)
1171
28.0k
      return s;
1172
28.0k
    }
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
37.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
37.5k
      size_type s = reinterpret_cast<uintptr_t>(this) >> 4;
1153
37.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
37.5k
      asm volatile("rdtsc" : "=a"(lo), "=d"(hi));
1161
37.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
37.5k
#endif  // !defined(GOOGLE_PROTOBUF_NO_RDTSC)
1171
37.5k
      return s;
1172
37.5k
    }
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
63.8k
    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
36.9k
    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
26.9k
    const_iterator() {}
1204
924k
    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
281k
    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
331k
    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
312k
    explicit const_iterator(const InnerIt& it) : it_(it) {}
1205
1206
303k
    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
140k
    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
86.1k
    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
77.3k
    const_reference operator*() const { return *it_; }
1207
245k
    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
140k
    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
57.6k
    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
47.0k
    const_pointer operator->() const { return &(operator*()); }
1208
1209
105k
    const_iterator& operator++() {
1210
105k
      ++it_;
1211
105k
      return *this;
1212
105k
    }
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
11.7k
    const_iterator& operator++() {
1210
11.7k
      ++it_;
1211
11.7k
      return *this;
1212
11.7k
    }
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
50.4k
    const_iterator& operator++() {
1210
50.4k
      ++it_;
1211
50.4k
      return *this;
1212
50.4k
    }
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
43.2k
    const_iterator& operator++() {
1210
43.2k
      ++it_;
1211
43.2k
      return *this;
1212
43.2k
    }
1213
    const_iterator operator++(int) { return const_iterator(it_++); }
1214
1215
565k
    friend bool operator==(const const_iterator& a, const const_iterator& b) {
1216
565k
      return a.it_ == b.it_;
1217
565k
    }
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
218k
    friend bool operator==(const const_iterator& a, const const_iterator& b) {
1216
218k
      return a.it_ == b.it_;
1217
218k
    }
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
202k
    friend bool operator==(const const_iterator& a, const const_iterator& b) {
1216
202k
      return a.it_ == b.it_;
1217
202k
    }
1218
287k
    friend bool operator!=(const const_iterator& a, const const_iterator& b) {
1219
287k
      return !(a == b);
1220
287k
    }
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
18.5k
    friend bool operator!=(const const_iterator& a, const const_iterator& b) {
1219
18.5k
      return !(a == b);
1220
18.5k
    }
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
134k
    friend bool operator!=(const const_iterator& a, const const_iterator& b) {
1219
134k
      return !(a == b);
1220
134k
    }
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
134k
    friend bool operator!=(const const_iterator& a, const const_iterator& b) {
1219
134k
      return !(a == b);
1220
134k
    }
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
95.5k
    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
43.1k
    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
25.3k
    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
27.0k
    explicit iterator(const InnerIt& it) : it_(it) {}
1238
1239
3.74k
    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.74k
    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.74k
    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.74k
    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
27.3k
    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
9.85k
    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.44k
    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
9.01k
    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
34.1k
    friend bool operator==(const iterator& a, const iterator& b) {
1254
34.1k
      return a.it_ == b.it_;
1255
34.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
16.6k
    friend bool operator==(const iterator& a, const iterator& b) {
1254
16.6k
      return a.it_ == b.it_;
1255
16.6k
    }
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.44k
    friend bool operator==(const iterator& a, const iterator& b) {
1254
8.44k
      return a.it_ == b.it_;
1255
8.44k
    }
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
9.01k
    friend bool operator==(const iterator& a, const iterator& b) {
1254
9.01k
      return a.it_ == b.it_;
1255
9.01k
    }
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
34.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
16.6k
  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.44k
  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
9.01k
  iterator end() { return iterator(elements_.end()); }
1268
232k
  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.5k
  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
111k
  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
109k
  const_iterator begin() const { return const_iterator(elements_.begin()); }
1269
507k
  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
190k
  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
172k
  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
629k
  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
60.2k
  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
284k
  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
283k
  size_type size() const { return elements_.size(); }
1275
483k
  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
36.4k
  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
223k
  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
223k
  bool empty() const { return size() == 0; }
1276
1277
  // Element access
1278
  template <typename K = key_type>
1279
18.3k
  T& operator[](const key_arg<K>& key) {
1280
18.3k
    return elements_[key].second;
1281
18.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
11.7k
  T& operator[](const key_arg<K>& key) {
1280
11.7k
    return elements_[key].second;
1281
11.7k
  }
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
4.21k
  T& operator[](const key_arg<K>& key) {
1280
4.21k
    return elements_[key].second;
1281
4.21k
  }
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
2.38k
  T& operator[](const key_arg<K>& key) {
1280
2.38k
    return elements_[key].second;
1281
2.38k
  }
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
247k
  T& operator[](key_arg<K>&& key) {
1287
247k
    return elements_[std::forward<K>(key)].second;
1288
247k
  }
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
86.8k
  T& operator[](key_arg<K>&& key) {
1287
86.8k
    return elements_[std::forward<K>(key)].second;
1288
86.8k
  }
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
80.1k
  T& operator[](key_arg<K>&& key) {
1287
80.1k
    return elements_[std::forward<K>(key)].second;
1288
80.1k
  }
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
80.7k
  T& operator[](key_arg<K>&& key) {
1287
80.7k
    return elements_[std::forward<K>(key)].second;
1288
80.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
184k
  const_iterator find(const key_arg<K>& key) const {
1312
184k
    return const_iterator(elements_.find(key));
1313
184k
  }
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
126k
  const_iterator find(const key_arg<K>& key) const {
1312
126k
    return const_iterator(elements_.find(key));
1313
126k
  }
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
28.5k
  const_iterator find(const key_arg<K>& key) const {
1312
28.5k
    return const_iterator(elements_.find(key));
1313
28.5k
  }
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
30.2k
  const_iterator find(const key_arg<K>& key) const {
1312
30.2k
    return const_iterator(elements_.find(key));
1313
30.2k
  }
1314
  template <typename K = key_type>
1315
34.1k
  iterator find(const key_arg<K>& key) {
1316
34.1k
    return iterator(elements_.find(key));
1317
34.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
16.6k
  iterator find(const key_arg<K>& key) {
1316
16.6k
    return iterator(elements_.find(key));
1317
16.6k
  }
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.44k
  iterator find(const key_arg<K>& key) {
1316
8.44k
    return iterator(elements_.find(key));
1317
8.44k
  }
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
9.01k
  iterator find(const key_arg<K>& key) {
1316
9.01k
    return iterator(elements_.find(key));
1317
9.01k
  }
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
27.3k
  size_type erase(const key_arg<K>& key) {
1377
27.3k
    iterator it = find(key);
1378
27.3k
    if (it == end()) {
1379
0
      return 0;
1380
27.3k
    } else {
1381
27.3k
      erase(it);
1382
27.3k
      return 1;
1383
27.3k
    }
1384
27.3k
  }
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
9.85k
  size_type erase(const key_arg<K>& key) {
1377
9.85k
    iterator it = find(key);
1378
9.85k
    if (it == end()) {
1379
0
      return 0;
1380
9.85k
    } else {
1381
9.85k
      erase(it);
1382
9.85k
      return 1;
1383
9.85k
    }
1384
9.85k
  }
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.44k
  size_type erase(const key_arg<K>& key) {
1377
8.44k
    iterator it = find(key);
1378
8.44k
    if (it == end()) {
1379
0
      return 0;
1380
8.44k
    } else {
1381
8.44k
      erase(it);
1382
8.44k
      return 1;
1383
8.44k
    }
1384
8.44k
  }
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
9.01k
  size_type erase(const key_arg<K>& key) {
1377
9.01k
    iterator it = find(key);
1378
9.01k
    if (it == end()) {
1379
0
      return 0;
1380
9.01k
    } else {
1381
9.01k
      erase(it);
1382
9.01k
      return 1;
1383
9.01k
    }
1384
9.01k
  }
1385
27.3k
  iterator erase(iterator pos) {
1386
27.3k
    iterator i = pos++;
1387
27.3k
    elements_.erase(i.it_);
1388
27.3k
    return pos;
1389
27.3k
  }
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
9.85k
  iterator erase(iterator pos) {
1386
9.85k
    iterator i = pos++;
1387
9.85k
    elements_.erase(i.it_);
1388
9.85k
    return pos;
1389
9.85k
  }
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.44k
  iterator erase(iterator pos) {
1386
8.44k
    iterator i = pos++;
1387
8.44k
    elements_.erase(i.it_);
1388
8.44k
    return pos;
1389
8.44k
  }
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
9.01k
  iterator erase(iterator pos) {
1386
9.01k
    iterator i = pos++;
1387
9.01k
    elements_.erase(i.it_);
1388
9.01k
    return pos;
1389
9.01k
  }
1390
  void erase(iterator first, iterator last) {
1391
    while (first != last) {
1392
      first = erase(first);
1393
    }
1394
  }
1395
45.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::NodeState>::clear()
Line
Count
Source
1395
21.8k
  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
11.7k
  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
11.7k
  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
645k
  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
29.6k
  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
308k
  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
308k
  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.17M
  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
517k
  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
141k
  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
517k
  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__