Lines Matching refs:m_ptr
50 operator bool (void) const { return !!m_ptr; } in operator bool()
53 T* m_ptr; member in tcu::Maybe
76 : m_ptr (DE_NULL) in Maybe()
83 if (m_ptr) in ~Maybe()
84 m_ptr->~T(); in ~Maybe()
89 : m_ptr (DE_NULL) in Maybe()
91 m_ptr = new(m_data)T(val); in Maybe()
97 if (m_ptr) in operator =()
98 m_ptr->~T(); in operator =()
100 m_ptr = new(m_data)T(val); in operator =()
107 : m_ptr (DE_NULL) in Maybe()
109 if (other.m_ptr) in Maybe()
110 m_ptr = new(m_data)T(*other.m_ptr); in Maybe()
119 if (m_ptr) in operator =()
120 m_ptr->~T(); in operator =()
122 if (other.m_ptr) in operator =()
123 m_ptr = new(m_data)T(*other.m_ptr); in operator =()
125 m_ptr = DE_NULL; in operator =()
133 DE_ASSERT(m_ptr); in operator ->()
134 return m_ptr; in operator ->()
140 DE_ASSERT(m_ptr); in get()
141 return *m_ptr; in get()