#include <Pt/Delegate.h>

Public Member Functions | |
| Delegate () | |
| Default Constructor. | |
| Delegate (const Delegate &rhs) | |
| Deeply copies the other Delegate. | |
| Connection | connect (const BasicSlot< R, ARGUMENTS > &slot) |
| Connects this object to the given slot and returns that Connection. | |
| R | call (ARGUMENTS) const |
| Calls the slot connected to the Delegate. | |
| void | invoke (ARGUMENTS) const |
| Invoke the slot connected to the Delegate. | |
| R | operator() (ARGUMENTS) const |
| Same as Delegatecall(). | |
| R call | ( | ARGUMENTS | ) | const |
Passes on all arguments to the connected slot and returns the return value of that slot. If no slot is connect then an exception is thrown.
| void invoke | ( | ARGUMENTS | ) | const |
Passes on all arguments to the connected slot and ignores the return value. If No slot is connected, the call is silently ignored.