Searched refs:m_pObj (Results 1 – 9 of 9) sorted by relevance
24 MaybeOwned() : m_pObj(nullptr) {} in MaybeOwned()25 explicit MaybeOwned(T* ptr) : m_pObj(ptr) {} 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()37 m_pObj = m_pOwnedObj.get(); in Reset()41 m_pObj = ptr;45 T* Get() const { return m_pObj; } in Get()54 m_pObj = that.m_pObj;55 that.m_pObj = nullptr;[all …]
26 explicit RetainPtr(T* pObj) : m_pObj(pObj) { in RetainPtr()27 if (m_pObj) in RetainPtr()28 m_pObj->Retain(); in RetainPtr()50 m_pObj.reset(obj);53 T* Get() const { return m_pObj.get(); } in Get()54 void Swap(RetainPtr& that) { m_pObj.swap(that.m_pObj); } in Swap()57 T* Leak() { return m_pObj.release(); } in Leak()58 void Unleak(T* ptr) { m_pObj.reset(ptr); } in Unleak()67 m_pObj.reset(that.Leak());78 explicit operator bool() const { return !!m_pObj; }[all …]
46 explicit UnownedPtr(U* pObj) : m_pObj(pObj) {} in UnownedPtr()56 m_pObj = that;63 m_pObj = that.Get();83 T* Get() const { return m_pObj; } in Get()88 std::swap(pTemp, m_pObj); in Release()92 explicit operator bool() const { return !!m_pObj; }93 T& operator*() const { return *m_pObj; }94 T* operator->() const { return m_pObj; }99 if (m_pObj) in ProbeForLowSeverityLifetimeIssue()100 reinterpret_cast<const volatile uint8_t*>(m_pObj)[0]; in ProbeForLowSeverityLifetimeIssue() local[all …]
62 : m_nCount(0), 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
18 : m_nCount(1), m_pObj(ptr.release()) {} in CPDF_CountedObject()21 m_pObj = ptr.release(); in reset()25 T* pObj = m_pObj; in clear()26 m_pObj = nullptr; in clear()29 T* get() const { return m_pObj; } in get()31 ASSERT(m_pObj); in AddRef()33 return m_pObj; in AddRef()43 T* m_pObj; variable
37 CPDF_Dest::CPDF_Dest(CPDF_Object* pObj) : m_pObj(pObj) {} in CPDF_Dest()42 CPDF_Array* pArray = ToArray(m_pObj.Get()); in GetPageIndex()57 CPDF_Array* pArray = ToArray(m_pObj.Get()); in GetPageObjNum()72 CPDF_Array* pArray = ToArray(m_pObj.Get()); in GetZoomMode()99 CPDF_Array* pArray = ToArray(m_pObj.Get()); in GetXYZ()137 CPDF_Array* pArray = ToArray(m_pObj.Get()); in GetNumParams()147 CPDF_Array* pArray = ToArray(m_pObj.Get()); in GetParam()152 return m_pObj ? m_pObj->GetString() : ByteString(); in GetRemoteName()
56 CPDF_FileSpec::CPDF_FileSpec(CPDF_Object* pObj) : m_pObj(pObj) { in CPDF_FileSpec()57 ASSERT(m_pObj); in CPDF_FileSpec()94 if (CPDF_Dictionary* pDict = m_pObj->AsDictionary()) { in GetFileName()113 } else if (m_pObj->IsString()) { in GetFileName()114 csFileName = WideString::FromLocal(m_pObj->GetString().AsStringView()); in GetFileName()120 CPDF_Dictionary* pDict = m_pObj->AsDictionary(); in GetFileStream()187 if (m_pObj->IsString()) { in SetFileName()188 m_pObj->SetString(ByteString::FromUnicode(wsStr)); in SetFileName()189 } else if (CPDF_Dictionary* pDict = m_pObj->AsDictionary()) { in SetFileName()
30 CPDF_Object* GetObj() const { return m_pObj.Get(); } in GetObj()39 UnownedPtr<CPDF_Object> const m_pObj;
24 CPDF_Object* GetObject() const { return m_pObj.Get(); } in GetObject()43 UnownedPtr<CPDF_Object> m_pObj;