35 #include <Pt/Callable.h>
37 #include <type_traits>
90 template <
typename R,
typename... As>
Core module.
Definition: Allocator.h:33
virtual void onDisconnect(const Connection &c)=0
Notifies of disconnects.
virtual bool equals(const Slot &slot) const =0
Returns true if two slots are equal in value.
ConstMethodSlot< R, ClassT, As... > slot(ClassT &object, R(BaseT::*method)(As...) const)
Returns a slot object for the given object/member pair.
Definition: ConstMethod.h:172
virtual ~Slot()
Destructor.
Definition: Slot.h:59
virtual void onConnect(const Connection &c)=0
Notifies of connects.
virtual Slot * clone() const =0
Clone this object with new.
virtual Slot * clone() const =0
Clone this object with new.
Base type for various "slot" types.
Definition: Slot.h:92
virtual const Callback * callable() const =0
Returns the callable converted to the type-erased Callback interface.
Endpoint of a signal/slot connection.
Definition: Slot.h:55
Represents a connection between a Signal/Delegate and a slot.
Definition: Connection.h:96