Lines Matching refs:m_P
78 AutoObject() : m_P(0) {} in AutoObject()
80 AutoObject(const nn::WithInitialize&) : m_P(new Object()) {} in AutoObject()
83 AutoObject(const T& x) : m_P(new Object(x)) {} in AutoObject()
85 AutoObject(const AutoObject& other) : m_P(other.m_P) in AutoObject()
88 if (m_P) in AutoObject()
90 detail::AutoObjectCoreAccess::IncrementRefCount(*m_P); in AutoObject()
104 if (this != &rhs && m_P != rhs.m_P) in Assign()
107 this->m_P = rhs.m_P; in Assign()
108 if (m_P) in Assign()
110 detail::AutoObjectCoreAccess::IncrementRefCount(*m_P); in Assign()
120 this->m_P = 0; in Clear()
127 return *m_P;
134 return m_P;
139 return m_P != 0; in IsValid()
151 …t* GetObject() { return reinterpret_cast<Object*>(reinterpret_cast<uptr>(m_AutoObject.m_P) & ~1); } in GetObject()
153 Object* GetObject() { return m_AutoObject.m_P; } in GetObject()
161 if (detail::AutoObjectCoreAccess::DecrementRefCount(*autoObject.m_P)) in Updater()
163 autoObject.m_P = new Object(*autoObject); in Updater()
167 detail::AutoObjectCoreAccess::IncrementRefCount(*autoObject.m_P); in Updater()
185 AutoObject(Object* p) : m_P(p) {} in AutoObject()
190 Object* p = m_P; in Release()
191 this->m_P = 0; in Release()
203 Object* GetObject() { return m_P; } in GetObject()
207 Object* m_P;
211 if (m_P && !detail::AutoObjectCoreAccess::DecrementRefCount(*m_P)) in DecrementAndDelete()
213 delete m_P; in DecrementAndDelete() local
221 NN_TASSERT_((reinterpret_cast<const uptr&>(m_P) & 1) == 0); in AssertNotUpdating()
227 reinterpret_cast<uptr&>(m_P) |= 1; in SetUpdating()
232 reinterpret_cast<uptr&>(m_P) &= ~1; in UnsetUpdating()