17#include <AUI/Common/SharedPtrTypes.h>
18#include <AUI/Traits/values.h>
369 friend class AObject;
375 [[nodiscard]]
bool isDestroyed()
const noexcept {
380 virtual void clearAllConnections()
const noexcept = 0;
382 virtual void addGenericObserver(
AObjectBase*
object, std::function<
void()> observer) = 0;
391 static bool& isDisconnected();
396 bool mDestroyed =
false;
399#include <AUI/Common/AObject.h>
401inline bool& AAbstractSignal::isDisconnected() {
402 return AObject::isDisconnected();
406 return object->weakPtr();
Base class for signal.
Definition AAbstractSignal.h:368
Definition AObjectBase.h:23
A base object class.
Definition AObject.h:39
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:51
Does not allow escaping, allowing to accept lvalue ref, rvalue ref, shared_ptr and etc without overhe...
Definition values.h:127