98 explicit operator bool()
const
100 return ptr_ !=
nullptr;
104 return ptr_ ==
nullptr;
133 template <
typename U>
143 swap(ptr_, other.ptr_);
159 template <
typename T>
165 template <
typename T,
typename U>
168 return lhs.
get() == rhs.
get();
170 template <
typename T,
typename U>
173 return lhs.
get() == rhs;
175 template <
typename T,
typename U>
178 return lhs == rhs.
get();
181 template <
typename T,
typename U>
184 return lhs.
get() != rhs.
get();
186 template <
typename T,
typename U>
189 return lhs.
get() != rhs;
191 template <
typename T,
typename U>
194 return lhs != rhs.
get();
197 template <
typename T,
typename U>
202 template <
typename T,
typename U>
Definition gobject.hpp:25
value_type * pointer_type
Definition gobject.hpp:31
void swap(GObjectReference &other)
Definition gobject.hpp:140
GObjectReference(GObjectReference &&other)
Definition gobject.hpp:59
GObjectReference(GObjectReference const &other)
Definition gobject.hpp:44
GObjectReference & operator=(GObjectReference const &other)
Definition gobject.hpp:107
~GObjectReference()
Definition gobject.hpp:63
GObjectReference(GObjectReference< U > const &other)
Definition gobject.hpp:52
GObjectReference()
Definition gobject.hpp:33
GObjectReference & operator=(GObjectReference &&other)
Definition gobject.hpp:118
T * operator->() const
Definition gobject.hpp:93
static GObjectReference< T > adoptReference(T *ptr)
Definition gobject.hpp:145
bool operator!() const
Definition gobject.hpp:102
GObjectReference & operator=(GObjectReference< U > const &other)
Definition gobject.hpp:134
T value_type
Definition gobject.hpp:30
T & operator*() const
Definition gobject.hpp:89
T * get() const
Definition gobject.hpp:85
GObjectReference(pointer_type ptr)
Definition gobject.hpp:37
pointer_type release()
Definition gobject.hpp:77
GObjectReference & operator=(pointer_type optr)
Definition gobject.hpp:123
void clear()
Definition gobject.hpp:68
void unreferenceGObject(T *ptr)
Definition gobject.hpp:16
static constexpr auto extractJsonMember(nlohmann::json const &json) -> decltype(auto)
Definition rpc_hub.hpp:29
T * referenceGObject(T *ptr)
Definition gobject.hpp:8
Definition file_dialog.hpp:6
void swap(GObjectReference< T > &lhs, GObjectReference< T > &rhs)
Definition gobject.hpp:160
bool operator==(GObjectReference< T > const &lhs, GObjectReference< U > const &rhs)
Definition gobject.hpp:166
bool operator!=(GObjectReference< T > const &lhs, GObjectReference< U > const &rhs)
Definition gobject.hpp:182
GObjectReference< T > static_pointer_cast(GObjectReference< U > const &ptr)
Definition gobject.hpp:198
GObjectReference< T > dynamic_pointer_cast(GObjectReference< U > const &ptr)
Definition gobject.hpp:203
Definition gobject.hpp:28