• Home
  • Raw
  • Download

Lines Matching refs:T

32 template<typename T> class wp;
37 inline bool operator _op_ (const sp<T>& o) const { \
40 inline bool operator _op_ (const T* o) const { \
51 inline bool operator _op_ (const wp<T>& o) const { \
61 template <typename T>
67 sp(T* other);
68 sp(const sp<T>& other);
76 sp& operator = (T* other);
77 sp& operator = (const 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;
113 template <typename T>
114 TextOutput& operator<<(TextOutput& to, const sp<T>& val);
119 template<typename T>
120 sp<T>::sp(T* other) in sp()
126 template<typename T>
127 sp<T>::sp(const sp<T>& other) in sp()
133 template<typename T> template<typename U>
134 sp<T>::sp(U* other) : m_ptr(other) in sp()
136 if (other) ((T*)other)->incStrong(this); in sp()
139 template<typename T> template<typename U>
140 sp<T>::sp(const sp<U>& other) in sp()
146 template<typename T>
147 sp<T>::~sp() in ~sp()
152 template<typename T>
153 sp<T>& sp<T>::operator = (const sp<T>& other) {
154 T* otherPtr(other.m_ptr);
161 template<typename T>
162 sp<T>& sp<T>::operator = (T* other)
170 template<typename T> template<typename U>
171 sp<T>& sp<T>::operator = (const sp<U>& other)
173 T* otherPtr(other.m_ptr);
180 template<typename T> template<typename U>
181 sp<T>& sp<T>::operator = (U* other)
183 if (other) ((T*)other)->incStrong(this);
189 template<typename T>
190 void sp<T>::force_set(T* other) in force_set()
196 template<typename T>
197 void sp<T>::clear() in clear()
205 template<typename T>
206 void sp<T>::set_pointer(T* ptr) { in set_pointer()
210 template <typename T>
211 inline TextOutput& operator<<(TextOutput& to, const sp<T>& val)