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);
72 sp& operator = (T* other);
73 sp& operator = (const sp<T>& other);
79 void force_set(T* other);
87 inline T& operator* () const { return *m_ptr; }
88 inline T* operator-> () const { return m_ptr; }
89 inline T* get() const { return m_ptr; } in get()
103 void set_pointer(T* ptr);
104 T* m_ptr;
112 template<typename T>
113 sp<T>::sp(T* other) in sp()
119 template<typename T>
120 sp<T>::sp(const sp<T>& other) in sp()
126 template<typename T> template<typename U>
127 sp<T>::sp(U* other) in sp()
130 ((T*) other)->incStrong(this); in sp()
133 template<typename T> template<typename U>
134 sp<T>::sp(const sp<U>& other) in sp()
140 template<typename T>
141 sp<T>::~sp() { in ~sp()
146 template<typename T>
147 sp<T>& sp<T>::operator =(const sp<T>& other) {
148 T* otherPtr(other.m_ptr);
157 template<typename T>
158 sp<T>& sp<T>::operator =(T* other) {
167 template<typename T> template<typename U>
168 sp<T>& sp<T>::operator =(const sp<U>& other) {
169 T* otherPtr(other.m_ptr);
178 template<typename T> template<typename U>
179 sp<T>& sp<T>::operator =(U* other) {
181 ((T*) other)->incStrong(this);
188 template<typename T>
189 void sp<T>::force_set(T* other) { in force_set()
194 template<typename T>
195 void sp<T>::clear() { in clear()
202 template<typename T>
203 void sp<T>::set_pointer(T* ptr) { in set_pointer()