|
Fcitx
|
Utility class provides a weak reference to the object. More...
#include <fcitx-utils/trackableobject.h>
Public Member Functions | |
| bool | isValid () const |
| Check if the reference is still valid. | |
| bool | isNull () const |
| Check if the reference is not tracking anything. | |
| T * | get () const |
| Get the referenced object. Return nullptr if it is not available. | |
| void | unwatch () |
| Reset reference to empty state. | |
Friends | |
| class | TrackableObject< std::remove_const_t< T > > |
Utility class provides a weak reference to the object.
Not thread-safe.
Definition at line 30 of file trackableobject.h.
1.8.13