Lines Matching refs:T
607 template <typename T>
620 template <typename T>
622 friend class wptr<T>;
639 static inline sptr<T> MakeSptr(Args&&... args);
649 sptr(T *other);
656 sptr(const sptr<T> &other);
664 sptr(sptr<T> &&other);
673 sptr<T> &operator=(sptr<T> &&other);
698 inline T *GetRefPtr() const in GetRefPtr()
710 inline void ForceSetRefPtr(T *other);
726 inline operator T *() const
748 inline T &operator*() const
759 inline T *operator->() const
773 sptr<T> &operator=(T *other);
783 sptr<T> &operator=(const sptr<T> &other);
794 sptr<T> &operator=(const wptr<T> &other);
806 sptr<T> &operator=(const sptr<O> &other);
815 bool operator==(const T *other) const;
824 inline bool operator!=(const T *other) const
836 bool operator==(const wptr<T> &other) const;
845 inline bool operator!=(const wptr<T> &other) const
857 bool operator==(const sptr<T> &other) const;
866 inline bool operator!=(const sptr<T> &other) const
872 T *refs_ = nullptr; // Raw pointer to the specific managed object
875 template <typename T>
877 sptr<T> sptr<T>::MakeSptr(Args&&... args) in MakeSptr()
879 T *ptr = new T(std::forward<Args>(args)...); in MakeSptr()
880 sptr<T> res; in MakeSptr()
886 template <typename T>
887 inline void sptr<T>::ForceSetRefPtr(T *other) in ForceSetRefPtr()
892 template <typename T>
893 inline sptr<T>::sptr() in sptr()
898 template <typename T>
899 inline sptr<T>::sptr(T *other) in sptr()
907 template <typename T>
908 inline sptr<T>::sptr(const sptr<T> &other) in sptr()
916 template <typename T>
917 sptr<T>::sptr(sptr<T> &&other) in sptr()
923 template <typename T>
924 sptr<T> &sptr<T>::operator=(sptr<T> &&other)
934 template <typename T>
936 sptr<T>::sptr(const sptr<O> &other) : refs_(other.GetRefPtr()) in sptr()
943 template <typename T>
944 inline sptr<T> &sptr<T>::operator=(T *other)
958 template <typename T>
959 inline sptr<T> &sptr<T>::operator=(const sptr<T> &other)
961 T *otherRef(other.GetRefPtr());
974 template <typename T>
975 inline sptr<T> &sptr<T>::operator=(const wptr<T> &other)
989 template <typename T>
991 sptr<T> &sptr<T>::operator=(const sptr<O> &other)
993 T *otherRef(other.GetRefPtr());
1006 template <typename T>
1007 inline bool sptr<T>::operator==(const T *other) const
1012 template <typename T>
1013 inline bool sptr<T>::operator==(const wptr<T> &other) const
1018 template <typename T>
1019 inline bool sptr<T>::operator==(const sptr<T> &other) const
1024 template<typename T>
1025 void sptr<T>::clear() in clear()
1033 template <typename T>
1034 inline sptr<T>::~sptr() in ~sptr()
1041 template <typename T>
1042 inline sptr<T>::sptr(WeakRefCounter *p, bool /* force */) in sptr()
1045 refs_ = reinterpret_cast<T *>(p->GetRefPtr()); in sptr()
1062 template <typename T>
1081 wptr(T *other);
1091 wptr(const wptr<T> &other);
1102 wptr(const sptr<T> &other);
1135 wptr<T> &operator=(T *other);
1147 wptr<T> &operator=(O *other);
1159 wptr<T> &operator=(const wptr<T> &other);
1171 wptr<T> &operator=(const sptr<T> &other);
1184 wptr<T> &operator=(const wptr<O> &other);
1198 wptr<T> &operator=(const sptr<O> &other);
1207 inline T &operator*() const
1218 inline T *operator->() const
1220 return reinterpret_cast<T *>(refs_->GetRefPtr());
1229 bool operator==(const T *other) const;
1237 inline bool operator!=(const T *other) const
1248 bool operator==(const wptr<T> &other) const;
1256 inline bool operator!=(const wptr<T> &other) const
1267 bool operator==(const sptr<T> &other) const;
1275 inline bool operator!=(const sptr<T> &other) const
1287 T *GetRefPtr() const;
1323 const sptr<T> promote() const;
1331 template <typename T>
1332 inline T *wptr<T>::GetRefPtr() const in GetRefPtr()
1334 return (refs_ != nullptr) ? reinterpret_cast<T *>(refs_->GetRefPtr()) : nullptr; in GetRefPtr()
1337 template <typename T>
1338 wptr<T>::wptr() in wptr()
1343 template <typename T>
1344 wptr<T>::wptr(T *other) in wptr()
1356 template <typename T>
1357 wptr<T>::wptr(const wptr<T> &other) in wptr()
1365 template <typename T>
1366 wptr<T>::wptr(const sptr<T> &other) in wptr()
1376 template <typename T>
1378 wptr<T>::wptr(const wptr<O> &other) in wptr()
1386 template <typename T>
1388 wptr<T>::wptr(const sptr<O> &other) in wptr()
1398 template <typename T>
1399 wptr<T> &wptr<T>::operator=(T *other)
1417 template <typename T>
1419 wptr<T> &wptr<T>::operator=(O *other)
1421 T *object = reinterpret_cast<T *>(other);
1438 template <typename T>
1439 inline wptr<T> &wptr<T>::operator=(const wptr<T> &other)
1453 template <typename T>
1454 inline wptr<T> &wptr<T>::operator=(const sptr<T> &other)
1472 template <typename T>
1474 wptr<T> &wptr<T>::operator=(const wptr<O> &other)
1488 template <typename T>
1490 wptr<T> &wptr<T>::operator=(const sptr<O> &other)
1508 template <typename T>
1509 inline bool wptr<T>::operator==(const T *other) const
1514 template <typename T>
1515 inline bool wptr<T>::operator==(const wptr<T> &other) const
1520 template <typename T>
1521 inline bool wptr<T>::operator==(const sptr<T> &other) const
1526 template <typename T>
1527 inline const sptr<T> wptr<T>::promote() const in promote()
1529 return sptr<T>(refs_, true); in promote()
1532 template <typename T>
1533 inline wptr<T>::~wptr() in ~wptr()