Lines Matching refs:T

34 template<typename T> class wp;
39 inline bool operator _op_ (const sp<T>& o) const { \
42 inline bool operator _op_ (const T* o) const { \
53 inline bool operator _op_ (const wp<T>& o) const { \
63 template <typename T>
69 sp(T* other); // NOLINT, implicit
70 sp(const sp<T>& other);
78 sp& operator = (T* other);
79 sp& operator = (const sp<T>& other);
85 void force_set(T* other);
93 inline T& operator* () const { return *m_ptr; }
94 inline T* operator-> () const { return m_ptr; }
95 inline T* get() const { return m_ptr; } in get()
109 void set_pointer(T* ptr);
110 T* m_ptr;
115 template <typename T>
116 TextOutput& operator<<(TextOutput& to, const sp<T>& val);
121 template<typename T>
122 sp<T>::sp(T* other) in sp()
128 template<typename T>
129 sp<T>::sp(const sp<T>& other) in sp()
135 template<typename T> template<typename U>
136 sp<T>::sp(U* other) : m_ptr(other) in sp()
138 if (other) ((T*)other)->incStrong(this); in sp()
141 template<typename T> template<typename U>
142 sp<T>::sp(const sp<U>& other) in sp()
148 template<typename T>
149 sp<T>::~sp() in ~sp()
154 template<typename T>
155 sp<T>& sp<T>::operator = (const sp<T>& other) {
156 T* otherPtr(other.m_ptr);
163 template<typename T>
164 sp<T>& sp<T>::operator = (T* other)
172 template<typename T> template<typename U>
173 sp<T>& sp<T>::operator = (const sp<U>& other)
175 T* otherPtr(other.m_ptr);
182 template<typename T> template<typename U>
183 sp<T>& sp<T>::operator = (U* other)
185 if (other) ((T*)other)->incStrong(this);
191 template<typename T>
192 void sp<T>::force_set(T* other) in force_set()
198 template<typename T>
199 void sp<T>::clear() in clear()
207 template<typename T>
208 void sp<T>::set_pointer(T* ptr) { in set_pointer()
212 template <typename T>
213 inline TextOutput& operator<<(TextOutput& to, const sp<T>& val)