Searched refs:m_pObj (Results 1 – 6 of 6) sorted by relevance
24 explicit MaybeOwned(T* ptr) : m_pObj(ptr) {} in MaybeOwned()25 explicit MaybeOwned(const UnownedPtr<T>& ptr) : m_pObj(ptr.Get()) {} in MaybeOwned()27 : m_pOwnedObj(std::move(ptr)), m_pObj(m_pOwnedObj.get()) {} in MaybeOwned()31 : m_pOwnedObj(that.m_pOwnedObj.release()), m_pObj(that.m_pObj) { in MaybeOwned()32 that.m_pObj = nullptr; in MaybeOwned()36 m_pObj = ptr.get(); in Reset()40 m_pObj = ptr;49 T* Get() const { return m_pObj.Get(); } in Get()61 m_pObj = nullptr; in ReleaseAndClear()67 m_pObj = that.m_pObj;[all …]
54 constexpr UnownedPtr(UnownedPtr&& that) noexcept : m_pObj(that.Release()) {} in UnownedPtr()57 explicit constexpr UnownedPtr(U* pObj) noexcept : m_pObj(pObj) {} in UnownedPtr()67 m_pObj = obj;104 T* Get() const noexcept { return m_pObj; } in Get()109 std::swap(pTemp, m_pObj); in Release()113 explicit operator bool() const { return !!m_pObj; }114 T& operator*() const { return *m_pObj; }115 T* operator->() const { return m_pObj; }122 if (m_pObj) in ProbeForLowSeverityLifetimeIssue()123 reinterpret_cast<const volatile uint8_t*>(m_pObj)[0]; in ProbeForLowSeverityLifetimeIssue() local[all …]
27 explicit RetainPtr(T* pObj) : m_pObj(pObj) { in RetainPtr()28 if (m_pObj) in RetainPtr()29 m_pObj->Retain(); in RetainPtr()53 m_pObj.reset(obj);56 T* Get() const { return m_pObj.get(); } in Get()58 void Swap(RetainPtr& that) { m_pObj.swap(that.m_pObj); } in Swap()61 T* Leak() { return m_pObj.release(); } in Leak()62 void Unleak(T* ptr) { m_pObj.reset(ptr); } in Unleak()72 m_pObj.reset(that.Leak());96 explicit operator bool() const { return !!m_pObj; }[all …]
61 explicit Handle(std::unique_ptr<T, D> ptr) : m_pObj(std::move(ptr)) {} in Handle()63 void Reset(std::unique_ptr<T, D> ptr) { m_pObj = std::move(ptr); } in Reset()65 m_pObj.reset(); // unique_ptr nulls first before invoking delete. in Clear()67 T* Get() const { return m_pObj.get(); } in Get()70 return m_pObj.get(); in Retain()82 std::unique_ptr<T, D> m_pObj; variable
57 CPDF_FileSpec::CPDF_FileSpec(const CPDF_Object* pObj) : m_pObj(pObj) { in CPDF_FileSpec()58 ASSERT(m_pObj); in CPDF_FileSpec()62 : m_pObj(pObj), m_pWritableObj(pObj) { in CPDF_FileSpec()63 ASSERT(m_pObj); in CPDF_FileSpec()100 if (const CPDF_Dictionary* pDict = m_pObj->AsDictionary()) { in GetFileName()123 } else if (const CPDF_String* pString = m_pObj->AsString()) { in GetFileName()130 const CPDF_Dictionary* pDict = m_pObj->AsDictionary(); in GetFileStream()209 if (m_pObj->IsString()) { in SetFileName()
31 const CPDF_Object* GetObj() const { return m_pObj.Get(); } in GetObj()43 RetainPtr<const CPDF_Object> const m_pObj;