Lines Matching refs:T
29 template<typename T> class wp;
34 inline bool operator _op_ (const sp<T>& o) const { \
37 inline bool operator _op_ (const T* o) const { \
48 inline bool operator _op_ (const wp<T>& o) const { \
58 template<typename T>
63 sp(T* other);
64 sp(const sp<T>& other);
65 sp(sp<T>&& other);
74 sp& operator = (T* other);
75 sp& operator = (const sp<T>& other);
76 sp& operator = (sp<T>&& other);
83 void force_set(T* other);
91 inline T& operator* () const { return *m_ptr; }
92 inline T* operator-> () const { return m_ptr; }
93 inline T* get() const { return m_ptr; } in get()
107 void set_pointer(T* ptr);
108 T* m_ptr;
116 template<typename T>
117 sp<T>::sp(T* other) in sp()
123 template<typename T>
124 sp<T>::sp(const sp<T>& other) in sp()
130 template<typename T>
131 sp<T>::sp(sp<T>&& other) in sp()
136 template<typename T> template<typename U>
137 sp<T>::sp(U* other) in sp()
140 ((T*) other)->incStrong(this); in sp()
143 template<typename T> template<typename U>
144 sp<T>::sp(const sp<U>& other) in sp()
150 template<typename T> template<typename U>
151 sp<T>::sp(sp<U>&& other) in sp()
156 template<typename T>
157 sp<T>::~sp() { in ~sp()
162 template<typename T>
163 sp<T>& sp<T>::operator =(const sp<T>& other) {
164 T* otherPtr(other.m_ptr);
173 template<typename T>
174 sp<T>& sp<T>::operator =(sp<T>&& other) {
182 template<typename T>
183 sp<T>& sp<T>::operator =(T* other) {
192 template<typename T> template<typename U>
193 sp<T>& sp<T>::operator =(const sp<U>& other) {
194 T* otherPtr(other.m_ptr);
203 template<typename T> template<typename U>
204 sp<T>& sp<T>::operator =(sp<U>&& other) {
212 template<typename T> template<typename U>
213 sp<T>& sp<T>::operator =(U* other) {
215 ((T*) other)->incStrong(this);
222 template<typename T>
223 void sp<T>::force_set(T* other) { in force_set()
228 template<typename T>
229 void sp<T>::clear() { in clear()
236 template<typename T>
237 void sp<T>::set_pointer(T* ptr) { in set_pointer()