Home
last modified time | relevance | path

Searched refs:OwnedPtr (Results 1 – 5 of 5) sorted by relevance

/openthread-3.5.0/src/core/common/
Downed_ptr.hpp54 template <class Type> class OwnedPtr : public Ptr<Type> class
63 OwnedPtr(void) = default;
73 explicit OwnedPtr(Type *aPointer) in OwnedPtr() function in ot::OwnedPtr
86 OwnedPtr(OwnedPtr &&aOther) in OwnedPtr() function in ot::OwnedPtr
98 ~OwnedPtr(void) { Delete(); } in ~OwnedPtr()
153 OwnedPtr &&PassOwnership(void) { return static_cast<OwnedPtr &&>(*this); } in PassOwnership()
168 OwnedPtr &operator=(OwnedPtr &&aOther) in operator =()
174 OwnedPtr(const OwnedPtr &) = delete;
175 OwnedPtr(OwnedPtr &) = delete;
176 OwnedPtr &operator=(const OwnedPtr &) = delete;
Downing_list.hpp95 OwnedPtr<Type> Pop(void) { return OwnedPtr<Type>(LinkedList<Type>::Pop()); } in Pop()
108OwnedPtr<Type> PopAfter(Type *aPrevEntry) { return OwnedPtr<Type>(LinkedList<Type>::PopAfter(aPrev… in PopAfter()
127 template <typename Indicator> OwnedPtr<Type> RemoveMatching(const Indicator &aIndicator) in RemoveMatching()
129 return OwnedPtr<Type>(LinkedList<Type>::RemoveMatching(aIndicator)); in RemoveMatching()
/openthread-3.5.0/tests/unit/
Dtest_smart_ptrs.cpp103 OwnedPtr<TestObject> ptr; in TestOwnedPtr()
112 OwnedPtr<TestObject> ptr(&obj1); in TestOwnedPtr()
123 OwnedPtr<TestObject> ptr1(&obj1); in TestOwnedPtr()
124 OwnedPtr<TestObject> ptr2(ptr1.PassOwnership()); in TestOwnedPtr()
136 OwnedPtr<TestObject> ptr(&obj1); in TestOwnedPtr()
157 OwnedPtr<TestObject> ptr(&obj1); in TestOwnedPtr()
183 OwnedPtr<TestObject> ptr1(&obj1); in TestOwnedPtr()
184 OwnedPtr<TestObject> ptr2; in TestOwnedPtr()
203 OwnedPtr<TestObject> ptr1(&obj1); in TestOwnedPtr()
204 OwnedPtr<TestObject> ptr2(&obj2); in TestOwnedPtr()
[all …]
Dtest_linked_list.cpp315 OwnedPtr<Entry> ptr; in TestOwningList()
/openthread-3.5.0/src/core/net/
Ddnssd_server.hpp383 OwnedPtr<Message> mMessage;