Lines Matching refs:function

73      * @brief Callback function used to destroy the corresponding
76 using RefPtrCallback = std::function<void()>;
88 * @brief Sets the callback function.
90 * @param callback Callback function used to delete
96 * @brief Removes the current callback function by setting it to a `nullptr`.
121 * @brief Checks if the pointer to the callback function is a `nullptr`.
123 * @return `true` if the callback function is a `nullptr`;
244 using CanPromote = std::function<bool()>;
268 RefPtrCallback callback_ = nullptr; // Callback function to deallocate the corresponding RefBase object
382 * @note This function constructs a new RefCounter object
390 * @note This function unbinds this RefBase object from the
404 * @note This function binds this RefBase object with the RefCounter
413 * @brief Callback function to deallocate this object.
415 * This function provides the default implementation to deallocate
432 * `OnFirstStrongRef()`, which is an empty function by default,
435 * @note This function automatically increments the count of weak
445 * `OnLastStrongRef()`, which is an empty function by default,
455 * @note This function is valid only when corresponding RefCounter
465 * @note Use this function with related functions of wptr.
480 * @note This function is valid only when corresponding RefCounter
488 * @note This function is valid only when corresponding RefCounter
504 * `OnFirstStrongRef()`, which is an empty function by default, will be
515 * This interface must come after the RefBase::AttemptIncStrong or RefBase::AttemptAcquire function,
526 * `OnFirstStrongRef()`, which is an empty function by default, will be
529 * @note Use this function in the copy constructor of sptr in scenario of
541 * @note This function is a simplified version of `AttemptAcquire`.
567 * @note It is an empty function by default.
574 * @note It is an empty function by default.
581 * @note It is an empty function by default.
593 * @brief Enables tracking of the RefBase object. This function will
707 * @note Avoid using this function independently. Otherwise,
715 * @note This function will make this sptr a "null sptr".
744 * This function will return the object managed by this sptr.
756 * This function will return the specified member of the object
1073 * This function will create WeakRefCounter object for `other`
1086 * This function will share the WeakRefCounter object of `other` with this
1096 * This function will create a WeakRefCounter object for the managed
1107 * This function is the same as wptr<T>::wptr(const wptr<T> &other).
1119 * This function is the same as wptr<T>::wptr(const sptr<T> &other).
1177 * @note This function is the same as wptr<T> &operator=(const wptr<T> &).
1190 * @note This function is the same as
1203 * This function will return the object managed by this wptr.
1215 * This function will return the specified object member managed
1307 * @note Avoid using this function independently. Use `promote()` instead.
1317 * This function will create an sptr object based on the object