Home
last modified time | relevance | path

Searched refs:Arena (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Darena_unittest.cc157 EXPECT_TRUE(Arena::is_arena_constructable<TestAllTypes>::type::value); in TEST()
158 EXPECT_TRUE(Arena::is_arena_constructable<const TestAllTypes>::type::value); in TEST()
159 EXPECT_FALSE(Arena::is_arena_constructable<Arena>::type::value); in TEST()
163 Arena arena; in TEST()
164 EXPECT_TRUE(Arena::Create<int32>(&arena) != NULL); in TEST()
165 EXPECT_TRUE(Arena::Create<int64>(&arena) != NULL); in TEST()
166 EXPECT_TRUE(Arena::Create<float>(&arena) != NULL); in TEST()
167 EXPECT_TRUE(Arena::Create<double>(&arena) != NULL); in TEST()
168 EXPECT_TRUE(Arena::Create<string>(&arena) != NULL); in TEST()
176 SimpleDataType* data = Arena::Create<SimpleDataType>(&arena); in TEST()
[all …]
Darena.cc42 google::protobuf::internal::SequenceNumber Arena::lifecycle_id_generator_;
44 Arena::ThreadCache& Arena::thread_cache() { in thread_cache()
50 Arena::ThreadCache& Arena::thread_cache() { in thread_cache()
55 GOOGLE_THREAD_LOCAL Arena::ThreadCache Arena::thread_cache_ = { -1, NULL };
58 void Arena::Init() { in Init()
91 Arena::~Arena() { in ~Arena()
100 uint64 Arena::Reset() { in Reset()
106 uint64 Arena::ResetInternal() { in ResetInternal()
118 Arena::Block* Arena::NewBlock(void* me, Block* my_last_block, size_t n, in NewBlock()
146 void Arena::AddBlock(Block* b) { in AddBlock()
[all …]
Dproto3_arena_unittest.cc126 Arena arena; in TEST()
127 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
136 Arena arena; in TEST()
137 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
154 Arena arena1; in TEST()
155 Arena arena2; in TEST()
158 TestAllTypes* arena1_message = Arena::CreateMessage<TestAllTypes>(&arena1); in TEST()
159 TestAllTypes* arena2_message = Arena::CreateMessage<TestAllTypes>(&arena2); in TEST()
166 Arena arena; in TEST()
167 TestAllTypes *arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
[all …]
Dwrappers.pb.h64 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } in GetArena()
78 DoubleValue* New(::google::protobuf::Arena* arena) const;
103 explicit DoubleValue(::google::protobuf::Arena* arena);
106 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
108 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { in GetArenaNoVirtual()
132 friend class ::google::protobuf::Arena;
159 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } in GetArena()
173 FloatValue* New(::google::protobuf::Arena* arena) const;
198 explicit FloatValue(::google::protobuf::Arena* arena);
201 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
[all …]
Dproto3_arena_lite_unittest.cc126 Arena arena; in TEST()
127 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
133 Arena arena1; in TEST()
134 Arena arena2; in TEST()
137 TestAllTypes* arena1_message = Arena::CreateMessage<TestAllTypes>(&arena1); in TEST()
138 TestAllTypes* arena2_message = Arena::CreateMessage<TestAllTypes>(&arena2); in TEST()
145 Arena arena; in TEST()
146 TestAllTypes *arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
154 Arena arena; in TEST()
155 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
Darena.h63 class Arena; // defined below variable
128 void* (*on_arena_init)(Arena* arena);
129 void (*on_arena_reset)(Arena* arena, void* cookie, uint64 space_used);
130 void (*on_arena_destruction)(Arena* arena, void* cookie, uint64 space_used);
216 class LIBPROTOBUF_EXPORT Arena final {
218 class LIBPROTOBUF_EXPORT Arena {
223 explicit Arena(const ArenaOptions& options) : options_(options) { in Arena() function
229 Arena() { in Arena() function
237 ~Arena();
250 static T* CreateMessage(::google::protobuf::Arena* arena) { in CreateMessage()
[all …]
Dmap_type_handler.h84 static inline Type* CreateMessage(Arena* arena);
89 static inline Type* CreateMessage(Arena* arena) {
90 return Arena::CreateMessage<Type>(arena);
96 static inline Type* CreateMessage(Arena* arena) {
97 return Arena::Create<Type>(arena);
177 static inline void Merge(const Type& from, Type** to, Arena* arena);
178 static inline void Clear(Type** value, Arena* arena);
179 static inline void ClearMaybeByDefaultEnum(Type** value, Arena* arena,
181 static inline void Initialize(Type** x, Arena* arena);
185 Arena* arena);
[all …]
Dmetadata.h62 explicit InternalMetadataWithArena(Arena* arena) in InternalMetadataWithArena()
88 GOOGLE_ATTRIBUTE_ALWAYS_INLINE Arena* arena() const { in arena()
92 return PtrValue<Arena>(); in arena()
142 Arena* arena_;
146 Arena* my_arena = arena(); in mutable_unknown_fields_slow()
147 Container* container = Arena::Create<Container>(my_arena); in mutable_unknown_fields_slow()
Darenastring.h58 const ::std::string& value, ::google::protobuf::Arena* arena) { in Set()
72 ::google::protobuf::Arena* arena) { in Mutable()
84 ::google::protobuf::Arena* arena) { in Release()
105 ::google::protobuf::Arena* /* arena */) { in UnsafeArenaRelease()
118 ::std::string* value, ::google::protobuf::Arena* arena) { in SetAllocated()
138 ::google::protobuf::Arena* /* arena */) { in UnsafeArenaSetAllocated()
155 ::google::protobuf::Arena* arena) { in Destroy()
167 ::google::protobuf::Arena* /* arena */) { in ClearToEmpty()
179 ::google::protobuf::Arena* /* arena */) { in ClearToDefault()
287 GOOGLE_ATTRIBUTE_NOINLINE void CreateInstance(::google::protobuf::Arena* arena, in CreateInstance()
Dlite_arena_unittest.cc46 google::protobuf::Arena arena(options); in TEST()
56 google::protobuf::Arena::CreateMessage<protobuf_unittest::TestArenaMapLite>(&arena); in TEST()
61 google::protobuf::Arena::CreateMessage<protobuf_unittest::TestArenaMapLite>(&arena); in TEST()
68 google::protobuf::Arena arena; in TEST()
70 google::protobuf::Arena::CreateMessage<protobuf_unittest::ForeignMessageArenaLite>( in TEST()
Dmap_entry_lite.h40 class Arena; variable
248 MessageLite* New(Arena* arena) const {
249 MapEntryLite* entry = Arena::CreateMessage<MapEntryLite>(arena);
289 Arena* GetArena() const {
298 Arena* arena) {
299 return Arena::CreateMessage<MapEnumEntryWrapper<
306 static MapEntryLite* Wrap(const Key& key, const Value& value, Arena* arena) {
307 return Arena::CreateMessage<MapEntryWrapper<Key, Value, kKeyFieldType,
443 MapEntryWrapper(Arena* arena, const K& key, const V& value)
457 friend class ::google::protobuf::Arena;
[all …]
Dempty.pb.h56 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } in GetArena()
70 Empty* New(::google::protobuf::Arena* arena) const;
95 explicit Empty(::google::protobuf::Arena* arena);
98 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
100 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { in GetArenaNoVirtual()
118 friend class ::google::protobuf::Arena;
Dtimestamp.pb.h56 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } in GetArena()
70 Timestamp* New(::google::protobuf::Arena* arena) const;
95 explicit Timestamp(::google::protobuf::Arena* arena);
98 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
100 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { in GetArenaNoVirtual()
130 friend class ::google::protobuf::Arena;
Dmap_entry.h44 class Arena; variable
191 Message* New(Arena* arena) const { in New()
192 MapEntry* entry = Arena::CreateMessage<MapEntry>(arena); in New()
237 Arena* GetArena() const { in GetArena()
267 explicit MapEntry(Arena* arena) in MapEntry()
272 inline Arena* GetArenaNoVirtual() const { in GetArenaNoVirtual()
287 friend class ::google::protobuf::Arena;
Drepeated_field.h110 explicit RepeatedField(Arena* arena);
227 ::google::protobuf::Arena* GetArena() const { in GetArena()
246 Arena* arena;
258 friend class Arena; variable
272 inline Arena* GetArenaNoVirtual() const { in GetArenaNoVirtual()
393 explicit RepeatedPtrFieldBase(::google::protobuf::Arena* arena);
489 Arena* value_arena,
490 Arena* my_arena);
502 inline Arena* GetArenaNoVirtual() const {
519 Arena* arena_;
[all …]
Dmap_field.h68 explicit MapFieldBase(Arena* arena) in MapFieldBase()
138 Arena* arena_;
188 explicit TypeDefinedMapFieldBase(Arena* arena) : MapFieldBase(arena) {} in TypeDefinedMapFieldBase()
245 explicit MapField(Arena* arena);
250 MapField(Arena* arena, const Message* default_entry);
295 friend class ::google::protobuf::Arena;
301 DynamicMapField(const Message* default_entry, Arena* arena);
Dextension_set_unittest.cc209 ::google::protobuf::Arena arena; in TEST()
211 ::google::protobuf::Arena::CreateMessage<unittest::TestAllExtensions>(&arena); in TEST()
259 ::google::protobuf::Arena arena; in TEST()
261 ::google::protobuf::Arena::CreateMessage<unittest::TestAllExtensions>(&arena); in TEST()
393 ::google::protobuf::Arena arena1; in TEST()
395 ::google::protobuf::Arena::CreateMessage<unittest::TestAllExtensions>(&arena1); in TEST()
401 ::google::protobuf::Arena arena1; in TEST()
403 ::google::protobuf::Arena::CreateMessage<unittest::TestAllExtensions>(&arena1); in TEST()
411 ::google::protobuf::Arena arena1; in TEST()
413 ::google::protobuf::Arena::CreateMessage<unittest::TestAllExtensions>(&arena1); in TEST()
[all …]
Dmap_field_lite.h55 explicit MapFieldLite(Arena* arena);
88 Arena* arena_;
91 friend class ::google::protobuf::Arena;
110 default_enum_value>::MapFieldLite(Arena* arena) in MapFieldLite()
112 map_ = Arena::CreateMessage<Map<Key, T> >(arena); in MapFieldLite()
233 return Arena::CreateMessage<EntryType>(arena_); in NewEntry()
Dwrappers.pb.cc316 DoubleValue::DoubleValue(::google::protobuf::Arena* arena) in DoubleValue()
360 void DoubleValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { in RegisterArenaDtor()
379 DoubleValue* DoubleValue::New(::google::protobuf::Arena* arena) const { in New()
380 return ::google::protobuf::Arena::CreateMessage<DoubleValue>(arena); in New()
578 FloatValue::FloatValue(::google::protobuf::Arena* arena) in FloatValue()
622 void FloatValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { in RegisterArenaDtor()
641 FloatValue* FloatValue::New(::google::protobuf::Arena* arena) const { in New()
642 return ::google::protobuf::Arena::CreateMessage<FloatValue>(arena); in New()
840 Int64Value::Int64Value(::google::protobuf::Arena* arena) in Int64Value()
884 void Int64Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { in RegisterArenaDtor()
[all …]
Dmessage_lite.h47 class Arena; variable
97 virtual MessageLite* New(::google::protobuf::Arena* arena) const;
104 virtual ::google::protobuf::Arena* GetArena() const { return NULL; } in GetArena()
Dgenerated_message_util.h51 class Arena; variable
117 ::google::protobuf::Arena* arena);
Dempty.pb.cc115 Empty::Empty(::google::protobuf::Arena* arena) in Empty()
158 void Empty::RegisterArenaDtor(::google::protobuf::Arena* arena) { in RegisterArenaDtor()
177 Empty* Empty::New(::google::protobuf::Arena* arena) const { in New()
178 return ::google::protobuf::Arena::CreateMessage<Empty>(arena); in New()
Drepeated_field.cc54 Arena* arena = GetArenaNoVirtual(); in InternalExtend()
66 ::google::protobuf::Arena::CreateArray<char>(arena, in InternalExtend()
Dmap_field_test.cc63 explicit MapFieldBaseStub(Arena* arena) : MapFieldBase(arena) {} in MapFieldBaseStub()
167 TEST_F(MapFieldBasePrimitiveTest, Arena) { in TEST_F() argument
173 Arena arena(options); in TEST_F()
181 Arena::CreateMessage<MapFieldType>(&arena, default_entry_); in TEST_F()
196 Arena::CreateMessage<MapFieldBaseStub>(&arena); in TEST_F()
Dtimestamp.pb.cc120 Timestamp::Timestamp(::google::protobuf::Arena* arena) in Timestamp()
165 void Timestamp::RegisterArenaDtor(::google::protobuf::Arena* arena) { in RegisterArenaDtor()
184 Timestamp* Timestamp::New(::google::protobuf::Arena* arena) const { in New()
185 return ::google::protobuf::Arena::CreateMessage<Timestamp>(arena); in New()

123