Home
last modified time | relevance | path

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

/openthread-3.6.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.6.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.6.0/src/core/net/
Dip6.hpp204 Error SendRaw(OwnedPtr<Message> aMessage);
219 Error HandleDatagram(OwnedPtr<Message> aMessagePtr,
363 static Error TakeOrCopyMessagePtr(OwnedPtr<Message> &aTargetPtr,
364 OwnedPtr<Message> &aMessagePtr,
369 Error PassToHost(OwnedPtr<Message> &aMessagePtr,
375 Error HandleExtensionHeaders(OwnedPtr<Message> &aMessagePtr,
394 OwnedPtr<Message> &aMessagePtr,
Dip6.cpp497 IgnoreError(HandleDatagram(OwnedPtr<Message>(message))); in HandleSendQueue()
706 IgnoreError(HandleDatagram(OwnedPtr<Message>(message), aMessageInfo.mLinkInfo, in HandleFragment()
809 Error Ip6::HandleExtensionHeaders(OwnedPtr<Message> &aMessagePtr, in HandleExtensionHeaders()
857 Error Ip6::TakeOrCopyMessagePtr(OwnedPtr<Message> &aTargetPtr, in TakeOrCopyMessagePtr()
858 OwnedPtr<Message> &aMessagePtr, in TakeOrCopyMessagePtr()
876 OwnedPtr<Message> &aMessagePtr, in HandlePayload()
886 OwnedPtr<Message> messagePtr; in HandlePayload()
931 Error Ip6::PassToHost(OwnedPtr<Message> &aMessagePtr, in PassToHost()
944 OwnedPtr<Message> messagePtr; in PassToHost()
1047 Error Ip6::SendRaw(OwnedPtr<Message> aMessagePtr) in SendRaw()
[all …]
Ddnssd_server.hpp381 OwnedPtr<Message> mMessage;
Dnat64_translator.cpp102 error = Get<Ip6::Ip6>().SendRaw(OwnedPtr<Message>(&aMessage).PassOwnership()); in SendMessage()
/openthread-3.6.0/src/core/thread/
Dmesh_forwarder_mtd.cpp40 void MeshForwarder::SendMessage(OwnedPtr<Message> aMessagePtr) in SendMessage()
Dchild_supervision.cpp70 OwnedPtr<Message> messagePtr; in SendMessage()
Dmesh_forwarder_ftd.cpp49 void MeshForwarder::SendMessage(OwnedPtr<Message> aMessagePtr) in SendMessage()
190 IgnoreError(Get<Ip6::Ip6>().HandleDatagram(OwnedPtr<Message>(&message))); in HandleResolved()
692 OwnedPtr<Message> messagePtr; in HandleMesh()
Dmesh_forwarder.hpp203 void SendMessage(OwnedPtr<Message> aMessagePtr);
Dmesh_forwarder.cpp1683 return Get<Ip6::Ip6>().HandleDatagram(OwnedPtr<Message>(&aMessage), &aLinkInfo); in HandleDatagram()
1725 OwnedPtr<Message> messagePtr; in SendEmptyMessage()
/openthread-3.6.0/src/core/api/
Dip6_api.cpp144 … error = AsCoreType(aInstance).Get<Ip6::Ip6>().SendRaw(OwnedPtr<Message>(AsCoreTypePtr(aMessage))); in otIp6Send()
/openthread-3.6.0/src/core/meshcop/
Dborder_agent.cpp176 OwnedPtr<ForwardContext> forwardContext(static_cast<ForwardContext *>(aContext)); in HandleCoapResponse()
523 OwnedPtr<ForwardContext> forwardContext; in ForwardToLeader()