Lines Matching refs:StructPtr
33 class StructPtr {
37 StructPtr() = default;
38 StructPtr(decltype(nullptr)) {} in StructPtr() function
40 ~StructPtr() = default;
42 StructPtr& operator=(decltype(nullptr)) { in decltype()
47 StructPtr(StructPtr&& other) { Take(&other); } in StructPtr() function
48 StructPtr& operator=(StructPtr&& other) {
54 StructPtr(base::in_place_t, Args&&... args) in StructPtr() function
59 return TypeConverter<U, StructPtr>::Convert(*this); in To()
76 void Swap(StructPtr* other) { std::swap(ptr_, other->ptr_); } in Swap()
81 StructPtr Clone() const { return is_null() ? StructPtr() : ptr_->Clone(); } in Clone()
86 bool Equals(const StructPtr& other) const { in Equals()
101 bool operator<(const StructPtr& other) const {
107 void Take(StructPtr* other) { in Take()
114 DISALLOW_COPY_AND_ASSIGN(StructPtr);
118 bool operator==(const StructPtr<T>& lhs, const StructPtr<T>& rhs) {
122 bool operator!=(const StructPtr<T>& lhs, const StructPtr<T>& rhs) {
239 static bool IsHashTableDeletedValue(const StructPtr<Struct>& value) { in IsHashTableDeletedValue()
243 static void ConstructDeletedValue(mojo::StructPtr<Struct>& slot) { in ConstructDeletedValue()
250 new (&slot) StructPtr<Struct>(); in ConstructDeletedValue()
277 struct hash<mojo::StructPtr<T>> {
278 size_t operator()(const mojo::StructPtr<T>& value) const {