Lines Matching refs:Struct
23 template <typename Struct>
26 template <typename Struct>
35 using Struct = S;
55 : ptr_(new Struct(std::forward<Args>(args)...)) {} in StructPtr()
66 Struct& operator*() const {
70 Struct* operator->() const {
74 Struct* get() const { return ptr_.get(); } in get()
106 friend class internal::StructPtrWTFHelper<Struct>;
112 std::unique_ptr<Struct> ptr_;
130 using Struct = S;
159 value_. ~Struct(); in reset()
160 new (&value_) Struct(); in reset()
165 Struct& operator*() const {
169 Struct* operator->() const {
173 Struct* get() const { return &value_; } in get()
205 friend class internal::InlinedStructPtrWTFHelper<Struct>;
217 mutable Struct value_;
236 template <typename Struct>
239 static bool IsHashTableDeletedValue(const StructPtr<Struct>& value) { in IsHashTableDeletedValue()
240 return value.ptr_.get() == reinterpret_cast<Struct*>(1u); in IsHashTableDeletedValue()
243 static void ConstructDeletedValue(mojo::StructPtr<Struct>& slot) { in ConstructDeletedValue()
250 new (&slot) StructPtr<Struct>(); in ConstructDeletedValue()
251 slot.ptr_.reset(reinterpret_cast<Struct*>(1u)); in ConstructDeletedValue()
255 template <typename Struct>
258 static bool IsHashTableDeletedValue(const InlinedStructPtr<Struct>& value) { in IsHashTableDeletedValue()
259 return value.state_ == InlinedStructPtr<Struct>::DELETED; in IsHashTableDeletedValue()
262 static void ConstructDeletedValue(mojo::InlinedStructPtr<Struct>& slot) { in ConstructDeletedValue()
266 new (&slot) InlinedStructPtr<Struct>(); in ConstructDeletedValue()
267 slot.state_ = InlinedStructPtr<Struct>::DELETED; in ConstructDeletedValue()