Fcitx
Public Member Functions | Friends | List of all members
fcitx::TrackableObjectReference< T > Class Template Referencefinal

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 > >
 

Detailed Description

template<typename T>
class fcitx::TrackableObjectReference< T >

Utility class provides a weak reference to the object.

Not thread-safe.

Definition at line 30 of file trackableobject.h.


The documentation for this class was generated from the following file: