Lines Matching refs:wptr

295  * A WeakRefCounter object can be shared by multiple wptr objects.\n
352 * the corresponding RefBase object (to promote a wptr to a sptr).
465 * @note Use this function with related functions of wptr.
530 * interaction between sptr and wptr. Avoid using it independently.
586 * @brief Called when `wptr::Promote()` is invoked.
608 class wptr;
622 friend class wptr<T>;
685 * @brief Constructor used to promote the process of wptr.
786 * @brief Copy assignment operator for wptr with
790 * with the input wptr object will be managed by this sptr.
792 * @param other Another wptr object with the same managed class type (T).
794 sptr<T> &operator=(const wptr<T> &other);
830 * @brief Equal-to operator between the sptr and wptr.
832 * @param other Input wptr.
833 * @return `true` if the same object is managed by the sptr and wptr;
836 bool operator==(const wptr<T> &other) const;
839 * @brief Not-equal-to operator between the sptr and wptr.
841 * @param other Input wptr.
842 * @return `true` if different objects are managed by the sptr and wptr;
845 inline bool operator!=(const wptr<T> &other) const
975 inline sptr<T> &sptr<T>::operator=(const wptr<T> &other)
1013 inline bool sptr<T>::operator==(const wptr<T> &other) const
1059 * @tparam T Specific class type managed by wptr.
1063 class wptr {
1065 friend class wptr;
1068 wptr();
1079 * @param other Object to be managed by wptr.
1081 wptr(T *other);
1084 * @brief Copy constructor for wptr with the same managed class type (T).
1087 * wptr and set the count of weak references properly.
1089 * @param other Another wptr with the same managed class type (T).
1091 wptr(const wptr<T> &other);
1102 wptr(const sptr<T> &other);
1105 * @brief Copy constructor for wptr with a different managed class type (O).
1107 * This function is the same as wptr<T>::wptr(const wptr<T> &other).
1110 * @param other Another wptr with a different managed class type (O).
1114 wptr(const wptr<O> &other);
1119 * This function is the same as wptr<T>::wptr(const sptr<T> &other).
1125 wptr(const sptr<O> &other);
1130 * @note The current wptr will unbind the original WeakRefCounter object,
1133 * @param other Another object to be managed by this wptr.
1135 wptr<T> &operator=(T *other);
1140 * @note Same with wptr<T> &operator=(T *other), but a pointer type casting
1143 * @param other Another object to be managed by this wptr.
1147 wptr<T> &operator=(O *other);
1150 * @brief Copy assignment operator for wptr with the same managed class
1153 * @note The current wptr will unbind the original WeakRefCounter object,
1156 * @param other Another wptr object. Objects managed by it will also be
1157 * managed by this wptr.
1159 wptr<T> &operator=(const wptr<T> &other);
1165 * @note The current wptr will unbind the original WeakRefCounter object,
1169 * managed by this wptr.
1171 wptr<T> &operator=(const sptr<T> &other);
1174 * @brief Copy assignment operator for wptr with a different managed class
1177 * @note This function is the same as wptr<T> &operator=(const wptr<T> &).
1179 * @param other An wptr object. Objects managed by it will also be
1180 * managed by this wptr.
1184 wptr<T> &operator=(const wptr<O> &other);
1191 * wptr<T> &wptr<T>::operator=(const sptr<T> &).
1194 * managed by this wptr.
1198 wptr<T> &operator=(const sptr<O> &other);
1203 * This function will return the object managed by this wptr.
1205 * @return Specific object managed by wptr.
1216 * by this wptr.
1224 * @brief Equal-to operator between the wptr and raw pointer.
1232 * @brief Not-equal-to operator between the wptr and raw pointer.
1245 * @param other Input reference to a wptr object.
1248 bool operator==(const wptr<T> &other) const;
1253 * @param other Input reference to a wptr object.
1256 inline bool operator!=(const wptr<T> &other) const
1262 * @brief Equal-to operator between the wptr and input sptr object.
1270 * @brief Not-equal-to operator between the wptr and input sptr object.
1315 * @brief Promotes a wptr to an sptr.
1318 * managed by this wptr.
1325 ~wptr();
1332 inline T *wptr<T>::GetRefPtr() const
1338 wptr<T>::wptr()
1344 wptr<T>::wptr(T *other)
1357 wptr<T>::wptr(const wptr<T> &other)
1366 wptr<T>::wptr(const sptr<T> &other)
1378 wptr<T>::wptr(const wptr<O> &other)
1388 wptr<T>::wptr(const sptr<O> &other)
1399 wptr<T> &wptr<T>::operator=(T *other)
1419 wptr<T> &wptr<T>::operator=(O *other)
1439 inline wptr<T> &wptr<T>::operator=(const wptr<T> &other)
1454 inline wptr<T> &wptr<T>::operator=(const sptr<T> &other)
1474 wptr<T> &wptr<T>::operator=(const wptr<O> &other)
1490 wptr<T> &wptr<T>::operator=(const sptr<O> &other)
1509 inline bool wptr<T>::operator==(const T *other) const
1515 inline bool wptr<T>::operator==(const wptr<T> &other) const
1521 inline bool wptr<T>::operator==(const sptr<T> &other) const
1527 inline const sptr<T> wptr<T>::promote() const
1533 inline wptr<T>::~wptr()